Cleverize
12/05/2024, 11:12 AMVapi
12/05/2024, 11:15 AMtransferCall
function to forward the call to the appropriate number.
Here are some steps and best practices to consider:
1. **Define Business Hours**: Clearly define the hours during which you want calls to be transferred.
2. **Time-Checking Logic**: Implement logic in your AI assistant's code to check the current time against your business hours.
3. **Use transferCall
Wisely**: Only invoke transferCall
when the current time meets your defined conditions.
4. **Test Thoroughly**: Ensure your time-based conditions are correctly triggering the call transfer.
Regarding unsuccessful transfers, handling scenarios where the endpoint number is busy or doesn't answer is crucial. You can configure fallback actions such as:
- **Retry Logic**: Attempt to transfer the call again after a certain time interval.
- **Alternative Number**: Transfer the call to a second number if the first is unavailable.
- **Voicemail**: If all else fails, direct the call to a voicemail system.
- **Notifications**: Set up notifications to inform relevant personnel that a transfer attempt failed.
To define fallback actions, you would typically set up additional logic in your system to handle these cases. This could involve using conditional statements to check the result of the transferCall
attempt and then executing the appropriate fallback action.
If you need more specific guidance on setting up these features or if you encounter any issues, please don't hesitate to ask for support.Vapi
12/05/2024, 11:15 AMShubham Bajaj
12/06/2024, 7:53 AMShubham Bajaj
12/06/2024, 7:53 AMCleverize
12/12/2024, 3:27 AMjson
{
"type": "transferCall",
"function": {
"name": "transferAccountManager",
"description": "Use this function to transfer the call if the user wants to talk to their account manager. DO NOT call this function unless you are instructed to do so.",
"parameters":
{
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "The destination to transfer the call to."
}
},
"required": [
"destination"
]
}
}
}
2. Attached the tool to the AI Assistant
3. Edit the prompt to let it know about the functionality
You are an AI customer phone support agent acting on behalf of a business.
If the customer specifically asked you to transfer the call to its account manager, call transferAccountManager function.
4. Add my server url to the assistant
5. Enable transfer-destination-request in the server messages
During the call, when I ask the assistant to transfer the call, it tells me "transferirng the call now" but, it is not calling my server webhook function.
Call Id: "97541019-495a-4374-92f8-261aae099944"Shubham Bajaj
12/12/2024, 5:36 PMCleverize
12/12/2024, 11:50 PMCleverize
12/26/2024, 11:43 PMShubham Bajaj
01/06/2025, 10:10 PM