create_agent
Create an agent to own phone numbers and handle calls or SMS, choosing hosted AI voice or webhook transcript forwarding.
Instructions
Create a new agent. An agent owns phone numbers and handles calls/SMS.
A newly created agent has no phone number until one is attached. Set voice_mode to 'hosted' with a system_prompt for autonomous AI voice calls, or 'webhook' (default) to forward call transcripts to your webhook URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the agent (e.g. 'Customer Support', 'Sales Bot') | |
| voice | No | Voice ID for the agent. Defaults to 'Skylar - Friendly Guide'. | |
| language | No | BCP-47 locale for speech recognition and synthesis, e.g. 'en-US', 'es-ES', 'ja-JP'. | |
| stt_mode | No | Speech-to-text mode: 'fast' (default) lowest latency, 'accurate' for exact names/numbers (~200ms slower). | |
| model_tier | No | Model quality/speed tier for hosted-mode agents. 'turbo' = fastest/cheapest, 'balanced' (default) = general use, 'max' = highest quality. | |
| voice_mode | No | 'webhook' (default) forwards transcripts to your webhook. 'hosted' uses built-in AI with system_prompt. | |
| description | No | Description of what this agent does | |
| voice_speed | No | Speech speed multiplier. 1.0 = normal, 0.5 = half speed, 2.0 = double. | |
| ambient_sound | No | Optional background ambience for call audio. Not a substitute for the AI self-identification, which is always disclosed. | |
| begin_message | No | What the AI says when a call connects. Only used in 'hosted' mode. | |
| system_prompt | No | Required when voice_mode is 'hosted'. The AI's personality and instructions for voice calls. | |
| denoising_mode | No | Audio denoising. The aggressive mode helps callers in cars/cafes (small surcharge). | |
| max_silence_ms | No | Hang up after this many ms of caller silence. Default 600000 (10 min). | |
| transfer_number | No | Phone number to transfer calls to (E.164 format). Enables call transfer during conversations. | |
| enable_messaging | No | Whether a hosted agent can send and read texts during a call. Default true. | |
| voicemail_message | No | Voicemail greeting text. When set, unanswered calls hear this message and can leave a voicemail. | |
| enable_backchannel | No | Whether the agent interjects 'uh-huh'/'mhmm' while the caller speaks. Default true. | |
| interruption_sensitivity | No | How easily callers can interrupt (barge in). 0 = never, 1 = at first sound. Default 0.8. |