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?
