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

對話 Widget

建立 Web Chat

POST /api/v1/web-chats/

請求內容

請求參數

欄位
類型
必填
說明

avatar

string (uri)

logo

string (uri)

description

string

cover

string (uri)

backUrl

string

isActive

boolean

theme

object

theme.primaryColor

string

theme.navbarTextColor

string

theme.conversationBackgroundColor

string

theme.chatbotMessageTextColor

string

theme.userMessageTextColor

string

theme.chatbotMessageBackgroundColor

string

theme.userMessageBackgroundColor

string

theme.chatbotMessageBackgroundShadowEnabled

boolean

theme.userMessageBackgroundShadowEnabled

boolean

theme.chatbotMessageGradientEnabled

boolean

theme.userMessageGradientEnabled

boolean

darkTheme

object

darkTheme.primaryColor

string

darkTheme.navbarTextColor

string

darkTheme.conversationBackgroundColor

string

darkTheme.chatbotMessageTextColor

string

darkTheme.userMessageTextColor

string

darkTheme.chatbotMessageBackgroundColor

string

darkTheme.userMessageBackgroundColor

string

darkTheme.chatbotMessageBackgroundShadowEnabled

boolean

darkTheme.userMessageBackgroundShadowEnabled

boolean

darkTheme.chatbotMessageGradientEnabled

boolean

darkTheme.userMessageGradientEnabled

boolean

enableFileUpload

boolean

enableDisplayCitations

boolean

toolDisplayMode

string (enum: full, compact, hidden)

full: Full ; compact: Compact ; hidden: Hidden;

enableDisplayThinking

boolean

enableUserThinkingControl

boolean

enableDisplayQueryMetadata

boolean

enableDisplayHookMarkers

boolean

hookMarkerTextInputModify

string

hookMarkerTextOutputModify

string

hookMarkerTextInputBlock

string

hookMarkerTextOutputBlock

string

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

計時器逾時時長,範圍 3-60 分鐘

enableAutoNewConversationOnTimeout

boolean

enableSatisfactionSurvey

boolean

satisfactionSurveyDelayMinutes

integer

最後一則 AI 回覆後幾分鐘彈出問卷,範圍 1-60 分鐘

satisfactionSurveyPrompt

string

自訂問卷標題文字,留空則使用前端多語系預設文字

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

object (含 3 個屬性: id, domain, status)

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

buttonIcon

string (uri)

conversationStartersDisplayCount

integer

preChatFormEnabled

boolean

preChatFormFields

object

preChatFormTitle

object

preChatFormSubtitle

object

loadingDisplayMode

object

Waiting-experience style. narrative shows per-stage copy; brand_animation plays the uploaded asset and hides every system narration line. Defaults to narrative, which with no copy configured beh...

loadingStageCopyByLocale

object

Locale-keyed per-stage waiting copy, shaped {locale: {stage: text}} where stage is one of LoadingStage. An absent locale or stage falls back to the built-in copy, so a partially filled dict is valid a...

loadingLongWaitCopyByLocale

object

Locale-keyed line shown once the wait exceeds loading_long_wait_threshold_seconds, shaped {locale: text}. Written in the brand character voice for the animation mode, but applies to both modes. Empt...

loadingLongWaitThresholdSeconds

integer

How long a single reply must be pending before the long-wait copy appears.

loadingAnimationUseSharedAsset

boolean

True (default) means every stage plays loading_animation_shared_asset_url, so the admin only uploads once. False expands per-stage assets, each falling back to the shared asset when its own slot is ...

loadingAnimationSharedAssetUrl

string (uri)

loadingAnimationAssetUrlsByStage

object

Shaped {stage: url} keyed by LoadingStage. Only consulted when loading_animation_use_shared_asset is False; a missing stage falls back to the shared asset.

loadingTypingShowCopy

boolean

Only affects the first "typing" stage. True (default, the pre-existing behavior) shows the typing-stage copy next to the pre-first-char animation/dot; False plays only the animation with no text line....

toolCardRunningIconUrl

string (uri)

toolCardCompletedIconUrl

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


列出 Web Chat

GET /api/v1/web-chats/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定 Web Chat

GET /api/v1/web-chats/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this web chat.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


更新 Web Chat

PUT /api/v1/web-chats/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this web chat.

請求內容

請求參數

欄位
類型
必填
說明

avatar

string (uri)

logo

string (uri)

description

string

cover

string (uri)

backUrl

string

isActive

boolean

theme

object

theme.primaryColor

string

theme.navbarTextColor

string

theme.conversationBackgroundColor

string

theme.chatbotMessageTextColor

string

theme.userMessageTextColor

string

theme.chatbotMessageBackgroundColor

string

theme.userMessageBackgroundColor

string

theme.chatbotMessageBackgroundShadowEnabled

boolean

theme.userMessageBackgroundShadowEnabled

boolean

theme.chatbotMessageGradientEnabled

boolean

theme.userMessageGradientEnabled

boolean

darkTheme

object

darkTheme.primaryColor

string

darkTheme.navbarTextColor

string

darkTheme.conversationBackgroundColor

string

darkTheme.chatbotMessageTextColor

string

darkTheme.userMessageTextColor

string

darkTheme.chatbotMessageBackgroundColor

string

darkTheme.userMessageBackgroundColor

string

darkTheme.chatbotMessageBackgroundShadowEnabled

boolean

darkTheme.userMessageBackgroundShadowEnabled

boolean

darkTheme.chatbotMessageGradientEnabled

boolean

darkTheme.userMessageGradientEnabled

boolean

enableFileUpload

boolean

enableDisplayCitations

boolean

toolDisplayMode

string (enum: full, compact, hidden)

full: Full ; compact: Compact ; hidden: Hidden;

enableDisplayThinking

boolean

enableUserThinkingControl

boolean

enableDisplayQueryMetadata

boolean

enableDisplayHookMarkers

boolean

hookMarkerTextInputModify

string

hookMarkerTextOutputModify

string

hookMarkerTextInputBlock

string

hookMarkerTextOutputBlock

string

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

計時器逾時時長,範圍 3-60 分鐘

enableAutoNewConversationOnTimeout

boolean

enableSatisfactionSurvey

boolean

satisfactionSurveyDelayMinutes

integer

最後一則 AI 回覆後幾分鐘彈出問卷,範圍 1-60 分鐘

satisfactionSurveyPrompt

string

自訂問卷標題文字,留空則使用前端多語系預設文字

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

object (含 3 個屬性: id, domain, status)

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

buttonIcon

string (uri)

conversationStartersDisplayCount

integer

preChatFormEnabled

boolean

preChatFormFields

object

preChatFormTitle

object

preChatFormSubtitle

object

loadingDisplayMode

object

Waiting-experience style. narrative shows per-stage copy; brand_animation plays the uploaded asset and hides every system narration line. Defaults to narrative, which with no copy configured beh...

loadingStageCopyByLocale

object

Locale-keyed per-stage waiting copy, shaped {locale: {stage: text}} where stage is one of LoadingStage. An absent locale or stage falls back to the built-in copy, so a partially filled dict is valid a...

loadingLongWaitCopyByLocale

object

Locale-keyed line shown once the wait exceeds loading_long_wait_threshold_seconds, shaped {locale: text}. Written in the brand character voice for the animation mode, but applies to both modes. Empt...

loadingLongWaitThresholdSeconds

integer

How long a single reply must be pending before the long-wait copy appears.

loadingAnimationUseSharedAsset

boolean

True (default) means every stage plays loading_animation_shared_asset_url, so the admin only uploads once. False expands per-stage assets, each falling back to the shared asset when its own slot is ...

loadingAnimationSharedAssetUrl

string (uri)

loadingAnimationAssetUrlsByStage

object

Shaped {stage: url} keyed by LoadingStage. Only consulted when loading_animation_use_shared_asset is False; a missing stage falls back to the shared asset.

loadingTypingShowCopy

boolean

Only affects the first "typing" stage. True (default, the pre-existing behavior) shows the typing-stage copy next to the pre-first-char animation/dot; False plays only the animation with no text line....

toolCardRunningIconUrl

string (uri)

toolCardCompletedIconUrl

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新 Web Chat

PATCH /api/v1/web-chats/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this web chat.

請求內容

請求參數

欄位
類型
必填
說明

avatar

string (uri)

logo

string (uri)

description

string

cover

string (uri)

backUrl

string

isActive

boolean

theme

object

theme.primaryColor

string

theme.navbarTextColor

string

theme.conversationBackgroundColor

string

theme.chatbotMessageTextColor

string

theme.userMessageTextColor

string

theme.chatbotMessageBackgroundColor

string

theme.userMessageBackgroundColor

string

theme.chatbotMessageBackgroundShadowEnabled

boolean

theme.userMessageBackgroundShadowEnabled

boolean

theme.chatbotMessageGradientEnabled

boolean

theme.userMessageGradientEnabled

boolean

darkTheme

object

darkTheme.primaryColor

string

darkTheme.navbarTextColor

string

darkTheme.conversationBackgroundColor

string

darkTheme.chatbotMessageTextColor

string

darkTheme.userMessageTextColor

string

darkTheme.chatbotMessageBackgroundColor

string

darkTheme.userMessageBackgroundColor

string

darkTheme.chatbotMessageBackgroundShadowEnabled

boolean

darkTheme.userMessageBackgroundShadowEnabled

boolean

darkTheme.chatbotMessageGradientEnabled

boolean

darkTheme.userMessageGradientEnabled

boolean

enableFileUpload

boolean

enableDisplayCitations

boolean

toolDisplayMode

string (enum: full, compact, hidden)

full: Full ; compact: Compact ; hidden: Hidden;

enableDisplayThinking

boolean

enableUserThinkingControl

boolean

enableDisplayQueryMetadata

boolean

enableDisplayHookMarkers

boolean

hookMarkerTextInputModify

string

hookMarkerTextOutputModify

string

hookMarkerTextInputBlock

string

hookMarkerTextOutputBlock

string

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

計時器逾時時長,範圍 3-60 分鐘

enableAutoNewConversationOnTimeout

boolean

enableSatisfactionSurvey

boolean

satisfactionSurveyDelayMinutes

integer

最後一則 AI 回覆後幾分鐘彈出問卷,範圍 1-60 分鐘

satisfactionSurveyPrompt

string

自訂問卷標題文字,留空則使用前端多語系預設文字

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

object (含 3 個屬性: id, domain, status)

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

buttonIcon

string (uri)

conversationStartersDisplayCount

integer

preChatFormEnabled

boolean

preChatFormFields

object

preChatFormTitle

object

preChatFormSubtitle

object

loadingDisplayMode

object

Waiting-experience style. narrative shows per-stage copy; brand_animation plays the uploaded asset and hides every system narration line. Defaults to narrative, which with no copy configured beh...

loadingStageCopyByLocale

object

Locale-keyed per-stage waiting copy, shaped {locale: {stage: text}} where stage is one of LoadingStage. An absent locale or stage falls back to the built-in copy, so a partially filled dict is valid a...

loadingLongWaitCopyByLocale

object

Locale-keyed line shown once the wait exceeds loading_long_wait_threshold_seconds, shaped {locale: text}. Written in the brand character voice for the animation mode, but applies to both modes. Empt...

loadingLongWaitThresholdSeconds

integer

How long a single reply must be pending before the long-wait copy appears.

loadingAnimationUseSharedAsset

boolean

True (default) means every stage plays loading_animation_shared_asset_url, so the admin only uploads once. False expands per-stage assets, each falling back to the shared asset when its own slot is ...

loadingAnimationSharedAssetUrl

string (uri)

loadingAnimationAssetUrlsByStage

object

Shaped {stage: url} keyed by LoadingStage. Only consulted when loading_animation_use_shared_asset is False; a missing stage falls back to the shared asset.

loadingTypingShowCopy

boolean

Only affects the first "typing" stage. True (default, the pre-existing behavior) shows the typing-stage copy next to the pre-first-char animation/dot; False plays only the animation with no text line....

toolCardRunningIconUrl

string (uri)

toolCardCompletedIconUrl

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


設定聯絡人憑證

POST /api/v1/web-chats/{id}/setup-contact-credentials/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this web chat.

請求內容

請求參數

欄位
類型
必填
說明

sourceId

string

Unique identifier for the contact

name

string

Contact display name

mcpCredentials

object (含 2 個屬性: toolId, headers)

MCP credentials configuration

mcpCredentials.toolId

string (uuid)

MCP Tool ID

mcpCredentials.headers

object

Authentication headers

embedOrigin

string

Origin of the embedding page (forwarded by the web chat frontend) for allowlist validation

ts

integer

Unix timestamp (seconds, UTC) the signature was computed with. Required when the inbox login settings enable Source ID access with signature verification.

sig

string

Hex HMAC-SHA256 of "{webChatId}.{sourceId}.{ts}" computed by the embedding site backend

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 400 - No response body


取得語音助理 Token

POST /api/v1/web-chats/{id}/voice-agent/token/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this web chat.

請求內容

請求參數

欄位
類型
必填
說明

avatar

string (uri)

logo

string (uri)

description

string

cover

string (uri)

backUrl

string

isActive

boolean

theme

object

theme.primaryColor

string

theme.navbarTextColor

string

theme.conversationBackgroundColor

string

theme.chatbotMessageTextColor

string

theme.userMessageTextColor

string

theme.chatbotMessageBackgroundColor

string

theme.userMessageBackgroundColor

string

theme.chatbotMessageBackgroundShadowEnabled

boolean

theme.userMessageBackgroundShadowEnabled

boolean

theme.chatbotMessageGradientEnabled

boolean

theme.userMessageGradientEnabled

boolean

darkTheme

object

darkTheme.primaryColor

string

darkTheme.navbarTextColor

string

darkTheme.conversationBackgroundColor

string

darkTheme.chatbotMessageTextColor

string

darkTheme.userMessageTextColor

string

darkTheme.chatbotMessageBackgroundColor

string

darkTheme.userMessageBackgroundColor

string

darkTheme.chatbotMessageBackgroundShadowEnabled

boolean

darkTheme.userMessageBackgroundShadowEnabled

boolean

darkTheme.chatbotMessageGradientEnabled

boolean

darkTheme.userMessageGradientEnabled

boolean

enableFileUpload

boolean

enableDisplayCitations

boolean

toolDisplayMode

string (enum: full, compact, hidden)

full: Full ; compact: Compact ; hidden: Hidden;

enableDisplayThinking

boolean

enableUserThinkingControl

boolean

enableDisplayQueryMetadata

boolean

enableDisplayHookMarkers

boolean

hookMarkerTextInputModify

string

hookMarkerTextOutputModify

string

hookMarkerTextInputBlock

string

hookMarkerTextOutputBlock

string

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

計時器逾時時長,範圍 3-60 分鐘

enableAutoNewConversationOnTimeout

boolean

enableSatisfactionSurvey

boolean

satisfactionSurveyDelayMinutes

integer

最後一則 AI 回覆後幾分鐘彈出問卷,範圍 1-60 分鐘

satisfactionSurveyPrompt

string

自訂問卷標題文字,留空則使用前端多語系預設文字

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

object (含 3 個屬性: id, domain, status)

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

buttonIcon

string (uri)

conversationStartersDisplayCount

integer

preChatFormEnabled

boolean

preChatFormFields

object

preChatFormTitle

object

preChatFormSubtitle

object

loadingDisplayMode

object

Waiting-experience style. narrative shows per-stage copy; brand_animation plays the uploaded asset and hides every system narration line. Defaults to narrative, which with no copy configured beh...

loadingStageCopyByLocale

object

Locale-keyed per-stage waiting copy, shaped {locale: {stage: text}} where stage is one of LoadingStage. An absent locale or stage falls back to the built-in copy, so a partially filled dict is valid a...

loadingLongWaitCopyByLocale

object

Locale-keyed line shown once the wait exceeds loading_long_wait_threshold_seconds, shaped {locale: text}. Written in the brand character voice for the animation mode, but applies to both modes. Empt...

loadingLongWaitThresholdSeconds

integer

How long a single reply must be pending before the long-wait copy appears.

loadingAnimationUseSharedAsset

boolean

True (default) means every stage plays loading_animation_shared_asset_url, so the admin only uploads once. False expands per-stage assets, each falling back to the shared asset when its own slot is ...

loadingAnimationSharedAssetUrl

string (uri)

loadingAnimationAssetUrlsByStage

object

Shaped {stage: url} keyed by LoadingStage. Only consulted when loading_animation_use_shared_asset is False; a missing stage falls back to the shared asset.

loadingTypingShowCopy

boolean

Only affects the first "typing" stage. True (default, the pre-existing behavior) shows the typing-stage copy next to the pre-first-char animation/dot; False plays only the animation with no text line....

toolCardRunningIconUrl

string (uri)

toolCardCompletedIconUrl

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


上傳批次 QA 檔案

POST /api/v1/web-chats/{webchatPk}/batch-qas/

參數

參數名稱
必填
類型
說明

webchatPk

string

請求內容

請求參數

欄位
類型
必填
說明

file

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


匯出批次 QA 為 Excel

GET /api/v1/web-chats/{webchatPk}/batch-qas/{id}/export-excel/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Chatbot 批次問答檔案.

webchatPk

string

程式碼範例

回應內容

狀態碼
說明

200

Excel 檔案下載


取得 LLM 使用統計

GET /api/v1/chatbots/{chatbotPk}/llm-usage-statistics/

參數

參數名稱
必填
類型
說明

chatbotPk

string

A UUID string identifying this Chatbot ID

endDate

string

結束日期,格式: YYYY-MM-DD

startDate

string

開始日期,格式: YYYY-MM-DD

timeGranularity

string

時間粒度 (day/month)

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 400

回應結構範例

回應範例值


取得 AI 助理統計數據

GET /api/v1/chatbots/{chatbotPk}/statistics/

參數

參數名稱
必填
類型
說明

chatbotPk

string

A UUID string identifying this Chatbot ID

datetimeFrom

string

開始時間

datetimeTo

string

結束時間

timeGranularity

string

時間粒度 (hour/day/month)

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


最後更新於

這有幫助嗎?