My 1st webhook is set to respond to webook, Here’s the code in the respond to webhook. What’s happening is when I use Vapi, the AI agent is calling for the data but nothing is being return although the workflow is executing perfectly. For some reason it is returning a empty data set when using vapi
You are trying to grab toolCallId using $json.toolCallId, which tells n8n to look at the previous node (Search records). But if you look closely at your screenshot of the Search node, that ID isn’t there—only the warehouse data is. The toolCallId actually arrived way back at the start, in your Webhook node, and got “left behind” as you moved through the flow.
quick fix:
Open that Expression node.
Delete the $json.toolCallId value.
Instead of just clicking “Current Node” in the variable selector, find your Webhook node (or whatever your trigger is named) on the left side.
Dig into the JSON there to find the id. It usually looks something like: {{ $('Webhook').first().json.body.message.toolCalls[0].id }}
Once you map that ID directly from the source, Vapi will finally recognize which question you are answering!
let me know if this works for you.