Create a new debug chat session
POST
Create a new debug chat session
Authorizations
Path Parameters
Body
application/json
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
Successful response
A chat turn's result: the agent's reply text, the conversation's updated state, and whether the conversation has ended.
Last modified on June 4, 2026
Create a new debug chat session

