Cleverize
12/12/2024, 11:53 PMjson
{
"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"Vapi
12/12/2024, 11:56 PMtransfer-destination-request
is enabled and that the tool is correctly attached to the assistant.
6. **Test the Function Manually**: Try to manually invoke the transferAccountManager
function with the correct parameters to see if the transfer works outside of the assistant's context.
7. **Check Call ID**: Verify that the Call ID "97541019-495a-4374-92f8-261aae099944" is correct and that the assistant is using the correct Call ID when attempting to transfer.
If after these steps the issue persists, it might be beneficial to look at the detailed logs or error messages from both the assistant and the server to pinpoint the issue. If you need further assistance, please provide any error messages or logs that you have, and I'll do my best to assist you.Vapi
12/12/2024, 11:56 PMVapi
12/12/2024, 11:56 PM~Stu~ CoreAspect.Agency
12/23/2024, 10:30 PMCleverize
12/24/2024, 6:36 AM~Stu~ CoreAspect.Agency
12/24/2024, 6:59 AMCleverize
12/30/2024, 1:07 AM~Stu~ CoreAspect.Agency
12/30/2024, 1:21 AM~Stu~ CoreAspect.Agency
12/30/2024, 1:22 AMShubham Bajaj
01/06/2025, 10:56 PMShubham Bajaj
01/11/2025, 4:41 PM~Stu~ CoreAspect.Agency
01/20/2025, 8:24 PM