SidewaysCat
04/02/2025, 7:55 PMVapi Support Bot
04/02/2025, 7:57 PMVapi Support Bot
04/02/2025, 8:03 PMVapi Support Bot
04/02/2025, 8:03 PMSidewaysCat
04/02/2025, 8:03 PMVapi Support Bot
04/02/2025, 8:04 PMresults
array with toolCallId
and result
fields, like this:
json
{
"results": [{
"toolCallId": "message.toolCalls[].id",
"result": "Whatever you want to send back to the tool"
}]
}
According to the [documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775), the toolCallId
in your response must match the toolCallId
that was sent by Vapi in the initial request. Your current response format is missing these required fields.
### How the dynamicDestinationTransferCall Tool Works
The dynamicDestinationTransferCall
tool [works by](https://docs.vapi.ai/phone-calling/dynamic-call-transfers):
1. Sending a transfer-destination-request
webhook to your server
2. Your server should respond with either a valid destination or an error
3. The destination can be a number or SIP URI
When triggered with "trigger the dynamicDestinationTransferCall tool", it sends the webhook request to your server URL.
### Troubleshooting Steps
Here are some steps to resolve your issue:
1. **Check the response format**: Ensure you're returning the correct JSON structure with the results
array containing the toolCallId
and result
fields.
2. **Verify content type**: Make sure the content-type of your response is set to application/json
as mentioned in the [documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321).Vapi Support Bot
04/02/2025, 8:04 PMnumberE164CheckEnabled
set to true
, ensure your phone number is in the correct E164 format (e.g., +14155551234). This is the [default setting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342514332604432424) and requires proper formatting.
Is there anything specific about these steps you'd like me to clarify further?
Sources:
- [Discord Thread about JSON Response Format](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775)
- [Discord Thread about Content Type](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321)
- [Discord Thread about Phone Call Control Event](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330092161835733013)
- [Discord Thread about numberE164CheckEnabled](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342514332604432424)
- [Vapi Documentation on Dynamic Call Transfers](https://docs.vapi.ai/phone-calling/dynamic-call-transfers)SidewaysCat
04/02/2025, 8:33 PMSidewaysCat
04/02/2025, 10:54 PMSidewaysCat
04/03/2025, 7:46 PMVapi
04/06/2025, 9:17 AMSidewaysCat
04/06/2025, 10:55 AMVapi
04/07/2025, 1:06 PMSidewaysCat
04/07/2025, 3:08 PMVapi
04/09/2025, 1:57 AM