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

AI 助理

建立新 AI 助理

POST /api/v1/chatbots/

請求內容

請求參數

欄位
類型
必填
說明

name

string

是

Chatbot name. In Agent mode it carries semantic meaning; in other modes it only distinguishes chatbots.

largeLanguageModel

string (uuid)

是

機器人使用的大型語言模型,用於生成回答(含組織自建的 AI Gateway 模型);建立時只有組織在 AI助理預設值設了預設模型才可省略

condenseQuestionLlm

string (uuid)

否

問題改寫模型:RAG 回覆模式檢索前把追問改寫成獨立問題;null 表示跟隨系統設定(已選的模型之後被組織封鎖或停用時,也讀回 null 並跟隨系統設定)

embeddingModel

string (uuid)

否

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

rerankerModel

string (uuid)

否

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

instructions

string

否

Role instructions describing the chatbot's role and behavior.

knowledgeBases

array[IdName]

否

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

databases

array[IdName]

否

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

organization

string (uuid)

否

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

replyMode

object

否

回覆模式:一般回覆或串流回覆 normal: Normal ; template: Template ; hybrid: Hybrid ; agent: Agent;

template

string

否

Template used by Template and Hybrid modes.

unanswerableTemplate

string

否

Template used by Template and Hybrid modes when the question cannot be answered.

totalWordsCount

integer (int64)

否

Accumulated total word count used.

outputMode

object

否

輸出模式:文字或結構化輸出;未帶時,請求帶非空 rawOutputFormat 視為結構化輸出,否則沿用原值(新建為文字) text: 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: Normal ; canvas: Canvas ; team: Team;

numberOfRetrievedChunks

integer

否

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

defaultLabelRelations

object

否

助理層級的預設知識庫標籤過濾條件,格式同 query_metadata.label_relations;null 表示不過濾。僅在呼叫端未帶 query_metadata 時作為最低優先序兜底套用。

useFullRetrievalRange

boolean

否

啟用後忽略 LLM 的 top_k 截斷,回傳完整 reranker 結果

enableEvaluation

boolean

否

enableInlineCitations

boolean

否

Enables inline citations, inserting citation markers such as [1][2] into responses.

enableCodeInterpreter

boolean

否

When enabled, provides the Code Interpreter tool to run code in an isolated container.

enableBrowserTool

boolean

否

Enable browser automation tool for web tasks

browserToolMaxSteps

integer

否

Most browser actions one reply of this assistant may take (1-100); null follows default_browser_tool_max_steps. Leaving it out of an update keeps the stored value.

enableCloudDesktop

boolean

否

Let the assistant operate a cloud desktop with the computer tool in its test chat. It is offered only when the site-wide cloud desktop scope includes this organization.

cloudDesktopAllowedDomains

array[string]

否

Domains the cloud desktop may reach, one per item; empty means no restriction (S19)

enableImageSearch

boolean

否

Provide the image_search tool when any attached knowledge base uses a multimodal embedding model. Disable to remove the tool entirely.

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...

enableStreamStallRetry

boolean

否

When an OpenAI, Azure, OpenAI-compatible or Vertex streaming call stalls (no first token, or a silence between tokens), abort it and re-issue the call once in non-streaming mode. Bedrock calls follow ...

customMaxLlmOutputTokens

integer

否

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

voiceConfig

object

否

voiceConfig.enabled

boolean

否

Whether this chatbot can be used as a voice agent. Checked by every conversation platform (WebChat, SIP phone, admin/marketplace voice test) instead of a per-platform toggle.

voiceConfig.voiceAgentType

string (uuid)

否

Voice agent mode type.

voiceConfig.sttProvider

string (uuid)

否

Speech-to-Text service provider.

voiceConfig.sttConfig

object

否

STT configuration parameters (JSON).

voiceConfig.ttsProvider

string (uuid)

否

Text-to-Speech service provider.

voiceConfig.ttsConfig

object

否

TTS configuration parameters (JSON).

voiceConfig.realtimeProvider

string (uuid)

否

Realtime end-to-end voice model provider.

voiceConfig.realtimeConfig

object

否

Realtime configuration parameters (JSON).

voiceConfig.realtimeInstructions

string

否

Prompt dedicated to the realtime voice session; falls back to chatbot instructions when empty

voiceConfig.turnHandling

object

否

Turn-taking and interruption settings for the voice agent.

voiceConfig.enableVoiceReply

boolean

否

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

thinkingConfig

object

否

思考等級:null(模型預設)或 {"reasoning_effort": "off

enableToolSearching

boolean

否

舊欄位,請改用 tool_loading_mode。寫入 true 等同 tool_loading_mode=search、false 等同 all;兩者都帶時以 tool_loading_mode 為準。讀取時回傳「工具載入方式不是全部載入」。

toolLoadingMode

object

否

工具載入方式:auto(自動,依當輪可用工具量與模型決定)、all(全部載入)、search(動態搜尋)。新建助理預設 auto;尚未設定過的既有助理回傳依舊開關換算的值(開→search、關→all)。 auto: Auto ; all: Load all ; search: Dynamic search;

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.

requireTextWithFlexCards

boolean

否

When enabled, a turn that would end with only Flex Message cards and no text for the user is re-issued to the LLM once, asking it to write the text first and then send the card. Each retry incurs a se...

enableSizeBasedToolResultTruncation

boolean

否

When enabled, tool results exceeding the character threshold are kept as head+tail (with the identifiers found in the cut part) when written to conversation history; knowledge base, SQL and conversati...

toolResultMaxChars

integer

否

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

enableMemberMemoryWrite

boolean

否

When enabled, what organization members say about themselves in this agent's conversations is saved to their personal AI memory, which every agent with Use Member Memory enabled can refer to. Keep it ...

enableMemberMemoryInjection

boolean

否

When enabled, organization members' personal AI memory is given to this agent as background. When disabled, the agent answers members without it, as it answers customers. MaiGPT has it on.

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...

longTermMemoryTopK

integer

否

長期記憶每次檢索取回的記憶節點數(向量檢索的 similarity_top_k),預設為 10,範圍 1–50

enableCrossConversationSearch

boolean

否

When enabled, the conversation history tools also reach this contact's other conversations in the same inbox, within the lookback window. When disabled, they only reach the current conversation.

crossConversationLookbackDays

integer

否

How far back cross-conversation search may reach, measured from each conversation's last message (1-365 days). Leave empty to fall back to 90 days. Only effective when enable_cross_conversation_search...

useGatewayFallback

boolean

否

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

gatewayFallbackGroup

string (uuid)

否

enableSearchMessagesTool

boolean

否

Allow the AI to search past messages in the current conversation.

enableGetMessageContextTool

boolean

否

Allow the AI to retrieve messages surrounding a specific message for context.

enableReadAttachmentFullTextTool

boolean

否

Allow the AI to read the full text of plain-text attachments. AGENT mode only.

enableParseAttachmentContentTool

boolean

否

Allow the AI to parse PDF, Office, audio, and other attachments. AGENT mode only.

enableListAvailableParsersTool

boolean

否

Allow the AI to list available parsers and their capabilities. AGENT mode only.

enableGetDownloadLinkTool

boolean

否

Allow the AI to generate shareable download links for produced content. AGENT mode only.

webChatIsActive

boolean

否

Optional, create only. Whether the web widget channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignor...

apiIsActive

boolean

否

Optional, create only. Whether the API channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignored on u...

fileWorkspaceMode

object

否

File workspace mode in Work internal conversations: none, bound or user_mount. none: None ; bound: Bound workspace ; user_mount: User mount;

fileWorkspaceFolder

string (uuid)

否

The bound workspace (folder id); required when the mode is bound, cleared otherwise.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 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/

參數

參數名稱
必填
類型
說明

createdByMember

❌

string

建立者篩選:本組織成員 id(成員名冊回傳的 id,含已停用成員),只回該成員建立的 AI 助理

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

source

❌

string

`self_built`: self_built ; `built_in`: built_in ; `all`: all;

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定 AI 助理

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

參數

參數名稱
必填
類型
說明

id

✅

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


更新 AI 助理

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

參數

參數名稱
必填
類型
說明

id

✅

string

請求內容

請求參數

欄位
類型
必填
說明

name

string

是

Chatbot name. In Agent mode it carries semantic meaning; in other modes it only distinguishes chatbots.

largeLanguageModel

string (uuid)

是

機器人使用的大型語言模型,用於生成回答(含組織自建的 AI Gateway 模型);建立時只有組織在 AI助理預設值設了預設模型才可省略

condenseQuestionLlm

string (uuid)

否

問題改寫模型:RAG 回覆模式檢索前把追問改寫成獨立問題;null 表示跟隨系統設定(已選的模型之後被組織封鎖或停用時,也讀回 null 並跟隨系統設定)

embeddingModel

string (uuid)

否

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

rerankerModel

string (uuid)

否

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

instructions

string

否

Role instructions describing the chatbot's role and behavior.

knowledgeBases

array[IdName]

否

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

databases

array[IdName]

否

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

organization

string (uuid)

否

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

replyMode

object

否

回覆模式:一般回覆或串流回覆 normal: Normal ; template: Template ; hybrid: Hybrid ; agent: Agent;

template

string

否

Template used by Template and Hybrid modes.

unanswerableTemplate

string

否

Template used by Template and Hybrid modes when the question cannot be answered.

totalWordsCount

integer (int64)

否

Accumulated total word count used.

outputMode

object

否

輸出模式:文字或結構化輸出;未帶時,請求帶非空 rawOutputFormat 視為結構化輸出,否則沿用原值(新建為文字) text: 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: Normal ; canvas: Canvas ; team: Team;

numberOfRetrievedChunks

integer

否

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

defaultLabelRelations

object

否

助理層級的預設知識庫標籤過濾條件,格式同 query_metadata.label_relations;null 表示不過濾。僅在呼叫端未帶 query_metadata 時作為最低優先序兜底套用。

useFullRetrievalRange

boolean

否

啟用後忽略 LLM 的 top_k 截斷,回傳完整 reranker 結果

enableEvaluation

boolean

否

enableInlineCitations

boolean

否

Enables inline citations, inserting citation markers such as [1][2] into responses.

enableCodeInterpreter

boolean

否

When enabled, provides the Code Interpreter tool to run code in an isolated container.

enableBrowserTool

boolean

否

Enable browser automation tool for web tasks

browserToolMaxSteps

integer

否

Most browser actions one reply of this assistant may take (1-100); null follows default_browser_tool_max_steps. Leaving it out of an update keeps the stored value.

enableCloudDesktop

boolean

否

Let the assistant operate a cloud desktop with the computer tool in its test chat. It is offered only when the site-wide cloud desktop scope includes this organization.

cloudDesktopAllowedDomains

array[string]

否

Domains the cloud desktop may reach, one per item; empty means no restriction (S19)

enableImageSearch

boolean

否

Provide the image_search tool when any attached knowledge base uses a multimodal embedding model. Disable to remove the tool entirely.

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...

enableStreamStallRetry

boolean

否

When an OpenAI, Azure, OpenAI-compatible or Vertex streaming call stalls (no first token, or a silence between tokens), abort it and re-issue the call once in non-streaming mode. Bedrock calls follow ...

customMaxLlmOutputTokens

integer

否

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

voiceConfig

object

否

voiceConfig.enabled

boolean

否

Whether this chatbot can be used as a voice agent. Checked by every conversation platform (WebChat, SIP phone, admin/marketplace voice test) instead of a per-platform toggle.

voiceConfig.voiceAgentType

string (uuid)

否

Voice agent mode type.

voiceConfig.sttProvider

string (uuid)

否

Speech-to-Text service provider.

voiceConfig.sttConfig

object

否

STT configuration parameters (JSON).

voiceConfig.ttsProvider

string (uuid)

否

Text-to-Speech service provider.

voiceConfig.ttsConfig

object

否

TTS configuration parameters (JSON).

voiceConfig.realtimeProvider

string (uuid)

否

Realtime end-to-end voice model provider.

voiceConfig.realtimeConfig

object

否

Realtime configuration parameters (JSON).

voiceConfig.realtimeInstructions

string

否

Prompt dedicated to the realtime voice session; falls back to chatbot instructions when empty

voiceConfig.turnHandling

object

否

Turn-taking and interruption settings for the voice agent.

voiceConfig.enableVoiceReply

boolean

否

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

thinkingConfig

object

否

思考等級:null(模型預設)或 {"reasoning_effort": "off

enableToolSearching

boolean

否

舊欄位,請改用 tool_loading_mode。寫入 true 等同 tool_loading_mode=search、false 等同 all;兩者都帶時以 tool_loading_mode 為準。讀取時回傳「工具載入方式不是全部載入」。

toolLoadingMode

object

否

工具載入方式:auto(自動,依當輪可用工具量與模型決定)、all(全部載入)、search(動態搜尋)。新建助理預設 auto;尚未設定過的既有助理回傳依舊開關換算的值(開→search、關→all)。 auto: Auto ; all: Load all ; search: Dynamic search;

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.

requireTextWithFlexCards

boolean

否

When enabled, a turn that would end with only Flex Message cards and no text for the user is re-issued to the LLM once, asking it to write the text first and then send the card. Each retry incurs a se...

enableSizeBasedToolResultTruncation

boolean

否

When enabled, tool results exceeding the character threshold are kept as head+tail (with the identifiers found in the cut part) when written to conversation history; knowledge base, SQL and conversati...

toolResultMaxChars

integer

否

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

enableMemberMemoryWrite

boolean

否

When enabled, what organization members say about themselves in this agent's conversations is saved to their personal AI memory, which every agent with Use Member Memory enabled can refer to. Keep it ...

enableMemberMemoryInjection

boolean

否

When enabled, organization members' personal AI memory is given to this agent as background. When disabled, the agent answers members without it, as it answers customers. MaiGPT has it on.

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...

longTermMemoryTopK

integer

否

長期記憶每次檢索取回的記憶節點數(向量檢索的 similarity_top_k),預設為 10,範圍 1–50

enableCrossConversationSearch

boolean

否

When enabled, the conversation history tools also reach this contact's other conversations in the same inbox, within the lookback window. When disabled, they only reach the current conversation.

crossConversationLookbackDays

integer

否

How far back cross-conversation search may reach, measured from each conversation's last message (1-365 days). Leave empty to fall back to 90 days. Only effective when enable_cross_conversation_search...

useGatewayFallback

boolean

否

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

gatewayFallbackGroup

string (uuid)

否

enableSearchMessagesTool

boolean

否

Allow the AI to search past messages in the current conversation.

enableGetMessageContextTool

boolean

否

Allow the AI to retrieve messages surrounding a specific message for context.

enableReadAttachmentFullTextTool

boolean

否

Allow the AI to read the full text of plain-text attachments. AGENT mode only.

enableParseAttachmentContentTool

boolean

否

Allow the AI to parse PDF, Office, audio, and other attachments. AGENT mode only.

enableListAvailableParsersTool

boolean

否

Allow the AI to list available parsers and their capabilities. AGENT mode only.

enableGetDownloadLinkTool

boolean

否

Allow the AI to generate shareable download links for produced content. AGENT mode only.

webChatIsActive

boolean

否

Optional, create only. Whether the web widget channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignor...

apiIsActive

boolean

否

Optional, create only. Whether the API channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignored on u...

fileWorkspaceMode

object

否

File workspace mode in Work internal conversations: none, bound or user_mount. none: None ; bound: Bound workspace ; user_mount: User mount;

fileWorkspaceFolder

string (uuid)

否

The bound workspace (folder id); required when the mode is bound, cleared otherwise.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新 AI 助理

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

參數

參數名稱
必填
類型
說明

id

✅

string

請求內容

請求參數

欄位
類型
必填
說明

name

string

否

Chatbot name. In Agent mode it carries semantic meaning; in other modes it only distinguishes chatbots.

largeLanguageModel

string (uuid)

否

機器人使用的大型語言模型,用於生成回答(含組織自建的 AI Gateway 模型);建立時只有組織在 AI助理預設值設了預設模型才可省略

condenseQuestionLlm

string (uuid)

否

問題改寫模型:RAG 回覆模式檢索前把追問改寫成獨立問題;null 表示跟隨系統設定(已選的模型之後被組織封鎖或停用時,也讀回 null 並跟隨系統設定)

embeddingModel

string (uuid)

否

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

rerankerModel

string (uuid)

否

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

instructions

string

否

Role instructions describing the chatbot's role and behavior.

knowledgeBases

array[IdName]

否

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

databases

array[IdName]

否

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

organization

string (uuid)

否

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

replyMode

object

否

回覆模式:一般回覆或串流回覆 normal: Normal ; template: Template ; hybrid: Hybrid ; agent: Agent;

template

string

否

Template used by Template and Hybrid modes.

unanswerableTemplate

string

否

Template used by Template and Hybrid modes when the question cannot be answered.

totalWordsCount

integer (int64)

否

Accumulated total word count used.

outputMode

object

否

輸出模式:文字或結構化輸出;未帶時,請求帶非空 rawOutputFormat 視為結構化輸出,否則沿用原值(新建為文字) text: 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: Normal ; canvas: Canvas ; team: Team;

numberOfRetrievedChunks

integer

否

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

defaultLabelRelations

object

否

助理層級的預設知識庫標籤過濾條件,格式同 query_metadata.label_relations;null 表示不過濾。僅在呼叫端未帶 query_metadata 時作為最低優先序兜底套用。

useFullRetrievalRange

boolean

否

啟用後忽略 LLM 的 top_k 截斷,回傳完整 reranker 結果

enableEvaluation

boolean

否

enableInlineCitations

boolean

否

Enables inline citations, inserting citation markers such as [1][2] into responses.

enableCodeInterpreter

boolean

否

When enabled, provides the Code Interpreter tool to run code in an isolated container.

enableBrowserTool

boolean

否

Enable browser automation tool for web tasks

browserToolMaxSteps

integer

否

Most browser actions one reply of this assistant may take (1-100); null follows default_browser_tool_max_steps. Leaving it out of an update keeps the stored value.

enableCloudDesktop

boolean

否

Let the assistant operate a cloud desktop with the computer tool in its test chat. It is offered only when the site-wide cloud desktop scope includes this organization.

cloudDesktopAllowedDomains

array[string]

否

Domains the cloud desktop may reach, one per item; empty means no restriction (S19)

enableImageSearch

boolean

否

Provide the image_search tool when any attached knowledge base uses a multimodal embedding model. Disable to remove the tool entirely.

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...

enableStreamStallRetry

boolean

否

When an OpenAI, Azure, OpenAI-compatible or Vertex streaming call stalls (no first token, or a silence between tokens), abort it and re-issue the call once in non-streaming mode. Bedrock calls follow ...

customMaxLlmOutputTokens

integer

否

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

voiceConfig

object

否

voiceConfig.enabled

boolean

否

Whether this chatbot can be used as a voice agent. Checked by every conversation platform (WebChat, SIP phone, admin/marketplace voice test) instead of a per-platform toggle.

voiceConfig.voiceAgentType

string (uuid)

否

Voice agent mode type.

voiceConfig.sttProvider

string (uuid)

否

Speech-to-Text service provider.

voiceConfig.sttConfig

object

否

STT configuration parameters (JSON).

voiceConfig.ttsProvider

string (uuid)

否

Text-to-Speech service provider.

voiceConfig.ttsConfig

object

否

TTS configuration parameters (JSON).

voiceConfig.realtimeProvider

string (uuid)

否

Realtime end-to-end voice model provider.

voiceConfig.realtimeConfig

object

否

Realtime configuration parameters (JSON).

voiceConfig.realtimeInstructions

string

否

Prompt dedicated to the realtime voice session; falls back to chatbot instructions when empty

voiceConfig.turnHandling

object

否

Turn-taking and interruption settings for the voice agent.

voiceConfig.enableVoiceReply

boolean

否

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

thinkingConfig

object

否

思考等級:null(模型預設)或 {"reasoning_effort": "off

enableToolSearching

boolean

否

舊欄位,請改用 tool_loading_mode。寫入 true 等同 tool_loading_mode=search、false 等同 all;兩者都帶時以 tool_loading_mode 為準。讀取時回傳「工具載入方式不是全部載入」。

toolLoadingMode

object

否

工具載入方式:auto(自動,依當輪可用工具量與模型決定)、all(全部載入)、search(動態搜尋)。新建助理預設 auto;尚未設定過的既有助理回傳依舊開關換算的值(開→search、關→all)。 auto: Auto ; all: Load all ; search: Dynamic search;

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.

requireTextWithFlexCards

boolean

否

When enabled, a turn that would end with only Flex Message cards and no text for the user is re-issued to the LLM once, asking it to write the text first and then send the card. Each retry incurs a se...

enableSizeBasedToolResultTruncation

boolean

否

When enabled, tool results exceeding the character threshold are kept as head+tail (with the identifiers found in the cut part) when written to conversation history; knowledge base, SQL and conversati...

toolResultMaxChars

integer

否

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

enableMemberMemoryWrite

boolean

否

When enabled, what organization members say about themselves in this agent's conversations is saved to their personal AI memory, which every agent with Use Member Memory enabled can refer to. Keep it ...

enableMemberMemoryInjection

boolean

否

When enabled, organization members' personal AI memory is given to this agent as background. When disabled, the agent answers members without it, as it answers customers. MaiGPT has it on.

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...

longTermMemoryTopK

integer

否

長期記憶每次檢索取回的記憶節點數(向量檢索的 similarity_top_k),預設為 10,範圍 1–50

enableCrossConversationSearch

boolean

否

When enabled, the conversation history tools also reach this contact's other conversations in the same inbox, within the lookback window. When disabled, they only reach the current conversation.

crossConversationLookbackDays

integer

否

How far back cross-conversation search may reach, measured from each conversation's last message (1-365 days). Leave empty to fall back to 90 days. Only effective when enable_cross_conversation_search...

useGatewayFallback

boolean

否

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

gatewayFallbackGroup

string (uuid)

否

enableSearchMessagesTool

boolean

否

Allow the AI to search past messages in the current conversation.

enableGetMessageContextTool

boolean

否

Allow the AI to retrieve messages surrounding a specific message for context.

enableReadAttachmentFullTextTool

boolean

否

Allow the AI to read the full text of plain-text attachments. AGENT mode only.

enableParseAttachmentContentTool

boolean

否

Allow the AI to parse PDF, Office, audio, and other attachments. AGENT mode only.

enableListAvailableParsersTool

boolean

否

Allow the AI to list available parsers and their capabilities. AGENT mode only.

enableGetDownloadLinkTool

boolean

否

Allow the AI to generate shareable download links for produced content. AGENT mode only.

webChatIsActive

boolean

否

Optional, create only. Whether the web widget channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignor...

apiIsActive

boolean

否

Optional, create only. Whether the API channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignored on u...

fileWorkspaceMode

object

否

File workspace mode in Work internal conversations: none, bound or user_mount. none: None ; bound: Bound workspace ; user_mount: User mount;

fileWorkspaceFolder

string (uuid)

否

The bound workspace (folder id); required when the mode is bound, cleared otherwise.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 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

回應結構範例

回應範例值


列出組織的 Hook

GET /api/v1/hooks/

Hook 由 Hook 樣板建立,觸發點與處理方式由樣板決定,建立時不能自行指定;掛載到 AI 助理後會在訊息進出時執行。功能說明見使用者手冊 Hook 訊息攔截。

參數

參數名稱
必填
類型
說明

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

search

❌

string

A search term.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


依樣板建立 Hook

POST /api/v1/hooks/

請求內容

請求參數

欄位
類型
必填
說明

templateId

string (uuid)

是

name

string

是

description

string

否

config

object

否

blockMessage

string

否

enabled

boolean

否

blockWhenEngineUnavailable

boolean

否

Applies when the hook engine cannot be set up for a message (for example, its sandbox backend cannot be reached). On: the message is blocked with a safety notice, and for a hook that rewrites text the...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


取得特定 Hook

GET /api/v1/hooks/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新 Hook

PATCH /api/v1/hooks/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

請求內容

請求參數

欄位
類型
必填
說明

name

string

否

description

string

否

config

object

否

blockMessage

string

否

enabled

boolean

否

blockWhenEngineUnavailable

boolean

否

Applies when the hook engine cannot be set up for a message (for example, its sandbox backend cannot be reached). On: the message is blocked with a safety notice, and for a hook that rewrites text the...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


刪除 Hook

DELETE /api/v1/hooks/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

程式碼範例

回應內容

狀態碼
說明

204

No response body


列出 AI 助理掛載的 Hook

GET /api/v1/chatbots/{chatbotId}/hooks/

參數

參數名稱
必填
類型
說明

chatbotId

✅

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


整批替換 AI 助理掛載的 Hook

PUT /api/v1/chatbots/{chatbotId}/hooks/

參數

參數名稱
必填
類型
說明

chatbotId

✅

string

請求內容

請求參數

欄位
類型
必填
說明

hookIds

array[string]

是

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


列出排程

GET /api/v1/schedules/

排程會在指定時間以 AI 助理執行一段指令;建立時系統自動配置專用的聯絡人與對話。

參數

參數名稱
必填
類型
說明

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

search

❌

string

A search term.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


建立排程

POST /api/v1/schedules/

請求內容

請求參數

欄位
類型
必填
說明

chatbot

string (uuid)

是

name

string

是

executionMode

string (enum: in_context, isolated)

是

in_context: In Context ; isolated: Isolated;

prompt

string

是

contextVariables

object

否

inbox

string (uuid)

是

saveResultToContext

boolean

否

deliveryConversationIds

array[string]

否

deliveryWebhookUrls

array[string]

否

deliveryCondition

string

否

When set, each run delivers only if the agent judges this condition met; blank delivers every run.

scheduleType

string (enum: cron, interval, one_shot)

是

cron: Cron ; interval: Interval ; one_shot: One Shot;

cronExpression

string

否

intervalSeconds

integer

否

oneShotAt

string (timestamp)

否

timezone

string

否

enabled

boolean

否

maxExecutions

integer

否

endDate

string (date)

否

Last day the schedule runs, in its own timezone; the first run due after that day turns it off.

confirmRunAsChange

boolean

否

Send true once the member confirmed that saving makes the schedule run as them. Required when the organization runs schedules as their member and the schedule runs as someone else; also accepted by to...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


取得特定排程

GET /api/v1/schedules/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Chatbot Schedule.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


部分更新排程

PATCH /api/v1/schedules/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Chatbot Schedule.

請求內容

請求參數

欄位
類型
必填
說明

name

string

否

prompt

string

否

contextVariables

object

否

saveResultToContext

boolean

否

deliveryConversationIds

array[string]

否

deliveryWebhookUrls

array[string]

否

deliveryCondition

string

否

When set, each run delivers only if the agent judges this condition met; blank delivers every run.

scheduleType

string (enum: cron, interval, one_shot)

否

cron: Cron ; interval: Interval ; one_shot: One Shot;

cronExpression

string

否

intervalSeconds

integer

否

oneShotAt

string (timestamp)

否

timezone

string

否

enabled

boolean

否

maxExecutions

integer

否

endDate

string (date)

否

Last day the schedule runs, in its own timezone; the first run due after that day turns it off.

webhookEnabled

boolean

否

When on, and Unattended Mode is on site-wide, an external system runs this schedule once per POST to its webhook URL. Turning it off stops the URL at once; turning it on again gives a new URL.

webhookAcceptsExternalText

boolean

否

When on, a webhook call may add up to 4,000 characters after the prompt. That text reaches the model, and the assistant's API, MCP and other tools may write data because of it; turn it on only when th...

confirmRunAsChange

boolean

否

Send true once the member confirmed that saving makes the schedule run as them. Required when the organization runs schedules as their member and the schedule runs as someone else; also accepted by to...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


刪除排程

DELETE /api/v1/schedules/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Chatbot Schedule.

程式碼範例

回應內容

狀態碼
說明

204

No response body

4XX

Error response; X-Error-Code carries its code (see "Error codes").


立即執行排程

POST /api/v1/schedules/{id}/run-now/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Chatbot Schedule.

請求內容

請求參數

欄位
類型
必填
說明

chatbot

string (uuid)

是

name

string

是

executionMode

string (enum: in_context, isolated)

是

in_context: In Context ; isolated: Isolated;

prompt

string

是

contextVariables

object

否

inbox

string (uuid)

是

saveResultToContext

boolean

否

deliveryConversationIds

array[string]

否

deliveryWebhookUrls

array[string]

否

deliveryCondition

string

否

When set, each run delivers only if the agent judges this condition met; blank delivers every run.

scheduleType

string (enum: cron, interval, one_shot)

是

cron: Cron ; interval: Interval ; one_shot: One Shot;

cronExpression

string

否

intervalSeconds

integer

否

oneShotAt

string (timestamp)

否

timezone

string

否

enabled

boolean

否

maxExecutions

integer

否

endDate

string (date)

否

Last day the schedule runs, in its own timezone; the first run due after that day turns it off.

confirmRunAsChange

boolean

否

Send true once the member confirmed that saving makes the schedule run as them. Required when the organization runs schedules as their member and the schedule runs as someone else; also accepted by to...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 202

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


啟用或停用排程

POST /api/v1/schedules/{id}/toggle/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Chatbot Schedule.

請求內容

請求參數

欄位
類型
必填
說明

confirmRunAsChange

boolean

否

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 400

回應結構範例

回應範例值


最後更新於

這有幫助嗎?