transferCall is either not calling or only calling...
# support
m
I am trying to create a transferCall tool from within the dashboard but it isn't working. I copied 1-1 a tool that was previously working and just changed the destination numbers, but now it won't work. The UI has been changed since I built the first tool. Which of the fields are essential for the tool to work? Do I need Parameters or just Destinations, and do I need a description for the tool or just for the destinations or both?
@Vapi Support Bot ?
k
Hey! To help track down this issue, could you share: - The call ID
y
same issue. Assistant is always calling the first number in the destination list...in the UI...how to fix. @Vapi Support Bot
k
Dynamic transfers can be used to prevent this issue. Define the destinations in the assistant prompt like the example below:
Copy code
For Name 1 requests: destination_number = "+xxxxxxxxxxx"
For Name 2 requests: destination_number = "+xxxxxxxxxxx"
Then configure your transfer tool without destinations:
Copy code
{
  "type": "transferCall",
  "function": {
    "name": "transfer_call_tool",
    "parameters": {
      "type": "object",
      "properties": {
        "destination_number": {
          "type": "string",
          "description": "The phone number to transfer to"
        },
        "person_name": {
          "type": "string", 
          "description": "Name of the person being transferred to"
        }
      },
      "required": ["destination_number"]
    }
  }
  // NO static destinations here
}