Dynamic Call Transfer
# support
c
Hey Support team I'm trying to set up dynamic call transfers and define the transfer logics on my server, but it is not currently working. Here are the steps that I have tried 1. Created a tool using api to transfer the call
Copy code
json
{
  "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
Copy code
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"
v
@Cleverize I'm sorry to hear that you're experiencing issues with setting up dynamic call transfers. Let's go through a few troubleshooting steps to ensure everything is configured correctly: 1. **Check Server URL**: Verify that the server URL added to the assistant is correct and that the server is accessible from the internet. 2. **Webhook Configuration**: Ensure that your server is configured to receive POST requests at the endpoint you've specified for the webhook. 3. **Server Logs**: Look at the server logs to see if there are any incoming requests from the assistant when the transfer is initiated. If there are no logs, the request might not be reaching your server. 4. **Error Handling**: Make sure your server has proper error handling to respond to the assistant's requests. If there's an error in processing the request, it might prevent the transfer from happening. 5. **Assistant Configuration**: Double-check the assistant's configuration to ensure that the
transfer-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.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
u
did you ever resolve this? I am trying to to the same, and there are a couple of things I found that may be helpful to get you further,but sadly don't have the final piece of the puzzle and i am waiting on answers. I found creating a tool with this structure and then instructing the assistant to use it in whatever scenario you need create a call to your server url, (also ensure you have the tool attached to the assistant and the server message 'transfer-destination-request' setup) { "id": "xxx", "type": "transferCall", "server": { "url": "https://hook.us2.make.com/bxxxxxxu", "timeoutSeconds": 20 }, "async": false, "destinations": [] } your webhook should now receive a message type of 'transfer-destination-request' , and you can send a payload back with the destination, however this is where I am currently stuck and believe the response should be: { "messageResponse": { "destination": { "type": "number", "message": "message", "number": "+1234567890", "numberE164CheckEnabled": true } } } however the transfer is not being made, the assistant says it is (and the logs say its successful) however there is never a transfer. https://cdn.discordapp.com/attachments/1316915756855726201/1320881325925728256/48BDF02B-29E5-47D3-8A69-E86F54EBF99B.png?ex=676b3618&is=6769e498&hm=78a0b39c676954872d5473ed59da2663a43849b405a53f3f81dd33a040a75008& https://cdn.discordapp.com/attachments/1316915756855726201/1320881326190100620/image.png?ex=676b3618&is=6769e498&hm=39cc128d1416e6ba9bccef047b12186d185ea9a19103f60ee1f204510894c6c0&
c
@~Stu~ CoreAspect.Agency nah, unfortunately haven't been able to resolve the issue. Still waiting for the @User to reply.
u
If I find the answer I'll be sure to let you know. If been testing everything
c
@~Stu~ CoreAspect.Agency did you have any luck with this?
u
Sadly @Cleverize I didn't manage to get it to work, it just hangs up from memory and I've dug through the forum but there is very little reference to it other than its possible...
This was the other similar thread I was checking in on https://discord.com/channels/1211482211119796234/1311116342698704949
s
@Cleverize Sorry for the late response. Are you still experiencing this problem? If so, could you send over a recent call ID so I can take a look?
Because of no response closing this ticket.
u
3 Views