URGENT: dynamic_transfer_number
# support
s
Hi Vapi Support Team, I have a question regarding the transfer number functionality, whether used within a workflow or as a standalone tool. When I go into the transfer tool, I can enter a phone number (in E.164 format with the plus sign), but I absolutely need to be able to pass this number in via a dynamic variable, such as {{client_transfer_number}}, which is pulled at the start of a conversation. Am I overlooking something? From what I can tell, I can only manually enter a static number, and not a dynamic variable. Is there a way to achieve this right now? If not, is this feature already available, planned, or on your radar? This capability is essential for my use case, so any guidance or timeline would be greatly appreciated. Thank you,
k
Vapi dashboard transfer tool only supports static numbers, so to use a dynamic variable like {{client_transfer_number}} you must pass it via assistantOverrides.variableValues in the API or use a dynamic transfer tool with a webhook for real-time routing..
s
trying it, will come back to this if i'm running into any issue
dynamic transfer tool with a webhook for real-time routing, is quite complex 😅 do you know if dynamic variable like {{client_transfer_number}} is on vapi's to-do, seems like an easy add seeing a fixed number is possible?
c
Hi Swek, For implementing dynamic call transfers, it involves determining the destination in real-time based on conversation context or customer data. Here's a quick guide to set up dynamic call transfers using Vapi: 1. **Create a Dynamic Transfer Tool**: In your Vapi dashboard, navigate to "Tools" and create a new tool selecting "Transfer Call" as the type. Make sure to leave the destinations array empty to ensure it's dynamic. 2. **Set Up an Assistant**: Add this dynamic transfer tool to an assistant. In the assistant settings, enable the
transfer-destination-request
server event and set your server URL to handle the webhook. 3. **Build a Webhook Server**: Implement server-side logic to receive call context and determine the correct destination. You can create your server using frameworks like Node.js (Express) or Python (FastAPI). Use methods such as real-time CRM lookups or condition-based logic to configure destinations. 4. **Test Your Setup**: Assign a phone number to your assistant and test various transfer scenarios to ensure the system behaves correctly. For specific implementation, you can refer to the [Vapi Dynamic Call Transfers documentation](https://docs.vapi.ai/calls/call-dynamic-transfers) for detailed instructions and coding examples.
s
Thanks man! i was trying to do the dynamic transfer with a conference call through twilio... i didn't know i could make a dynamic transfer tool by leaving the number empty, currently optimizing some steps before the transfer, and will try to add this to my workflow
c
Please don’t hesitate to reach out if you need any further assistance. Our team will be more than happy to help with any questions or concerns you may have, and we’ll do our best to make sure everything works smoothly for you.
3 Views