https://retellai.com/?utm_source=discord&utm_medium=seo logo
I want to use the same number for outbound calls f...
# ❓・ai-evy-support
f
@AI Evy I want to use the same number for outbound calls from several different RetellAI agents
a
Thanks for tagging me @fungencio_77097. I'll look through relevant sources and get back to you shortly.
### Answer You can use the same phone number for outbound calls with multiple different agents by using the
override_agent_id
parameter when creating phone calls [(1) ]() . When you bind a phone number, you set a default
outbound_agent_id
[(2) ]() . However, for each individual outbound call, you can override this default agent by specifying a different
override_agent_id
in your API request [(1) ]() . Here's how to do it:
Copy code
javascript
const registerCallResponse = await retell.call.createPhoneCall({
  from_number: '+14157774444', // your phone number
  to_number: '+12137774445', // destination number
  override_agent_id: 'agent_abc123', // specify which agent to use for this call
  override_agent_version: 0, // or omit to use latest
}) ;
This allows you to use the same
from_number
but route different calls to different agents by changing the
override_agent_id
parameter for each call [(1) ]() [(3) ]() .
​ To learn more, see the sources I considered: [[1] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[2] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[3] 404 Error on Create a Phone Call](https://retell.discourse.group/t/404-error-on-create-a-phone-call/22) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.