# 意圖

### 說明

在 YOCTOL.AI 左邊功能欄 **`機器人編輯`** 中的 **`意圖`**（intent）是指機器人對於使用者輸入的自然語言要達成的目標，所給予的分類。

在 YOCTOL.AI 中，若要訓練自然語意引擎，基礎必須有 2 個意圖，最多為 25 個意圖。

{% hint style="info" %}
機器人建置初期建議設定 2-3 個意圖，每個意圖至少 3-5 句 [訓練句](https://docs.yoctol.ai/term/utterance) 再訓練，每個意圖中的訓練句上限為 30 句。
{% endhint %}

### 範例

以飲料店機器人來示範，它基礎要能理解 3 個意圖：

* 商品介紹
* 訂購外送
* 門市介紹

對於同一種意圖，可能有許多不同的自然語言表達方式。舉例而言，當顧客輸入「*招牌是什麼，推嗎？*」、「*外有沒有出新品？*」這兩句話時，根據其語意，機器人都可以將此句子分類為「商品介紹」這個意圖。

### 影片介紹

{% 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/intent.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.
