> For the complete documentation index, see [llms.txt](https://akabizauto.gitbook.io/support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://akabizauto.gitbook.io/support/chatbot-zalo-extension/cai-dat-chatbot-zalo-extension-v2.md).

# Cài đặt Chatbot Zalo Extension V2

## Bước 1: Cài đặt Chatbot Zalo Extension

* Ở trang quản trị, chọn <mark style="background-color:orange;">**"ChatBot v2"**</mark>&#x20;

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2F2DES1zHk1tDFa66vpszf%2Fh%C3%ACnh%207.PNG?alt=media&amp;token=b5635f01-dc60-4f89-8a3a-88eef09032d2" alt=""><figcaption></figcaption></figure>

* Bấm <mark style="background-color:orange;">**"Thêm chatbot"**</mark>

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2Fjoy0va6yFXCDzZIvg04l%2Fh%C3%ACnh%208.PNG?alt=media&amp;token=ab4c55be-e23f-4aa0-a88b-69069cd95be5" alt=""><figcaption></figcaption></figure>

* Đây là toàn bộ giao diện để thiết lập ChatBot v2

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FCemTmLQ04cVoPaSF1edA%2Fimage.png?alt=media&amp;token=6eb02ec1-a4f8-4d49-9029-c1c5a37c304f" alt=""><figcaption></figcaption></figure>

* <mark style="background-color:orange;">**Chọn tài khoản**</mark> muốn tạo Chatbot Zalo&#x20;

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FQ752dRfSDuzTN6EQonAG%2Fimage.png?alt=media&amp;token=687a6c2e-abc8-43f9-a4b2-75d7c1537156" alt=""><figcaption></figcaption></figure>

* <mark style="background-color:orange;">**Đặt tên**</mark> Bot Zalo&#x20;

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2F1hZuRwt8UOTb35m4bX2f%2Fimage.png?alt=media&amp;token=0655f7aa-9ca5-46ed-bfa7-9c895c934cc4" alt=""><figcaption></figcaption></figure>

Quý khách có thể tuỳ chọn thiết lập Bot với <mark style="background-color:orange;">**bạn bè**</mark> hoặc với <mark style="background-color:orange;">**điều kiện tag hoặc**</mark> <mark style="background-color:orange;">**người lạ (Đồng ý kết bạn hoặc gửi lời mời kết bạn với người lạ này)**</mark>&#x20;

### Đối với bạn bè

Bot hỗ trợ quý khách với <mark style="background-color:orange;">**toàn bộ danh sách bạn bè**</mark> hoặc nhắn cho <mark style="background-color:orange;">**danh sách bạn bè cụ thể**</mark> hoặc <mark style="background-color:orange;">**danh sách điều kiện tag**</mark>

* Để nhắn cho **toàn bộ danh sách bạn bè**, quý khách chỉ cần tick vào <mark style="background-color:orange;">**"Bạn bè"**</mark>

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FAmGnOhW5Tl31l3geukqz%2Fimage.png?alt=media&amp;token=c1a9d6ae-fec2-4e61-b81a-11b423db07bb" alt=""><figcaption></figcaption></figure>

* Để nhắn cho **danh sách bạn bè cụ thể**, quý khách <mark style="background-color:orange;">**mở tiện ích akaBiz Zalo**</mark> và chọn <mark style="background-color:orange;">**"Lấy danh sách bạn bè"**</mark>. Sau đó trở lại trang thiết lập Bot v2, bấm <mark style="background-color:orange;">**"Tải lại"**</mark> và <mark style="background-color:orange;">**tick**</mark> vào bạn bè muốn nhắn

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2Fnii513RBNqKksX2CKyhZ%2Fimage.png?alt=media&amp;token=449b050c-37af-4792-89bb-03a1bbbaaba9" alt=""><figcaption></figcaption></figure>

* Đối với điều kiện tag

Bot hỗ trợ quý khách nhắn tin với các nhóm tag khách hàng đã được gắn

* Quý khách mở tiện ích akaBiz Zalo, chọn <mark style="background-color:orange;">**"Lấy danh sách tag"**</mark>. Sau đó **trở lại trang thiết lập Bot v2**, bấm <mark style="background-color:orange;">**"Tải lại"**</mark> và chọn <mark style="background-color:orange;">**"Tag muốn gửi"**</mark>

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FZILR6wwqlHPBOKCc63SP%2Fimage.png?alt=media&amp;token=e08c6b2c-b4e5-4734-aa9d-699a35bc37cd" alt=""><figcaption></figcaption></figure>

### Đối với người lạ

* Bot hỗ trợ quý khách <mark style="background-color:orange;">**"Nhắn với người lạ"**</mark> và <mark style="background-color:orange;">**"Đồng ý kết bạn hoặc gửi lời mời kết bạn với người lạ ấy"**</mark>

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FFKiYfHcuaajgogTqiKK6%2Fimage.png?alt=media&amp;token=265d1f8b-92d2-472e-a6ef-a03bff990dad" alt=""><figcaption></figcaption></figure>

### Nhập nội dung để thiết lập Bot

* Cấu trúc cài đặt chatbot&#x20;

<mark style="background-color:blue;">**\[Từ khóa - Câu trả lời]**</mark> và mỗi cặp câu cách nhau bằng dấu | &#x20;

*<mark style="background-color:orange;">**Ví dụ:**</mark>*

Đi ăn cùng không? - Đang bận lắm |

Lễ này có đi chơi không? -  Không đi đâu, hết tiền rồi |

Dạo này khỏe không - Vẫn khỏe

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FTT9Cl5J7KYGuKGT038Cx%2Fimage.png?alt=media&amp;token=2be34352-e31b-4cab-b555-ba3131967cfe" alt=""><figcaption></figcaption></figure>

* Sau khi thiết lập xong => Tick vào <mark style="background-color:orange;">**"Hoạt động"**</mark> để kích hoạt Bot và <mark style="background-color:orange;">**"Lưu"**</mark>

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FWl0m93YvMXmXVyDu1abG%2Fh%C3%ACnh%2010.PNG?alt=media&amp;token=1b567adc-3bab-4556-9e7d-9dd0796cc70b" alt=""><figcaption></figcaption></figure>

## Bước 2: Chạy ChatBot

* Mở tiện ích akaBiz Zalo => Bấm <mark style="background-color:orange;">**"Chạy ChatBot"**</mark>

<figure><img src="https://3838649378-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8vvWRkMlC1dLtc7bQou5%2Fuploads%2FeAxqabZaPXag1ErRP8nL%2Fimage.png?alt=media&amp;token=4071190f-9bb3-4381-8138-1b3e82a96dfd" alt=""><figcaption></figcaption></figure>
