Letter
09/22/2025, 5:33 AMChiranjeet Mishra
09/22/2025, 5:33 AMVapi Support Bot
09/22/2025, 5:33 AM{{location}} variable? This will help determine the best way to achieve dynamic office selection.
Sources:
- [Assistant-based warm transfer](https://docs.vapi.ai/calls/assistant-based-warm-transfer)
- [Dynamic call transfers](https://docs.vapi.ai/calls/call-dynamic-transfers)Yushoo
09/22/2025, 1:26 PMfunction: getTransferNumber
description: "Determines correct office number based on location"
parameters: location (string)
Then have your tool return the exact phone number based on the location variable, and use that in a standard transfer call.
Alternative approach: Set up separate transfer destinations with more explicit naming like "transfer_to_mineola" instead of generic descriptions. The agent seems to handle explicit function names better than parsing description text.
I've had better luck with programmatic routing rather than letting the agent "decide" from descriptions. The warm transfer experimental feature is still pretty buggy with dynamic routing.
Want me to walk you through the function setup? It's way more reliable than the description-based approach.Letter
09/22/2025, 2:36 PMYushoo
09/22/2025, 2:48 PMLetter
09/22/2025, 6:16 PMYushoo
09/22/2025, 8:17 PMYushoo
09/22/2025, 8:19 PMYushoo
09/24/2025, 4:52 PMChiranjeet Mishra
09/30/2025, 6:36 PMtransferCall Function:
- Implement this function in your assistant to forward calls whenever needed based on predefined instructions.
4. Customized Messages:
- Customize messages for each destination to provide clear information about call forwarding.
5. Troubleshooting:
- If calls are not transferring, verify the configuration by checking logs for errors and ensuring the correct destination numbers are utilized.
For a more detailed guide, please refer to the [Call Forwarding | Vapi](https://docs.vapi.ai/call-forwarding) documentation. If this doesn’t resolve the issue, please let us know and we’ll be happy to step in and assist further.