Connecting multiple bots with one phone number for...
# support
m
Does Vapi allow connecting multiple bots to one phone number with call load balancing? This way, we can direct calls to a single number while testing multiple bots. We are also open to custom solutions.
v
Vapi does not natively support automatic load balancing between multiple bots on a single phone number. However, you can achieve this by using a custom server to handle the
transfer-destination-request
webhook and programmatically route each call to a different assistant (bot). Here's a sample response your server could send to Vapi to forward a call to a chosen bot:
Copy code
json
{
  "destination": {
    "type": "number",
    "number": "+1234567890",
    "message": "Connecting you to our support bot."
  }
}
Rotate the
number
or assistant logic in your backend to balance calls as needed.
[Learn more in the Vapi dynamic call transfer docs.](https://docs.vapi.ai/calls/call-dynamic-transfers) Source: - [Dynamic Call Transfers Vapi Documentation](https://docs.vapi.ai/calls/call-dynamic-transfers)
Vapi does not natively support automatic load balancing between multiple bots on a single phone number. However, you can achieve this by using a custom server to handle the
transfer-destination-request
webhook and programmatically route each call to a different assistant (bot). Here's a sample response your server could send to Vapi to forward a call to a chosen bot:
Copy code
json
{
  "destination": {
    "type": "number",
    "number": "+1234567890",
    "message": "Connecting you to our support bot."
  }
}
Rotate the
number
or assistant logic in your backend to balance calls as needed.
[Learn more in the Vapi dynamic call transfer docs.](https://docs.vapi.ai/calls/call-dynamic-transfers) Source: - [Dynamic Call Transfers Vapi Documentation](https://docs.vapi.ai/calls/call-dynamic-transfers)
s
can you explain more about your usecase?
v
Vapi does not natively support automatic load balancing between multiple bots on a single phone number. However, you can achieve this by using a custom server to handle the
transfer-destination-request
webhook and programmatically route each call to a different assistant (bot). You can rotate the bot logic in your backend to balance calls as needed ([Dynamic Call Transfers Vapi Documentation](https://docs.vapi.ai/calls/call-dynamic-transfers)). To better assist you, could you briefly describe how you want to distribute calls among your bots (e.g., round-robin, random, based on bot availability)? Source: - [Dynamic Call Transfers Vapi Documentation](https://docs.vapi.ai/calls/call-dynamic-transfers)
m
@Sahil We are currently in the process of developing a sales bot and intend to create multiple versions to evaluate their performance. Our plan is to direct all calls to a single phone number, utilizing custom load balancing logic to assign each call to one of the five assistants. Is this feasible?
v
Yes, this is possible with a custom solution. You can set up your phone number to send incoming call events to your server, then use your own load balancing logic to assign each call to one of your five bots. Your server should respond to Vapi with the chosen assistant's configuration or ID. For example:
Copy code
json
{
  "assistantId": "asst_salesbot_3"
}
Rotate the
assistantId
in your backend to balance calls as needed.
[See the dynamic call transfer docs for more details.](https://docs.vapi.ai/calls/call-dynamic-transfers) Sources: - [Dynamic Call Transfers Vapi Documentation](https://docs.vapi.ai/calls/call-dynamic-transfers) - [Personalization with user information](https://docs.vapi.ai/assistants/personalization)
s
You can use the assistant-request flow.

https://www.youtube.com/watch?v=jWg0dgZQD7M

v
You can definitely connect multiple bots to a single phone number and use your own custom logic to balance calls between them. While Vapi doesn't provide automatic load balancing out of the box, you can set up your phone number to send incoming call events to your server, where you decide which assistant should handle each call. Just respond to Vapi with the chosen assistant's configuration or ID for each call, and rotate between your bots as needed. This approach gives you the flexibility to test and evaluate multiple versions of your sales bot using one phone number.
Yes, you can achieve this with a custom solution using the assistant-request flow. Set your phone number to send incoming call events to your server, then use your own load balancing logic to select one of your five assistants for each call. Respond to Vapi with the chosen assistant's ID like this:
Copy code
json
{
  "assistantId": "asst_salesbot_3"
}
Rotate the
assistantId
in your backend to balance calls as needed.
[See the dynamic call transfer docs for more details.](https://docs.vapi.ai/calls/call-dynamic-transfers) Sources: - [Dynamic Call Transfers Vapi Documentation](https://docs.vapi.ai/calls/call-dynamic-transfers) - [Personalization with user information](https://docs.vapi.ai/assistants/personalization)