The issue is in the creation/update of tools in the UI.
When creating a simple tool through the API, it works and directs the call to the right destination, including voicing the message.
API Creation (that works):
curl -X POST
https://api.vapi.ai/tool \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
-d '{
"type": "transferCall",
"destinations": [
{
"type": "number",
"number": "+1412XXXXXXX",
"description": "Sales"
},
{
"type": "number",
"number": "+1669XXXXXXX",
"description": "HR"
}
],
"function": {
"name": "transfer_call_test"
}
}'
Creating the tool through VAPI's UI makes it more complex for some reason and it doesn't redirect to the right destination (defaults to the first number). It also doesn't say the message.
Here's the example of the code when creating or updating through the UI:
{
"id": "XXXXX",
"createdAt": "2025-04-28T21:19:51.529Z",
"updatedAt": "2025-04-28T21:29:59.576Z",
"type": "transferCall",
"function": {
"name": "transfer_call_test",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
"orgId": "XXXXX",
"destinations": [
{
"type": "number",
"number": "+1412XXXXXXX",
"message": "Connecting you now.",
"description": "Sales",
"transferPlan": {
"mode": "blind-transfer",
"sipVerb": "refer"
},
"numberE164CheckEnabled": true
},
{
"type": "number",
"number": "+1669XXXXXXX",
"message": "",
"description": "HR",
"transferPlan": {
"mode": "blind-transfer",
"sipVerb": "refer"
},
"numberE164CheckEnabled": true
}
]
}