server message type tool-calls not requesting to m...
# support
c
I'm experiencing an issue where the server message type tool-calls is not triggering as expected. In the webhook logs, I did not see the Tool Calls Type between 6:55 PM - 6:58 PM. In the call logs messages menu, I did not see the role tool_calls message. Can you please help me why did these happen? Here are the details: Call ID: 7e672b90-fdc7-47bb-9983-a7a9a4e0f03b When: 1746125847170 Expect response: server message tool-calls Received response: none https://cdn.discordapp.com/attachments/1367582438703759470/1367582439337361428/image.png?ex=68151be5&is=6813ca65&hm=c525bfcdef3b7641bbe52c219cc293be347402c3dd19961cdb31a7fa5f879995&
v
Check your server URL configuration in the Vapi Dashboard to ensure it's correctly set up to receive the tool-calls event. Verify that:
Copy code
1. 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)
c
@Vapi Support Bot Tested the webhook using insomnia and it's working. Request Log from the server:
Copy code
type: 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.
v
Try using the webhook directly instead of the Vapi module to respond to tool calls. According to similar reported issues, this approach has resolved the problem:
Copy code
javascript
// 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)
c
Still no tool-call webhook logs. By the way I used custom-llm
k
The
tool-calls
message likely didn’t trigger due to assistant configuration, webhook setup, or misformatted responses, check prompts, webhook handling, and integration logs to troubleshoot.
3 Views