For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI 助理

建立新 AI 助理

POST /api/v1/chatbots/

請求內容

請求參數

欄位
類型
必填
說明

name

string

機器人的名稱,在 Agent 模式下,有語義意義,其他模式下,只是用來區分不同的機器人

largeLanguageModel

string (uuid)

機器人使用的大型語言模型,用於生成回答

embeddingModel

string (uuid)

用於向量化文本的嵌入模型,非必填項目

rerankerModel

string (uuid)

用於重新排序的模型,非必填項目

instructions

string

機器人的角色指令,用於描述機器人的角色和行為

knowledgeBases

array[IdName]

機器人可存取的知識庫列表

databases

array[IdName]

機器人可存取的 SQL 資料庫列表(用於 Text-to-SQL 功能)

organization

string (uuid)

機器人所屬的組織,如果為空則為個人機器人

builtInWorkflow

string (uuid)

內建工作流程,用於預定義的處理流程

replyMode

object

回覆模式:一般回覆或串流回覆 normal: 正常 ; template: 模板 ; hybrid: 混合 ; workflow: 工作流 ; agent: 代理;

template

string

模板模式、混合模式所使用的模板

unanswerableTemplate

string

模板模式、混合模式無法回答時的模板

totalWordsCount

integer (int64)

累積的使用總字數

outputMode

object

輸出模式:文字、表格或自定義格式 text: 文字 ; json_schema: JSON Schema;

rawOutputFormat

object

自定義輸出格式的JSON結構定義

groups

array[IdName]

機器人可存取的群組列表

tools

array[ToolSummary]

機器人可使用的工具列表

skills

array[SkillSummary]

機器人關聯的技能列表

connectors

array[IdName]

Connectors associated with this chatbot, gating per-contact OAuth authorization

agentMode

object

代理模式:一般、SQL或工作流程模式 normal: 正常 ; canvas: 畫布 ; team: 團隊;

numberOfRetrievedChunks

integer

提取的參考資料數量,預設為 12,最小值為 1

enableEvaluation

boolean

enableInlineCitations

boolean

啟用內嵌引用功能,會在回應中插入 [1][2] 格式的引用標記

enableCodeInterpreter

boolean

啟用後,提供 Code Interpreter 工具,可在隔離容器中執行程式碼

enableBrowserTool

boolean

Enable browser automation tool for web tasks

enableClaudeStreamRetry

boolean

When a Claude streaming call stalls (first-chunk or mid-stream), abort and re-issue the call once in non-streaming mode. Mid-stream retries send a reset signal so the client discards any partial outpu...

customMaxLlmOutputTokens

integer

自訂最大 LLM 輸出 token 數,最小值為 512

voiceConfig

object

voiceConfig.voiceAgentType

string (uuid)

語音代理模式類型

voiceConfig.sttProvider

string (uuid)

Speech-to-Text 服務提供商

voiceConfig.sttConfig

object

STT 的實際配置參數(JSON 格式)

voiceConfig.ttsProvider

string (uuid)

Text-to-Speech 服務提供商

voiceConfig.ttsConfig

object

TTS 的實際配置參數(JSON 格式)

voiceConfig.realtimeProvider

string (uuid)

Realtime 端到端語音模型提供商

voiceConfig.realtimeConfig

object

Realtime 的實際配置參數(JSON 格式)

voiceConfig.turnHandling

object

語音助理對話輪次與中斷控制設定

voiceConfig.enableVoiceReply

boolean

When disabled, the voice agent replies in text only and does not speak

thinkingConfig

object

Thinking effort 設定(JSON 格式)

enableToolSearching

boolean

啟用動態工具搜尋功能,允許 agent 透過 tool_searching_tool 動態發現和加載工具

maxAgentIterations

integer

Maximum number of iterations for AgentWorkflow (1-100, default: 20)

agentTimeoutSeconds

integer

Timeout in seconds for AgentWorkflow execution (30-1200, default: 600)

agentTimeoutMessage

string

Custom user-facing message shown when AgentWorkflow times out (max 500 chars). Leave empty to use the system default.

enableSizeBasedToolResultTruncation

boolean

When enabled, tool results exceeding the character threshold are truncated using head+tail strategy instead of the legacy SYSTEM_TOOLS whitelist approach. Reduces memory bloat from large tool outputs ...

toolResultMaxChars

integer

Character threshold for size-based tool result truncation (500-50000). Only effective when enable_size_based_tool_result_truncation is True.

enableVectorMemory

boolean

When enabled, archived messages are vectorized and processed by fact extraction for semantic retrieval (existing behavior). When disabled, archived messages are discarded and only the active chat hist...

useGatewayFallback

boolean

When enabled, use the fallback group instead of the single LLM

gatewayFallbackGroup

string (uuid)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


列出 Embedding Model

GET /api/v1/embedding-models/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


列出 Reranker Model

GET /api/v1/reranker-models/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


列出大型語言模型

GET /api/v1/large-language-models/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得 AI 助理列表

GET /api/v1/chatbots/

參數

參數名稱
必填
類型
說明

largeLanguageModel

string

page

integer

A page number within the paginated result set.

pageSize

integer

Number of results to return per page.

pagination

string

是否分頁 (true/false)

query

string

replyMode

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定 AI 助理

GET /api/v1/chatbots/{id}/

參數

參數名稱
必填
類型
說明

id

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


更新 AI 助理

PUT /api/v1/chatbots/{id}/

參數

參數名稱
必填
類型
說明

id

string

請求內容

請求參數

欄位
類型
必填
說明

name

string

機器人的名稱,在 Agent 模式下,有語義意義,其他模式下,只是用來區分不同的機器人

largeLanguageModel

string (uuid)

機器人使用的大型語言模型,用於生成回答

embeddingModel

string (uuid)

用於向量化文本的嵌入模型,非必填項目

rerankerModel

string (uuid)

用於重新排序的模型,非必填項目

instructions

string

機器人的角色指令,用於描述機器人的角色和行為

knowledgeBases

array[IdName]

機器人可存取的知識庫列表

databases

array[IdName]

機器人可存取的 SQL 資料庫列表(用於 Text-to-SQL 功能)

organization

string (uuid)

機器人所屬的組織,如果為空則為個人機器人

builtInWorkflow

string (uuid)

內建工作流程,用於預定義的處理流程

replyMode

object

回覆模式:一般回覆或串流回覆 normal: 正常 ; template: 模板 ; hybrid: 混合 ; workflow: 工作流 ; agent: 代理;

template

string

模板模式、混合模式所使用的模板

unanswerableTemplate

string

模板模式、混合模式無法回答時的模板

totalWordsCount

integer (int64)

累積的使用總字數

outputMode

object

輸出模式:文字、表格或自定義格式 text: 文字 ; json_schema: JSON Schema;

rawOutputFormat

object

自定義輸出格式的JSON結構定義

groups

array[IdName]

機器人可存取的群組列表

tools

array[ToolSummary]

機器人可使用的工具列表

skills

array[SkillSummary]

機器人關聯的技能列表

connectors

array[IdName]

Connectors associated with this chatbot, gating per-contact OAuth authorization

agentMode

object

代理模式:一般、SQL或工作流程模式 normal: 正常 ; canvas: 畫布 ; team: 團隊;

numberOfRetrievedChunks

integer

提取的參考資料數量,預設為 12,最小值為 1

enableEvaluation

boolean

enableInlineCitations

boolean

啟用內嵌引用功能,會在回應中插入 [1][2] 格式的引用標記

enableCodeInterpreter

boolean

啟用後,提供 Code Interpreter 工具,可在隔離容器中執行程式碼

enableBrowserTool

boolean

Enable browser automation tool for web tasks

enableClaudeStreamRetry

boolean

When a Claude streaming call stalls (first-chunk or mid-stream), abort and re-issue the call once in non-streaming mode. Mid-stream retries send a reset signal so the client discards any partial outpu...

customMaxLlmOutputTokens

integer

自訂最大 LLM 輸出 token 數,最小值為 512

voiceConfig

object

voiceConfig.voiceAgentType

string (uuid)

語音代理模式類型

voiceConfig.sttProvider

string (uuid)

Speech-to-Text 服務提供商

voiceConfig.sttConfig

object

STT 的實際配置參數(JSON 格式)

voiceConfig.ttsProvider

string (uuid)

Text-to-Speech 服務提供商

voiceConfig.ttsConfig

object

TTS 的實際配置參數(JSON 格式)

voiceConfig.realtimeProvider

string (uuid)

Realtime 端到端語音模型提供商

voiceConfig.realtimeConfig

object

Realtime 的實際配置參數(JSON 格式)

voiceConfig.turnHandling

object

語音助理對話輪次與中斷控制設定

voiceConfig.enableVoiceReply

boolean

When disabled, the voice agent replies in text only and does not speak

thinkingConfig

object

Thinking effort 設定(JSON 格式)

enableToolSearching

boolean

啟用動態工具搜尋功能,允許 agent 透過 tool_searching_tool 動態發現和加載工具

maxAgentIterations

integer

Maximum number of iterations for AgentWorkflow (1-100, default: 20)

agentTimeoutSeconds

integer

Timeout in seconds for AgentWorkflow execution (30-1200, default: 600)

agentTimeoutMessage

string

Custom user-facing message shown when AgentWorkflow times out (max 500 chars). Leave empty to use the system default.

enableSizeBasedToolResultTruncation

boolean

When enabled, tool results exceeding the character threshold are truncated using head+tail strategy instead of the legacy SYSTEM_TOOLS whitelist approach. Reduces memory bloat from large tool outputs ...

toolResultMaxChars

integer

Character threshold for size-based tool result truncation (500-50000). Only effective when enable_size_based_tool_result_truncation is True.

enableVectorMemory

boolean

When enabled, archived messages are vectorized and processed by fact extraction for semantic retrieval (existing behavior). When disabled, archived messages are discarded and only the active chat hist...

useGatewayFallback

boolean

When enabled, use the fallback group instead of the single LLM

gatewayFallbackGroup

string (uuid)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新 AI 助理

PATCH /api/v1/chatbots/{id}/

參數

參數名稱
必填
類型
說明

id

string

請求內容

請求參數

欄位
類型
必填
說明

name

string

機器人的名稱,在 Agent 模式下,有語義意義,其他模式下,只是用來區分不同的機器人

largeLanguageModel

string (uuid)

機器人使用的大型語言模型,用於生成回答

embeddingModel

string (uuid)

用於向量化文本的嵌入模型,非必填項目

rerankerModel

string (uuid)

用於重新排序的模型,非必填項目

instructions

string

機器人的角色指令,用於描述機器人的角色和行為

knowledgeBases

array[IdName]

機器人可存取的知識庫列表

databases

array[IdName]

機器人可存取的 SQL 資料庫列表(用於 Text-to-SQL 功能)

organization

string (uuid)

機器人所屬的組織,如果為空則為個人機器人

builtInWorkflow

string (uuid)

內建工作流程,用於預定義的處理流程

replyMode

object

回覆模式:一般回覆或串流回覆 normal: 正常 ; template: 模板 ; hybrid: 混合 ; workflow: 工作流 ; agent: 代理;

template

string

模板模式、混合模式所使用的模板

unanswerableTemplate

string

模板模式、混合模式無法回答時的模板

totalWordsCount

integer (int64)

累積的使用總字數

outputMode

object

輸出模式:文字、表格或自定義格式 text: 文字 ; json_schema: JSON Schema;

rawOutputFormat

object

自定義輸出格式的JSON結構定義

groups

array[IdName]

機器人可存取的群組列表

tools

array[ToolSummary]

機器人可使用的工具列表

skills

array[SkillSummary]

機器人關聯的技能列表

connectors

array[IdName]

Connectors associated with this chatbot, gating per-contact OAuth authorization

agentMode

object

代理模式:一般、SQL或工作流程模式 normal: 正常 ; canvas: 畫布 ; team: 團隊;

numberOfRetrievedChunks

integer

提取的參考資料數量,預設為 12,最小值為 1

enableEvaluation

boolean

enableInlineCitations

boolean

啟用內嵌引用功能,會在回應中插入 [1][2] 格式的引用標記

enableCodeInterpreter

boolean

啟用後,提供 Code Interpreter 工具,可在隔離容器中執行程式碼

enableBrowserTool

boolean

Enable browser automation tool for web tasks

enableClaudeStreamRetry

boolean

When a Claude streaming call stalls (first-chunk or mid-stream), abort and re-issue the call once in non-streaming mode. Mid-stream retries send a reset signal so the client discards any partial outpu...

customMaxLlmOutputTokens

integer

自訂最大 LLM 輸出 token 數,最小值為 512

voiceConfig

object

voiceConfig.voiceAgentType

string (uuid)

語音代理模式類型

voiceConfig.sttProvider

string (uuid)

Speech-to-Text 服務提供商

voiceConfig.sttConfig

object

STT 的實際配置參數(JSON 格式)

voiceConfig.ttsProvider

string (uuid)

Text-to-Speech 服務提供商

voiceConfig.ttsConfig

object

TTS 的實際配置參數(JSON 格式)

voiceConfig.realtimeProvider

string (uuid)

Realtime 端到端語音模型提供商

voiceConfig.realtimeConfig

object

Realtime 的實際配置參數(JSON 格式)

voiceConfig.turnHandling

object

語音助理對話輪次與中斷控制設定

voiceConfig.enableVoiceReply

boolean

When disabled, the voice agent replies in text only and does not speak

thinkingConfig

object

Thinking effort 設定(JSON 格式)

enableToolSearching

boolean

啟用動態工具搜尋功能,允許 agent 透過 tool_searching_tool 動態發現和加載工具

maxAgentIterations

integer

Maximum number of iterations for AgentWorkflow (1-100, default: 20)

agentTimeoutSeconds

integer

Timeout in seconds for AgentWorkflow execution (30-1200, default: 600)

agentTimeoutMessage

string

Custom user-facing message shown when AgentWorkflow times out (max 500 chars). Leave empty to use the system default.

enableSizeBasedToolResultTruncation

boolean

When enabled, tool results exceeding the character threshold are truncated using head+tail strategy instead of the legacy SYSTEM_TOOLS whitelist approach. Reduces memory bloat from large tool outputs ...

toolResultMaxChars

integer

Character threshold for size-based tool result truncation (500-50000). Only effective when enable_size_based_tool_result_truncation is True.

enableVectorMemory

boolean

When enabled, archived messages are vectorized and processed by fact extraction for semantic retrieval (existing behavior). When disabled, archived messages are discarded and only the active chat hist...

useGatewayFallback

boolean

When enabled, use the fallback group instead of the single LLM

gatewayFallbackGroup

string (uuid)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


刪除 AI 助理

DELETE /api/v1/chatbots/{id}/

參數

參數名稱
必填
類型
說明

id

string

程式碼範例

回應內容

狀態碼
說明

204

No response body


複製 AI 助理

POST /api/v1/chatbots/{id}/duplicate/

參數

參數名稱
必填
類型
說明

id

string

請求內容

請求參數

欄位
類型
必填
說明

name

string

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


啟用或停用評估功能

PATCH /api/v1/chatbots/{id}/enable-evaluation/

參數

參數名稱
必填
類型
說明

id

string

請求內容

請求參數

欄位
類型
必填
說明

enableEvaluation

boolean

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


Last updated

Was this helpful?