user.
05/10/2024, 4:17 PMVapi Support
05/10/2024, 4:17 PMVapi Support
05/10/2024, 4:17 PMtransferCall
function, which is designed for exactly this purpose. This functionality is part of Vapi's extended capabilities to manage call flows effectively, including forwarding calls when specific criteria are met.
Here's a basic outline of how to set this up, as documented:
1. Define the condition within the assistant's logic. You'll need to instruct the assistant on when to use the transferCall
function based on the conversation's context or specific triggers mentioned by the user. This involves prompt engineering, where you clearly state what the assistant should listen for to decide it's time to transfer the call [(1)]() .
2. Use the transferCall
function. When the predefined conditions are met, you should use the transferCall
function to redirect the call to the desired phone number. This function can be used seamlessly within the conversation flow to initiate the transfer.
json
{
"model": {
"messages": [
{
"role": "system",
"content": "When the user asks to be transferred, use the transferCall function."
}
]
},
"forwardingPhoneNumber": "+16054440129"
}
Unfortunately, there isn't a direct mention of a video tutorial in the provided documentation. However, the provided steps and examples in the documentation should serve as a comprehensive guide to setting up call forwarding to real agents based on the conversation's context.
For more specific or complex setups, referring directly to the [Function Calling]() documentation can provide further insights into tailoring the assistant's behavior to meet your requirements.Sahil
05/10/2024, 5:22 PM