voiceConfig and used inside call flows via the CONNECT_AGENT node. This document covers the voice pipeline configuration, the CONNECT_AGENT node schema, and audio/provider details needed for frontend integration (call flow builder UI).
Related: End Call Tool & Exit Modes | Agents API | Call Flow API
Types
Type Definitions
Type Definitions
CONNECT_AGENT Node Schema (Call Flow Builder)
This is the full node schema used in the call flow JSON:Configuration Defaults & Limits
Voice Pipeline (v0 — Fixed Providers)
In v0, the STT and TTS providers are hardcoded. There is no runtime provider selection.Platform Defaults
What Can Be Overridden
Only these fields are configurable at the agent level: Note: Node-levelvoiceConfig overrides are accepted by the schema but not yet applied in v0. The agent’s own voiceConfig is always used.
Important: ElevenLabs TTS output format is always forced to pcm_8000 (raw PCM, 8kHz, 16-bit signed mono) to match the AudioSocket format. MP3 output is not supported and will throw an error.
Audio Format
All audio in the voice pipeline uses PCM 16-bit mono at 8kHz (Asterisk AudioSocket native format):Output Path Routing
When the conversation ends, the node routes to the next node based on the exit reason: Note: Forerror exit reason, the fallback is the default output, not onComplete. This prevents error loops.
Conversation Flow Diagram
Latency Budget (Typical Turn)
Validation Rules (Call Flow Builder)
These constraints are enforced during flow validation (before execution):Error Types
These error types may be reported in conversation analytics or flow execution logs:| Error | Code | Recoverable | Description |
|---|---|---|---|
| Agent Not Available | AGENT_NOT_AVAILABLE | No | Agent not found, not active, or deleted |
| Agent Org Mismatch | AGENT_ORG_MISMATCH | No | Agent belongs to a different organization (security) |
| Voice Provider Error | VOICE_PROVIDER_ERROR | Yes (3 retries) | STT or TTS API failure |
| Agent Generation Error | AGENT_GENERATION_ERROR | Yes (3 retries) | LLM failed to generate a response |
| Conversation Timeout | CONVERSATION_TIMEOUT | No | Total conversation timeout exceeded |
| Audio Stream Error | AUDIO_STREAM_ERROR | Yes (3 retries) | Audio capture or playback failure |
| User Hangup | USER_HANGUP | No | Caller hung up (expected behavior) |
| Config Error | CONFIG_ERROR | No | Invalid node configuration |
| Session Init Error | SESSION_INIT_ERROR | No | Voice session initialization failed |