> 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/guide/add_intent_utterance.md).

# (3) 建立意圖 & 撰寫訓練句

### 本篇教您的重點

* 如何建意圖？
* 如何寫訓練句？

### 重要概念

* **目的**\
  訓練機器人聽懂人類語言。
* **建立**[**意圖**](https://docs.yoctol.ai/term/intent)\
  訓練機器人時，告訴機器人他所需要**聽懂的內容類型**，就是建立**意圖**。
* **撰寫**[**訓練句**](https://docs.yoctol.ai/term/utterance)\
  訓練機器人時，需要把**人類平常會講話 / 打字輸入的句子**，教給機器人，就是撰寫**訓練句**。

### 操作步驟

1. 到 **`機器人編輯`** 點選 **`意圖`**
2. 點選 **`＋意圖群組`** 並命名
3. 點選 `＋`建立意圖並命名（請建立至少 2 個意圖）
4. 點選右上角 **`＋訓練句`**
5. 撰寫至少 3 句訓練句

![](/files/-LbRbzcv5X-i6SXbQbiB)

* 建立完成後，請按下上方 `訓練`
* 詳細操作步驟，請參考[訓練及測試](https://docs.yoctol.ai/guide/training_predict)。

### 你可能還想知道

* [什麼是意圖？](https://docs.yoctol.ai/term/intent)
* [什麼是訓練句？](https://docs.yoctol.ai/term/utterance)
* [什麼是抽換詞類？](https://docs.yoctol.ai/term/entity)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/guide/add_intent_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.
