Dynamic Call Transfer with the Call Transfer tool
# support
n
Hi Im trying to route call transfers to different numbers based on Departments I have the department name setup in the description as well as instructions in the system prompt, but it alwasys transfers to the same number. Can you help me if im missing asnything. Attaching my configuration below https://cdn.discordapp.com/attachments/1355977050342817952/1355977050619510877/image.png?ex=67eae389&is=67e99209&hm=e2e92f20ab7d590f2e0d284885c742bc185a0e3cb84cc4b7e549dbebcc205b04&
v
Thanks for sharing your configuration! I can see you're trying to set up dynamic call transfers based on departments, but there are a few potential issues that might be causing all calls to transfer to the same number. Could you please provide some additional information about your setup: 1. How are you configuring the
transferCall
tool in your assistant? Are you using a hardcoded destination in the tool configuration or a dynamic destination? 2. Are you using the Vapi dashboard only, or are you also using the API for your configuration? (The dashboard [only supports one forwarding number](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337027061172277329), while the API supports multiple/dynamic destinations) 3. Have you set up a server event for
transfer-destination-request
to dynamically determine the transfer destination? 4. How is your assistant determining which department to transfer to? Is it based on user input during the conversation, or is there some other logic? 5. Could you share a snippet of your system prompt that contains the instructions for handling department transfers? Sources: - [Dynamic Call Transfers](https://docs.vapi.ai/phone-calling/dynamic-call-transfers) - [Discord Thread on Dynamic Call Transfers](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337027061172277329) - [Discord Thread on Transfer Tool Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337383511329345588)
n
@User Any help you be great
a
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
n
@User call id bd7682f5-be20-4eab-b2f1-b4eacbde1aac time : 0:30 Now it sould have forwarded to the electrical department but it forwarded to the heating.
a
šŸ”µ 14:52:57:851 \[user LOG\] Model called tool: transfer_call_tool() šŸ”µ 14:52:57:851 Requesting "tool_calls": Call 1 of 1
transfer_call_tool
. args: {}... Hey Nehal Azhar, when using your prompt model is calling the tool without any arguments, that's why it's going to the default destination. You have to trigger the tool with the destination you want to use. try the below prompt: when you are triggering the transfer tool calll using your prompting you need to pass the destination as well followed by the keyword with, this gives the LLM an inference to call a tool with an argument.
Copy code
trigger the transfer_call_tool with <destination>
let me know how it goes for you.
n
Thanks! I'll give it a try and let you know
Hey @Shubham Bajaj Ive updated the prompt as you suggested it is now adding the parameter but still calling the default destination Call id : ff9d96c6-b72c-405c-8ba3-f3dfccc7608a at 07:25:54:688
@Shubham Bajaj Update when i set the prompt as
trigger the transfer_call_tool with parameters  {destination:<phonenumber>}
it started working fine
a
Marking this ticket as Solved āœ…
5 Views