msampino
05/05/2025, 1:46 PM{
"id": "950b43e0-ef86-44a1-9da9-a45e93a246e4",
"createdAt": "2025-05-02T15:43:19.348Z",
"updatedAt": "2025-05-05T13:41:01.371Z",
"type": "function",
"function": {
"name": "logLeadToCRM",
"strict": false,
"description": "Log a qualified lead to CRM",
"parameters": {
"type": "object",
"properties": {
"name": {
"description": "The name of the caller",
"type": "string"
},
"email": {
"description": "The email of the caller",
"type": "string"
},
"phone": {
"description": "the phone number of the caller",
"type": "string"
},
"address": {
"description": "the address of the caller",
"type": "string"
},
"isHomeowner": {
"description": "Whether or not the caller is the homeowner",
"type": "boolean"
},
"callbackTime": {
"description": "The callback time reserved by the caller",
"type": "string"
}
},
"required": [
"name",
"phone",
"isHomeowner"
]
}
},
"orgId": "9d1d8b58-85cc-485d-9406-cb08ab846701",
"server": {
"url": "https://testdomain.com/webhook/voice-agents/tool-calls/new-lead",
"headers": {}
},
"async": true
}Vapi Support Bot
05/05/2025, 1:48 PMjson
{
"results": [{
"toolCallId": "the-actual-tool-call-id-from-request",
"result": "Successfully logged lead information"
}]
}
Ensure your server returns HTTP 200 status (even for errors) and verify the webhook URL is accessible from outside your network.
Sources:
- [Discord conversation about tool call response format](https://discord.com/channels/1211482211119796234/1325000684231196775)
- [Discord conversation about webhook issues](https://discord.com/channels/1211482211119796234/1326809606671958080)msampino
05/05/2025, 1:49 PMChiranjeet Mishra
05/05/2025, 4:26 PMmsampino
05/05/2025, 4:47 PMmsampino
05/05/2025, 4:50 PMmsampino
05/06/2025, 3:34 PMShubham Bajaj
05/06/2025, 8:45 PMShubham Bajaj
05/06/2025, 8:52 PMlogLeadToAnovaCRM is defined after the transfer tool call, so your call never reaches to this point.
Instead, you have to first trigger the tool and then trigger the transfer tool call.
You might need to use something like this in your prompt instead.
trigger the `logLeadToAnovaCRM` tool and trigger the `transferCall` toolShubham Bajaj
05/06/2025, 8:52 PMmsampino
05/07/2025, 2:49 PMChiranjeet Mishra
05/08/2025, 2:40 AMmsampino
05/08/2025, 2:48 PMChiranjeet Mishra
05/10/2025, 3:45 AM