transferCall tool always transfers to the first de...
# support
t
Here is the tool config { "id": "90811447-efef-49cf-bf24-...", "createdAt": "2025-09-03T06:35:44.808Z", "updatedAt": "2025-09-09T15:44:27.176Z", "type": "transferCall", "function": { "name": "transfer_call_tool", "description": "You can transfer maintenance and support related calls from user to the provided relevant numbers.\n\nFor maintenance transfer to +1572400..., \nFor support transfer to +142354...", "parameters": { "type": "object", "properties": {}, "required": [] } }, "messages": [ { "type": "request-start", "blocking": false } ], "orgId": "6d832617-261d-4512-9f18-...", "destinations": [ { "type": "number", "number": "+1572400...", "description": "For maintenance issues", "transferPlan": { "mode": "blind-transfer", "sipVerb": "refer" }, "numberE164CheckEnabled": true }, { "type": "number", "number": "+1423540...", "description": "For support issues", "transferPlan": { "mode": "blind-transfer", "sipVerb": "refer" }, "numberE164CheckEnabled": true } ] } I also explicitly mention the numbers in Assistant agent prompt to transfer to, but it always transfers to the first / maintenance number.
l
I am encountering this same issue
t
@Shubham Bajaj could you please look into that. I am being stuck in this from the last week. Even created the tool through API as well, still not working. It always transfer or choose first number in the destinations even tough I said I want to talk to the support for which it should choose the second.
Hi @Ladiesman217, let me know if you are able to resolve the issue.
c
Hello, Thanks for reaching out to us. We are sorry for the inconvenience. Can you give more details about your concern? Your Org ID, email address and other details that will help us pinpoint your account and to look further into it? We will investigate further and we appreciate your kind understanding and patience.
h
I am encountering same issue, every time the call is forwarded to the first number.
Hi, @Ladiesman217 @Toph kindly due share if you find any solution of this issue.
Org ID: d0e45e6c-fa9a-43b4-aae3-00b78b83aafc Email address: info@goldriverinsurance.com
s
Did you figure out how to resolve?
t
@hijaz @Sage you have to added condition as well for each number. Pass this into API while creating tool { "type": "transferCall", "function": { "name": "transfer_call_tool", "description": "Transfers calls to maintenance or support based on user intent. Choose +157240... for maintenance issues, and +14235... for support issues.", "parameters": { "type": "object", "properties": { "destination": { "type": "string", "enum": ["+15724....", "+14235..."], "description": "The destination phone number to transfer the call to." } }, "required": ["destination"] } }, "messages": [ { "type": "request-start", "content": "I am forwarding your call to maintenance. Please stay on the line.", "conditions": [ { "param": "destination", "operator": "eq", "value": "+15724...." } ] }, { "type": "request-start", "content": "I am forwarding your call to support. Please stay on the line.", "conditions": [ { "param": "destination", "operator": "eq", "value": "+14235...." } ] } ], "destinations": [ { "type": "number", "number": "+15724...", "description": "For maintenance issues", "transferPlan": { "mode": "blind-transfer", "sipVerb": "refer" }, "numberE164CheckEnabled": true }, { "type": "number", "number": "+14235...", "description": "For support issues", "transferPlan": { "mode": "blind-transfer", "sipVerb": "refer" }, "numberE164CheckEnabled": true } ] }
Here is the curl curl -X POST https://api.vapi.ai/tool \ -H "Authorization: Bearer YOUR_VAPI_API_KEY" \ -H "Content-Type: application/json" \ -d ' pass the above object here '
s
can you share the call_id?
h
@Toph This means we can also implement dynamic calling through GUI if we add conditions to the transfercall tool
t
Yes.
4 Views