> For the complete documentation index, see [llms.txt](https://tailieu.smax.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailieu.smax.ai/bot-auto/trigger/zalo-oa-trigger/bot-api.md).

# Bot API

{% hint style="info" %}
Trigger <mark style="color:orange;">**Bot API**</mark> sẽ giúp bạn gửi kịch bản chatbot cho khách hàng thông qua API
{% endhint %}

Xem chi tiết về Bot API tại đây

{% content-ref url="/pages/O29nrQF9hlXUwpYmOh26" %}
[Bot API](/bot-auto/trigger/facebook/bot-api.md)
{% endcontent-ref %}

Trong danh sách trigger chọn trigger Bot API

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FYtmFTGKk4gtZwOjoCHsW%2Fimage.png?alt=media&amp;token=237ed699-3830-4df0-8785-41c31a80f853" alt=""><figcaption></figcaption></figure>

Sau đó lựa chọn kênh áp dụng, loại token, loại khách hàng,... tương tự trigger Bot API trên Messenger

{% hint style="info" %}
Lưu ý: pid và page\_pid của khách hàng trên Zalo OA và Messenger khác nhau
{% endhint %}

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FGujhwYy4AdSKnmNd0BGn%2Fimage.png?alt=media&amp;token=4ddabacc-0a25-43c2-9873-8a16447519ed" alt=""><figcaption></figcaption></figure>
