# Trigger

## 什么是Trigger？

当用户想要新建一个Chatbot时，界面中会首先跳出“ Add a trigger"，这代表需要添加这个Chatbot的触发关键词。

<figure><img src="/files/IP1Tm54dFuznvEg2cLcp" alt=""><figcaption></figcaption></figure>

## Trigger类型：

### 完全符合（Exact matching)

* 只有当用户回复的内容完全命中了设置的任何一个关键词，才能触发。
* 适合用于一些特定的优惠码、邀请码的领券场景。

<figure><img src="/files/BRgsA5mYVb4yzGxAfKly" alt=""><figcaption></figcaption></figure>

### 部分包含（Containing）

* 用户回复的信息需包含其中一个触发关键词，就可以触发Chatbot。

<figure><img src="/files/Gbgw8wGPAX913Hg4MvMp" alt=""><figcaption></figcaption></figure>

## 自然语言触发（Natural language trigger)

{% hint style="info" %}
选择自然语言触发和选择特定关键词触发并不冲突。您在选择了自然语言触发之后，依然可以加入您想添加的特定触发关键词来进行对应chatbot的触发。
{% endhint %}

利用AI大语言模型来理解用户触发chatbot的关键词，无需输入特定的触发关键词。

您可以在"Conversation topic"中选择YCloud系统中默认的触发主题，如：打招呼，查询订单状态，转接人工等等；也可以选择定制特定的主题；\
同时，您可以在下方添加一些其他您认为需要补充的关键词，来帮助更好的识别到客户的语义，进而触发对应的chatbot。

<figure><img src="/files/yijhJi5RmhQJbBgj3Lhg" alt=""><figcaption></figcaption></figure>

## 快速回复按钮触发 (Click button trigger)

触发chatbot需要结合带有快速回复按钮的模版。

适用于企业向用户发送带有快捷回复按钮的营销/通知类型的消息时，用户点击了对应按钮，会跳转到对应的chatbot flow，在flow中进行与用户的活动。

<figure><img src="/files/NHjF9low4FoX0nnxmfdT" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WcpNLJ5KnHcod2lsPSJj" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpdocs.ycloud.com/help-center/zh/chatbot/chatbot-components/trigger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
