Make n8n Webhook Connection doesn't work
# support
m
My webhook connection with n8n and Vapi doesn't work. I am trying to set-up a check_availability tool, that would allow the assistant to call on an n8n workflow where you can check a Google Calendar's availability. In the images you can find the current set-up. Below you can find my JSON in the parameters field too: { "type": "object", "properties": { "timezone": { "description": "Clinic timezone, e.g. America/New_York.", "type": "string" }, "providerId": { "description": "Optional provider/calendar ID.", "type": "string" }, "dayRangeEnd": { "description": "End date (YYYY-MM-DD).", "type": "string" }, "serviceCode": { "description": "Code of the service, e.g. CLEAN_30.", "type": "string" }, "dayRangeStart": { "description": "Start date (YYYY-MM-DD).", "type": "string" } }, "required": [ "serviceCode", "dayRangeStart", "dayRangeEnd", "timezone" ] } https://cdn.discordapp.com/attachments/1435306405648404570/1435306405924966450/image.png?ex=690b7cc1&is=690a2b41&hm=8c225b849d73e525283d73967128b561044f301e10f9b59612194648956045f0& https://cdn.discordapp.com/attachments/1435306405648404570/1435306406319362139/image.png?ex=690b7cc1&is=690a2b41&hm=ebddec157c4ab9ddd7c5566a0c0891888ae5631b673b901df24d9b397495e725& https://cdn.discordapp.com/attachments/1435306405648404570/1435306406738923611/image.png?ex=690b7cc2&is=690a2b42&hm=3e7f4ebfafd89e08362b904887fd7fde35b08fe84ad8de324382dce00d69ab4a&
v
Thanks for sharing your setup details! To help diagnose the issue, could you specify what exactly happens when you trigger the
check_availability
tool—do you see any error messages, or does the webhook not receive any request at all? Sources: - [Custom tools troubleshooting](https://docs.vapi.ai/tools/custom-tools-troubleshooting) - [Debugging voice agents](https://docs.vapi.ai/debugging)
m
I don't see any error messages. It just doesn't receive any request.
e
Check the call logs, did the assistant call the tool at all?
e
I'd like to see the tool call break down, values sent from vapi.
m
@User @User @User My n8n webhook cannot fetch the data from Vapi. It's calling the right tool, but for some reason there's connection between n8n and Vapi. Here's a video of the error. Hopefully this helps! After the call ends you can fast forward a little bit. It takes me a minute to find the webhook error. Below the json from the webhook request error: { "id": "log-376", "level": 50, "time": 1762357413332, "timestamp": 1762357413332000000, "severityText": "ERROR", "severityNumber": 17, "body": "Request failed: tool-calls", "attributes": { "category": "webhook", "callId": "019a54ae-ec98-7771-b829-7cc5c41f09c1", "orgId": "52cd29dd-d410-4f8d-9020-5ca43fc4e278", "url": "https://marcusvangeelen.app.n8n.cloud/webhook/e5d278fd-831f-4ffa-a38b-83e817620987", "latencyMs": 246, "messageType": "tool-calls", "errorMessage": "Request failed with status code 500", "statusCode": 500, "statusText": "Internal Server Error" } } https://cdn.discordapp.com/attachments/1435306405648404570/1435657895415906346/2025-11-05_16-40-29.mkv?ex=690cc41b&is=690b729b&hm=f5c760ed9bd5727c7fc76cbbf3abf4cca6162ae95774a57d58aa145eebc4110a&
e
Hey Marcus, I am not affiliated to vapi, I'm a freelancer myself but I can fix this for you. Send me a message
c
Hi Marcus, To test webhooks locally using Vapi CLI and ensure you receive server events, follow these steps: 1. **Install and Start Vapi CLI**:
Copy code
bash
   curl -sSL https://vapi.ai/install.sh | bash
   vapi listen --forward-to localhost:3000/webhook
This sets up a local listener at port 4242. 2. **Set Up Tunneling**: - Use a tunneling service like ngrok to create a public URL.
Copy code
bash
   ngrok http 4242
Copy the public URL provided by ngrok. 3. **Configure Webhook URL**: - In your Vapi Dashboard, update your webhook URLs to point to the ngrok URL (e.g.,
https://abc123.ngrok.io
). Make sure your local server is set to handle POST requests on the same path you configured in your Vapi dashboard. For complete instructions and options, refer to [Local webhook testing with vapi listen](https://docs.vapi.ai/cli/webhook). By following these steps, you should be able to debug and view webhook events in real-time. If you're encountering issues or receiving errors, verify your tunneling service setup, the configured ports, and ensure your local server is actively running and listening for requests.