> For the complete documentation index, see [llms.txt](https://docs-tw.yoctol.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-tw.yoctol.ai/term/trigger.md).

# 觸發條件

### 說明

在 YOCTOL.AI 中 [節點](https://docs.yoctol.ai/term/node) 的 **`觸發條件`**（trigger）是使機器人回應特定節點的規則。

**一種觸發條件，只能接在單一節點。**\
**但一個節點，可以有多種觸發條件。**

\
若套用在多個節點上，可能導致機器人無法正常回覆。

### 範例

以飲料店機器人中「訂購資訊」節點為例，可應用的觸發條件包含以下：

1. 自然語意：選擇「意圖為：『訂購資訊』」
2. 關鍵字比對：選擇「包含任意詞彙：『下單』、『訂飲料』、『訂購』」
3. 正規表達式：撰寫「.\*(下單|訂飲料|訂購).\*$」等式子，撰寫方式可參考[正規表達式](https://docs.yoctol.ai/term/regex)。
