Agent WebSockets
Establish a WebSocket connection for real-time conversations with an AI agent.
HandshakeTry it
GET
Query parameters
agent_id
The unique identifier for the voice to use in the TTS process.
Send
User Audio Chunk
OR
Pong
OR
Conversation Initiation Client Data
OR
Client Tool Result
OR
Contextual Update
Receive
Conversation Initiation Metadata
OR
User Transcript
OR
Agent Response
OR
Agent Response Correction
OR
Audio Response
OR
Interruption
OR
Ping
OR
Client Tool Call
OR
Contextual Update
OR
Internal Vad Score
OR
Internal Turn Probability
OR
Internal Tentative Agent Response