> For the complete documentation index, see [llms.txt](https://docs.dmflow.chat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dmflow.chat/chatbot/introduction.md).

# 機器人介紹

### 記憶模板

記憶模板分為使用者參數、使用者標籤、機器人參數、單一會話儲存

* 使用者參數: 可儲存文字、數字、時間(秒數)
* 使用者標籤: 可以加上標籤以便推播
* 機器人參數: 類似environment參數，就是機器人固定的參數，一般用於資源的密鑰
* 單一會話儲存: 可儲存文字、數字、時間(秒數)、列表，每次開啟聊天會有30分鐘的session，當對話一直尚未結束會一直延長，直到對話結束後的三十分鐘此儲存才會消失。

### 場景

場景可以多個，多用於Messenger的OPEN\_THREAD，以及網頁內嵌的場景轉換，場景可以根據你給的連結從不同的節點開始。

### 調用領域

領域調用需要注意需要先進入領域設定連接機器人並且發布成為生產版才能呼叫，否則會一有錯誤碼出現。

錯誤碼

* 10001: 領域可能被刪除或者查找不到
* 10002:領域已經被關閉
* 11000:有錯誤發生，但不知道發生什麼事

### 資源調用

可直接呼叫外部HTTP，此資源調用要注意最大連線時間僅五秒，請勿使用於會逾時的連接。

### 流程

圖形化流程設計，有五個節點介紹

* 資源節點: 專門調用資源的節點
* 回覆節點: 回覆使用者的節點
* 情境節點:(下一章介紹)
* 變數節點: 將參數寫入使用者參數、標籤或單一會話的節點
* 調用節點: 任何服務的調用都在此節點(下一章介紹)

### 發布

提供多版本選取，以及每個機器人都可以有dev(開發版)以及prod(生產版)兩個分支。


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.dmflow.chat/chatbot/introduction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
