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

# GenAI

{% hint style="warning" %}
**Trigger Gen AI** dùng để tạo ra điều kiện chạy các luồng bot theo những thông tin mà AI thu thập được từ module Gen AI
{% endhint %}

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2F5WtXnEQo7Z82J06uVTFO%2Fimage.png?alt=media&amp;token=043bab85-b5c9-45e3-aede-3000c16c85e5" alt=""><figcaption></figcaption></figure>

Trong danh sách trigger chọn GenAI:

<mark style="color:purple;">**(1)**</mark> Đặt tên trigger

<mark style="color:purple;">**(2)**</mark> Chọn kênh áp dụng

<mark style="color:purple;">**(3)**</mark> Cài đặt thời gian chạy nếu muốn

<mark style="color:purple;">**(4)**</mark> Chọn GenAI đã tạo trong GenAI module

* Ý định của khách hàng (đây là phần mẫu thu thập thông tin đã tạo trong module Gen AI)

{% hint style="info" %}
Trong phần Ý định của khách hàng sẽ có lựa chọn <mark style="color:orange;">**Other**</mark>, đây là tùy chọn khi AI không phát hiện được ý định nào của khách hàng mà bạn đã setup trước đó => sẽ vào <mark style="color:orange;">**Other**</mark>
{% endhint %}

* Hành động:
  * Gửi block: Khi AI phát hiện ý định của khách hàng thì sẽ gửi 1 block
  * Trả lời trực tiếp: AI sẽ trả lời luôn, không chạy qua block của Bot

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FnZNWgZZ2PQ4ytmjpDvGK%2Fimage.png?alt=media&amp;token=f424e5ba-1ddd-45a1-89b0-83f2d5cb8471" alt=""><figcaption></figcaption></figure>
