# Bot Bán Hàng

## 1. Tích hợp chatbot Bot Bán Hàng

### 1.1. Đăng nhập Bot Bán Hàng

\- Truy cập: <https://page.botbanhang.vn/>

\- Chọn Fanpage cần triển khai -> **Chatbot**

![](/files/JCd4gVSgmPieumxHNamU)

### 1.2. Thêm tên miền [https://app.appon.vn](https://app.appon.vn/)

\- **Thiết lập -> Thiết lập chung -> Website**: Thêm tên miền: <https://app.appon.vn/>[ ](https://app.appon.vn/)\
và **Lưu**

![](/files/EsMan3v5RKmVe3cdGf0t)

### 1.3. Tạo kịch bản Chatbot

\- Chọn **Chatbot** -> **Kịch bản -> Tạo Kịch bản**

![](/files/8SchoMTEZzIXrTqTrvZj)

\- Thiết lập kịch bản Minigame

* Tên kịch bản: **Minigame Chabot**
* Dạng tin nhắn: **Nút ấn**
* Nội dung tin nhắn mẫu:  🎉️![🎉](https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f389.png)VÒNG QUAY MAY MẮN ️🎉️![🎉](https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f389.png)\
  Cùng page\_name  nhận hàng ngàn quà tặng hấp dẫn.\
  ![💥](https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f4a5.png)Ấn nút "Nhận quà" để tham gia trò chơi ![🎡](https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f3a1.png) Vòng quay may mắn![🎡](https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f3a1.png)  ! Cơ hội nhận được những phần quà từ {{page\_name}} &#x20;
* Tiêu đề nút: Nhận quà
* **Chức năng -> Địa chỉ Web**
* URL: Link app + ?mid={{client\_id}}
* Ví dụ link: [https://app.appon.vn/6237e61be06f7df84ac09baa/?mid={{client\_id}}](https://app.appon.vn//6237e61be06f7df84ac09baa/?mid={{client_id}})
* Tích chọn Hiển thị trong Messenger và dán URL vào dòng dưới
* Sau đó kéo ngược lên và **Lưu lại**

![](/files/1D5IXcs7FIDJrjz65k6u)

### 1.4. Kết nối Chatbot với Minigame

\- Sao chép **Mã xác thực trang** ở chatbot **: Thiết lập** -> **Thiết lập chung**&#x20;

![](/files/B4m0fTccqIUI9HsJZ2uT)

\- Dán **Mã xác thực trang** ở chatbot vào **Minigame:** Chọn **Dữ liệu** -> **Chatbot ->** **Token**

![](/files/wrpu18YHquJyKaSPRody)

## 2. Hoàn thành và trải nghiệm

\- Publish Minigame, sau đó quay lại **Chatbot ->** **Kịch bản** **->** Chọn kịch bản **Minigame Chatbot** vừa tạo ở trên

![](/files/Apz6kP6aveCq24phieYK)

* Ấn **ĐẾN** để trải nghiệm
* **Sao chép** link gửi bạn bè, đăng lên hội nhóm, trang cá nhân để nhiều người cùng tham gia
* Bạn cũng có thể dùng điện thoại **Quét mã** để trải nghiệm. Sử dụng mã quét cho các chiến dịch Offline: **Voucher, Card, Tờ rơi, Checkin Sự kiện, Quét mã nhận quà tại quầy,...**

![](/files/-M4JtG7o_NHD8YUtceFk)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tailieu.appon.vn/huong-dan-nang-cao/tich-hop-chatbot/bot-ban-hang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
