Set up the Voice Call channel
setup_phone_agentCreate/update the agent's Voice Call channel like the app: attach one of YOUR numbers (list_phone_numbers), objective, script (generated if omitted), greeting, voice, pace, emotion, language, rules, inbound calls on/off, background sound, silence/reminder timings. Creates the phone voice agent at the provider and links the number (with accept_incoming the number starts answering real calls). Takes up to ~1 min. Free to set up; calls cost 25 credits/min. Only call after preview_setup_phone_agent and the user's approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent id (UUID) — from list_agents | |
| speed | No | ||
| emotion | No | ||
| language | No | auto = script language; multi = switch to the caller's language | |
| voice_id | No | From list_retell_voices / list_voice_catalog | |
| call_script | No | ||
| voice_gender | No | ||
| ambient_sound | No | ||
| connection_id | No | Existing PHONE_CALL channel; default = the agent's first one or a new one | |
| call_objective | No | ||
| accept_incoming | No | Answer calls TO this number with an inbound agent | |
| phone_number_id | No | Required the first time — from list_phone_numbers | |
| greeting_message | No | ||
| enable_backchannel | No | ||
| communication_rules | No | ||
| end_call_silence_seconds | No | ||
| reminder_trigger_seconds | No | ||
| max_call_duration_seconds | No |