對話 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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


建立 Web Chat

POST /api/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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


列出 Web Chat

GET /api/v1/web-chats/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


列出 Web Chat

GET /api/web-chats/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定 Web Chat

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

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this web chat.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定 Web Chat

GET /api/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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


更新 Web Chat

PUT /api/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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新 Web Chat

PATCH /api/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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

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

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 400 - No response body


設定聯絡人憑證

POST /api/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

請求結構範例

請求範例值

程式碼範例

回應內容

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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得語音助理 Token

POST /api/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

enableShareConversation

boolean

enableLocation

boolean

enableShowPoweredBy

boolean

poweredByLogo

string (uri)

enableAnonymous

boolean

enableDisplayPreviousConversation

boolean

enableDisplayConversationHistory

boolean

enableConversationTimer

boolean

conversationTimerDuration

integer

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

enableAutoNewConversationOnTimeout

boolean

enableThemeModeToggle

boolean

enableDisplayFontSizeSwitch

boolean

defaultThemeMode

object

enableDownloadCitations

boolean

customDomain

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

customDomain.domain

string

enableDisplayChatbotAvatar

boolean

enableDisplayChatbotName

boolean

enableVoiceAgent

boolean

是否允許 WebChat 使用語音代理功能

buttonIcon

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


上傳批次 QA 檔案

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

參數

參數名稱
必填
類型
說明

webchatPk

string

請求內容

請求參數

欄位
類型
必填
說明

file

string (uri)

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


上傳批次 QA 檔案

POST /api/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 檔案下載


匯出批次 QA 為 Excel

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

參數

參數名稱
必填
類型
說明

id

string

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

webchatPk

string

程式碼範例

回應內容

狀態碼
說明

200

Excel 檔案下載


取得 LLM 使用統計

GET /api/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

回應結構範例

回應範例值


取得 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/chatbots/{chatbotPk}/statistics/

參數

參數名稱
必填
類型
說明

chatbotPk

string

A UUID string identifying this Chatbot ID

datetimeFrom

string

開始時間

datetimeTo

string

結束時間

timeGranularity

string

時間粒度 (hour/day/month)

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得 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

回應結構範例

回應範例值


Last updated

Was this helpful?