My Vapi agent answers BEFORE the webhook response arrives from N8N
Hi everyone, Iโm facing a blocking issue with a tool call + webhook flow and I hope someone can point me in the right direction. The problem is: My Vapi agent answers BEFORE the webhook response arrives from N8N, even though the tool is correctly triggered. Here is the sequence: The tool (Check_Availability) is triggered normally. N8N receives the toolCallId and starts processing the workflow. Before N8N finishes and sends back the JSON response, the agent already replies on its own with something generic like โThe time is availableโ or simply continues the conversation. When N8N finally returns the correct JSON, Vapi logs show "result": "Success" instead of the actual message I returned. Here is the JSON I send back from the webhook: { "results": [ { "toolCallId": "call_7IAFqr0iUuzRxhoom52Qdiq5b", "result": "The requested time at 9 AM is not available, but 10 AM or 11 AM on the same day are available." } ] } โข Using โRespond With: JSONโ โข No newlines โข toolCallId is correct โข Webhook returns instantly when tested manually โข But during real calls, Vapi replies before receiving the webhook result My question is: Why is the agent not waiting for the webhook response, and how can I force Vapi to wait for the tool result before answering? Any idea what might cause this? Thanks a lot to anyone who can help!