Create a new debug chat session
Path Parameters
Body
application/json
Body
CreateDebugChatBody
Starting parameters for a debug chat session: which agent variant,
which language codes, and which environment to run in.
Client environment (sandbox, pre-release, live)
ASR language code (e.g. en-US). Defaults to server config.
TTS language code (e.g. en-US). Defaults to server config.
Custom conversation ID. Auto-generated if omitted.
Variant ID to use
Channel type (e.g. chat.polyai)
Custom attributes accessible via conv.integration_attributes in project functions
Response
application/json
Response
Successful response
DebugChatResponse
A chat turn’s result: the agent’s reply text, the conversation’s
updated state, and whether the conversation has ended.
Metadata returned with each chat response.
Show Child Parameters
Authentication
Path Parameters
Body
Send a message to a debug chat session
Path Parameters
Body
application/json
Body
RespondDebugChatBody
A user turn sent into an existing debug chat session, with the
runtime overrides that apply to this message.
Client environment (sandbox, pre-release, live)
ASR language code (e.g. en-US). Defaults to server config.
TTS language code (e.g. en-US). Defaults to server config.
User input message
Default:
User input metadata
Response
application/json
Response
Successful response
DebugChatResponse
A chat turn’s result: the agent’s reply text, the conversation’s
updated state, and whether the conversation has ended.
Metadata returned with each chat response.
Show Child Parameters
Authentication
Path Parameters
Body
AddAnnotationsBody
objectRequest body for adding annotations to a conversation.
>= 1 items
ChatMetadataResponse
objectMetadata returned with each chat response.
ConversationDetailResponse
objectPublic-facing conversation detail (includes turns, metrics).