> For the complete documentation index, see [llms.txt](https://docs.antbuddy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antbuddy.com/tai-lieu-antbuddy-huong-dan-su-dung-antbuddy-docs-user-guide/quan-tri-khach-hang-antcrm-antcrm-customer-management/chat-da-kenh-conversation/zalo-oa/16.-tao-ung-dung-zalo-bot.md).

# 16. Tạo ứng dụng Zalo Bot

## Bước 1: Đăng nhập vào trang: <https://developers.zalo.me/>

## Bước 2: Click icon profile -> Thêm ứng dụng

<figure><img src="/files/d5FOxW7lnPY6nzA2vncu" alt=""><figcaption></figcaption></figure>

## Bước 3: Điền thông tin cho ứng dụng

<figure><img src="/files/n0fgwlzBGa5yVC0P6Lfi" alt=""><figcaption></figcaption></figure>

## Bước 4: Cài đặt

● Chọn miền ứng dụng\
● Upload ảnh\
● Chọn kích hoạt

<figure><img src="/files/xepsvTBy2KD30FCHtQ5R" alt=""><figcaption></figcaption></figure>

## Bước 5: Xác thực domain

Nhập domain beeiq.co rồi bấm Xác thực

<figure><img src="https://huongdan.antbuddy.com/uploads/images/iVBORw0K16812702851047985990848709744.png" alt=""><figcaption></figcaption></figure>

Tại popup Chưa được xác thực, chọn Xác thực ngay

<figure><img src="https://huongdan.antbuddy.com/uploads/images/iVBORw0K16812702851056137979255742272.png" alt=""><figcaption></figcaption></figure>

Tại popup Xác thực quyền sở hữu, người dùng chọn cách xác thực số 3 "Thêm thẻ meta vào trang chủ trang web của bạn"

Copy url meta rồi gửi cho CSKH Antbuddy để thực hiện xác thực

<figure><img src="https://huongdan.antbuddy.com/uploads/images/iVBORw0K168127028510539467218277075136.png" alt=""><figcaption></figcaption></figure>

## Bước 6: Đăng ký sử dụng API

Đăng kí sử dụng API -> Official Account API\
Enable tất cả tính năng -> Nộp xét duyệt

<figure><img src="/files/beYBcozOCieI2enuAn7w" alt=""><figcaption></figcaption></figure>

## Bước 7: Thiết lập đăng nhập

* Home URL:  <https://beeiq.co>
* Callback URL:<https://beeiq.co/zalo/callbackurl>

<figure><img src="/files/NHs00SuMatmWAQMlkUKf" alt=""><figcaption></figcaption></figure>

## Bước 8: Cập nhật webhook

<figure><img src="/files/QrIyAk8ufUIWgbY0BqCH" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/yNq8ka9Vt5wRBN0SromW" alt=""><figcaption></figcaption></figure>

Webhook URL: <https://beeiq.co/zalo/webhook>

OA Secrect Key

Enable tất cả sự kiện

## Bước 9: Thiết lập đường dẫn yêu cầu cấp quyền

Official Account Callback Url : <https://beeiq.co/oauth2/redirect.html>

<figure><img src="/files/6nxhHhdPvqDXHvG416y4" alt=""><figcaption></figcaption></figure>

## Bước 10: Quản lí OA => Liên kết OA

<figure><img src="/files/HTKhgI5JEZxxzPP3wcXX" alt=""><figcaption></figcaption></figure>
