https://retellai.com/?utm_source=discord&utm_medium=seo logo
Does Retell support assigning the same phone numbe...
# ❓・ai-evy-support
u
@AI Evy Does Retell support assigning the same phone number to multiple outbound agents? I have different tasks to execute (different agents) from the same phone number
a
Thanks for tagging me @user8923. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, a phone number can only be assigned to one outbound agent at a time through the
outbound_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:
Copy code
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 .
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] Purchase phone number](https://docs.retellai.com/deploy/purchase-number) [[3] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[4] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.