harsh-harlequin•2h ago
How to dynamically transfer calls (without parameters)
As I understand, a dynamic transfer call tool won't work if we pass in parameters and we're expected to choose a destination based on message history. This goes against our original plan that I chatted to someone about in office hours, where we want to reuse the same tool. Is there another way to achieve this tool reuse? and not create a new tool per phone number
1 Reply
You can achieve tool reuse for dynamic call transfers by creating a single transfer tool with an empty destinations array and handling the routing in your webhook. Here’s a simple example in Node.js (Express):
This lets you reuse the same tool and dynamically select the destination based on conversation context, without static parameters or multiple tools.
For more details, see the Vapi dynamic transfer docs. Source: - Dynamic call transfers
For more details, see the Vapi dynamic transfer docs. Source: - Dynamic call transfers
⤵️ Mention @Vapi Support Bot for follow-ups 🐥