# 訓練句

### 說明

在 YOCTOL.AI [意圖](https://yoctol.wpcomstaging.com/2019/03/12/%e6%84%8f%e5%9c%96/) 中能撰寫的 **訓練句**（utterance）是針對每個意圖舉例子讓機器人學習的內容。

建議在每個意圖中撰寫至少 3-5 句訓練句，並以模擬多元、最具代表性的使用者問句作為訓練句。每個意圖中的訓練句上限為 30 句。

您可以在訓練句中搭配 [抽換詞類](https://docs.yoctol.ai/term/entity) 來幫助訓練，一個訓練句中可以用到最多 3 個抽換詞。

### 範例

以飲料店機器人為例，若我們想訓練「訂購外送」這個意圖，可以撰寫以下訓練句。若語句中包含 [抽換詞類](https://docs.yoctol.ai/term/entity)，可使用半型的 {{ }} 標注出抽換詞類。

1. 我要訂很多杯！
2. 買多少可以外送？
3. 訂10&#x676F;**{{商品名稱}}**&#x591A;久可以送到？
4. …

### 影片

{% embed url="<https://youtu.be/iTNJr73s42M>" %}


---

# 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://docs-tw.yoctol.ai/term/utterance.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.
