Can we transfer to multiple different phone number...
# support
v
I'm trying to trigger transfer to certain phone numbers based on criteria. The idea is to create something like a language-switcher function that transfer the call to another assistant that handles certain languages but we can only set one forwarding phone number on the configuration right now. Is there a way to manually trigger the forwarding function with a specific phone number on the prompt?
v
Hi @Vramir, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Function Calling]() * [Call Forwarding]() * [Inbound Support Example]() * [Outbound Sales Example]() -----------------------------
### Answer Yes, Vapi does allow for dynamic call forwarding, enabling you to transfer calls to multiple different phone numbers based on certain criteria. This can be particularly useful for scenarios like your language-switcher function. While you can set a single
forwardingPhoneNumber
in the assistant configuration, Vapi also supports the use of multiple
forwardingPhoneNumbers
. This allows you to specify an array of phone numbers to which the calls can be forwarded dynamically. When defining your assistant, you can instruct it on when to use each of these numbers within the system prompt [(1)]() . For dynamically triggering the forwarding function with a specific phone number during the conversation, you can make use of the
transferCall
function. This function can be used to transfer the call to a number specified at runtime based on the conversation's context or certain conditions being met [(2)]() . Please note, when implementing dynamic call forwarding or transfer, ensure that your logic for decision-making (e.g., choosing the destination number based on the user's language preference) is clearly defined within the assistant's setup or the associated server logic. This way, you can effectively manage the call routing to different numbers or assistants as needed.
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.