How do we use the transferCall tool/function for i...
# support
c
Hey guys I would like to know how we can setup multiple forwarding options for our inbound call assistant. I can see that there's documentation for the outbound but is there a way we could do the same for inbound? https://docs.vapi.ai/call-forwarding Quick note: we're aware of the Forwarding Phone Number field but we have multiple phone numbers that the bot can forward the call, depending on their enquiry. Thanks
v
@CF Team Absolutely, for handling multiple forwarding options for inbound calls, you can utilize the
forwardingPhoneNumbers
array attribute. This allows you to route calls to different destinations based on the caller's request or other criteria you define. Here's a brief overview of how you can set it up: 1. Define the
forwardingPhoneNumbers
array with the different phone numbers you want to forward calls to. 2. Implement logic in your call assistant to determine the appropriate forwarding number based on the caller's enquiry. 3. Use the selected forwarding number from the array to route the call accordingly. If you need more detailed guidance or have specific criteria for call routing, please let me know, and I can assist you further!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
1. use transistent assistant or dynamic variables and pass the numbers bot can forward call to, before the start of the call 2. during the call using using call transfer function ask bot to transfer the call to the number randomly 3. if number is busy it won't connect back to the assistant
c
Hi, thanks but how can we do this for inbound calls?
currently, we can only add the transfer call type of tool if we will be doing outbound, just need some confirmation from the support if this is still an upcoming feature for the VAPI UI under Tools.
s
enable the transfer tool, and it will work.
it's an vapi provided tool, I didn't understood you completly.
g
@CF Team You have to set up an assistant configuration on your own webhook, configure the multiple numbers there, then on the phone number leave the Inbound assistant blank and add your webhook URL as the server URL in your account settings. Are you familiar with Make.com?
s
so he wanted to use transient assistant for inbound calls.
g
He wanted to be able to transfer to multiple numbers, while in the UI you can only add one number, which is why you have to use a transient assistant for multiple numbers. Is that right?
s
both are different in his you have to just pass list of numbers as dynamic variables and during the call ask the assistant to transfer the call to any of the number randomly or based on some logiv
g
So the 'forwarding number' field on the assistant UI is not relevant since you can just add numbers in the prompt?
s
it's relevant but you can trigger the tool with your own numbers as well.
g
Oh okay, that makes sense
Just for the record though, can I leave it blank then?
c
Thanks guys I'll try it
34 Views