user8923
11/24/2025, 6:10 PMAI Evy
11/24/2025, 6:10 PMAI Evy
11/24/2025, 6:10 PMoutbound_agent_id field [(1) ]() [(2) ]() [(3) ]() . However, you can dynamically override which agent handles each specific outbound call using the override_agent_id parameter when creating the call [(4) ]() .
Here's how to use different agents for different tasks from the same number:
javascript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444', // replace with the number you purchased
to_number: '+12137774445', // replace with the number you want to call
// Optional: per-call agent selection and overrides
override_agent_id: 'agent_abc123',
override_agent_version: 0, // or omit to use latest
agent_override: {
agent: {
voice_speed: 1.1,
enable_backchannel: true,
},
// retell_llm or conversation_flow overrides are also supported
},
retell_llm_dynamic_variables: { // dynamic variables (optional, string values only)
name: 'John Doe',
blood_group: 'B+'
},
custom_sip_headers: { // replace with custom sip headers you want to send (optional)
X-Custom-Header: 'Custom Value'
}
}) ;
This approach lets you specify which agent (override_agent_id) to use for each outbound call programmatically, allowing you to execute different tasks with different agents from the same phone number .AI Evy
11/24/2025, 6:10 PMAI Evy
11/24/2025, 6:10 PM