> 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/the-chuc-nang/the-nang-cao/gen-ai.md).

# Gen AI

{% hint style="warning" %}
Thẻ <mark style="color:orange;">**Gen AI**</mark> được sử dụng để kết nối với module Gen AI và phản hồi lại các tin nhắn của khách hàng theo prompt được đưa vào
{% endhint %}

Để sử dụng thẻ Gen AI, bạn cần tạo AI trong module Gen AI trước tiên. Xem hướng dẫn  tại đây

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

* Phiên bản Gen AI: AI bạn đã tạo trong module Gen AI
* Prompt: Nội dung AI sẽ phản hồi. Nếu bạn muốn AI phản hồi lại tin nhắn của khách, chọn attribute {{last\_content\_by\_user}
* Ánh xa attributes: Phản hồi từ AI sẽ được lưu vào thuộc tính nào
* Phản hồi JSON Path: Nhập <mark style="color:purple;">**answer**</mark>

Sau khi setup xong, chọn <mark style="color:orange;">**Lưu**</mark> để lưu lại thông tin thẻ. Bạn cần sử dụng thêm 1 thẻ Messenger Text để gửi tin nhắn cho khách, nội dung thẻ Messenger Text sử dụng thuộc tính đã ánh xạ trong thẻ Gen AI &#x20;

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2Fyhc8TvPJnItF4Mlqa3D3%2Fimage.png?alt=media&amp;token=17db647a-17d3-420e-972a-87b401b00940" alt=""><figcaption></figcaption></figure>
