> 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/genai.md).

# GenAI

{% hint style="warning" %}
T**rigger GenAI** dùng để kích hoạt AI tương tác và phát hiện ý định khách hàng để gửi các luồng chatbot phù hợp với ngữ cảnh
{% endhint %}

Để tạo trigger GenAI, bạn cần thiết lập sẵn 1 AI Chatbot trong Extend Modules. Xem hướng dẫn thiết lập tại:

{% content-ref url="/pages/HPSz5zLR5cFMiYr7TdY5" %}
[GenAI](/extend-modules/genai.md)
{% endcontent-ref %}

Tiếp theo, trong phần **Kịch bản (Trigger)** của module Bot-Auto, tạo mới trigger GenAI

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FI7QktAWvTQIR5xvYMFcW%2Fimage.png?alt=media&amp;token=fb0c4c17-3d30-4aa6-9b77-5b50d30ac2f9" alt=""><figcaption></figcaption></figure>

Chọn kênh bạn muốn áp dụng trigger (1), sau đó chọn GenAI bạn đã thiết lập sẵn trước đó (2).&#x20;

Phần ý định khách hàng (3) dùng để phát hiện hành vi khách hàng, ví dụ: khách muốn mua hàng, khách phàn nàn về sản phẩm,...Tại phần này, bạn có thể chọn gửi các luồng chatbot hoặc để GenAI phản hồi trực tiếp sau khi phát hiện được ý định khách hàng

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FOHolayfGawRqkv5yiNbu%2Fimage.png?alt=media&amp;token=e7810f1c-3d6b-4150-8187-1428421eda8c" alt=""><figcaption></figcaption></figure>
