Squad Assistants don't work individually through w...
# support
t
I have three agents leasing, maintenance and sales. I have added them all in squad and have a transfer tool for them to transfer to each other. Issue is I want to also attach specific phone to each agent as well. So if a call comes in to a phone number attach to leasing then on that call the transfer to other agent can happen. But since I am unable to have call individually with each agent due to error of Invalid Destinations. Assistant (assistant name here) not found. Because the transfer tool allow us to have attach agent by Name and not Assistant Id. How can I resolve this issue, so that I can individually have phone attach to each agent and still they will be in squad to transfer to each agent.
v
To resolve this, configure each phone number to use a server endpoint that returns the correct assistant or squad for that call. In your Vapi dashboard, set the phone number's server URL, then have your server respond like this:
Copy code
json
{
  "assistantId": "leasing-assistant-id"
}
or for a squad:
Copy code
json
{
  "squadId": "your-squad-id"
}
This way, each phone number can route to its specific agent, and transfers within the squad will work as expected. See the [personalization docs](https://docs.vapi.ai/assistants/personalization#configure-your-phone-number-to-use-your-server) for details. Source: - [Personalization with user information](https://docs.vapi.ai/assistants/personalization#configure-your-phone-number-to-use-your-server)
t
@User would this resolve the "Invalid Destinations. Assistant (assistant name here) not found" issue
I tried to use the above dynamic assistant attachment to phone but it is still giving me the Invalid Destination issue.
o
Why don't you have a general assistant that does the transferring of call
So that when the customer calls and the bot ask for which service do they want it can then transfer them to the bots that handles their needs
t
@Omatsola That won't resolve the issue, I can add like a router Assistant in Squad that would transfer to the three agents we have but still I am not able to attach phone number to individual assistant agents. Because of the Invalid Destination issue.
c
You can still have your squad with routing to each assistant and also have your separate assistants assigned with phone numbers outside of the squad. If you want the assistants outside of the squad to transfer to another assistant, you can use the handoff tool which should allow a "transfer" to another assistant, in theory.
2 Views