https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i assign the same phone number to multiple age...
# ❓・ai-evy-support
t
@AI Evy can i assign the same phone number to multiple agents?
a
Thanks for tagging me @taylor_56503. I'll look through relevant sources and get back to you shortly.
### Answer For inbound calls, you can dynamically route a single phone number to different agents using the Inbound Call Webhook feature [(1) ]() . This allows you to use different agents to handle inbound calls of a number and provide dynamic variables specific to that call . The approach involves setting up a webhook that can return different agent IDs based on your routing logic [(2) ](

▾

) . For example, you can query caller information from a database like Airtable and route new patients to one agent and returning patients to another . For outbound calls, you can use multiple agents with the same phone number [(3) ]() . However, you'll need to specify which agent to use for each individual call when making the API request. The key distinction is that one phone number can only have one agent bound at a time for basic inbound calls [(1) ]() , but you can use webhooks to dynamically override which agent handles each specific call [(4) ]() .
​ To learn more, see the sources I considered: [[1] Receive calls](https://docs.retellai.com/deploy/inbound-call) [[2] Personalization with Airtable](

https://www.youtube.com/watch?v=U8jdhkqOOhE▾

) [[3] Clarification on Assigning Multiple Agents to a Single Phone Number](https://discord.com/channels/1186424376300679209/1306563900463906880) [[4] multiple agent for same inbound number](https://discord.com/channels/1186424376300679209/1422923667821826058) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
how? under phone numbers it seems i can only assign the inbound and outbound to 1 agent, what am i missing? @User
@AI Evy how? under phone numbers it seems i can only assign the inbound and outbound to 1 agent, what am i missing?
a
Thanks for the follow-up, @taylor_56503. I'll get back to you soon.
### Answer You're correct that in the phone number configuration, you can only assign one
inbound_agent_id
and one
outbound_agent_id
to each number [(1) ]() [(2) ]() [(3) ]() . However, there's a way to dynamically route calls to different agents using the Inbound Call Webhook feature [(4) ]() . Here's how it works: 1. **Set up an Inbound Call Webhook**: You can configure an
inbound_webhook_url
on your phone number [(1) ]() [(2) ]() [(3) ]() [(5) ]() . When set, this webhook will be triggered for inbound calls, allowing you to override the agent ID and set dynamic variables specific to that call [(4) ]() . 2. **Dynamic Agent Assignment**: The webhook allows you to use different agents to handle inbound calls of a number . Your webhook can return different agent IDs based on your routing logic - for example, routing calls based on caller information, time of day, or other business rules. 3. **Phone Number Configuration**: While the phone number itself still has one bound inbound agent, the webhook can override this on a per-call basis . For outbound calls, you have more flexibility as you can specify the agent when making each individual call through the API, regardless of the
outbound_agent_id
bound to the number [(6) ]() . The key is that the webhook gives you the ability to dynamically choose which ag
ent handles each specific inbound call, even though the phone number configuration interface only shows one agent assignment [(4) ]() .
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[3] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) [[4] Receive calls](https://docs.retellai.com/deploy/inbound-call) [[5] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[6] 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.