chimera
05/01/2025, 7:24 PMVapi Support Bot
05/01/2025, 7:26 PM1. The tool is set to `synchronous` not `async`
2. The "request-start" message is set to an empty string
3. Your webhook endpoint is properly handling POST requests
If the issue persists, examine your server logs for errors and consider using a tool like Postman to test your webhook endpoint directly.
Sources:
- [Discord Channel](https://discord.com/channels/1211482211119796234/1334054297339433022)
- [Discord Channel](https://discord.com/channels/1211482211119796234/1342315282198298729)
- [Discord Channel](https://discord.com/channels/1211482211119796234/1333858668730515689)chimera
05/02/2025, 9:51 AMtype: tool-calls
tool triggered
[
{
id: 'toolu_01DTPAzUm5Gk3zxrpJ969oMF',
type: 'function',
function: {
name: 'caller_details',
arguments: { firstName: 'Vapi', lastName: 'Test', phoneNumber: '111111' }
}
}
]
{ "result": "It looks like we do not have your information. Proceed to ask their email." }
But when I tried to use the call assistant from vapi dashboard. The tool-call message is still not requesting to the server.Vapi Support Bot
05/02/2025, 9:53 AMjavascript
// In your webhook handler
app.post('/webhook', (req, res) => {
// Extract toolCallId from the request
const toolCallId = req.body.toolCalls[0].id;
// Send response directly with the correct toolCallId
res.json({
toolCallId: toolCallId,
result: "Your result here"
});
});
This solution has worked for others experiencing the same issue where tool-calls work with Insomnia but not with the call assistant.
Source:
- [Discord Channel](https://discord.com/channels/1211482211119796234/1334661059298066514)chimera
05/02/2025, 10:47 AMKings_big💫
05/02/2025, 2:20 PMtool-calls message likely didn’t trigger due to assistant configuration, webhook setup, or misformatted responses, check prompts, webhook handling, and integration logs to troubleshoot.