VAPI Agent can't see response, but when tested on ...
# support
s
Hi, Even though we can see the response coming back from make.com webhook. { "results": [ { "toolCallId": "", "result": { "first_name": "martin", "Client_ID": 39 } } ] } https://cdn.discordapp.com/attachments/1353355013937954848/1353355014084493404/Screenshot_2025-03-23_130052.png?ex=67e15993&is=67e00813&hm=d2ad5e07d0f9a9b65540500f545ebb4fc1e86ffa210f9aadf1663b6c2db155cb&
v
I notice that the
toolCallId
field in your webhook response is empty. This is likely why your VAPI Agent can't see the response, even though it's visible when tested directly on VAPI. The
toolCallId
is a crucial element that allows VAPI to match a tool's response with the original tool call. Without it, VAPI won't be able to associate the response with the correct tool call. Could you check the initial request from VAPI to make.com and confirm if it includes a
toolCallId
? You'll need to copy this exact ID from the request and include it in your response. Also, I noticed the response format shows nested JSON in the
result
field. Make sure your response follows this exact structure:
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_XYZ123", // Replace with the actual toolCallId from the request
      "result": {
        "first_name": "martin",
        "Client_ID": 39
      }
    }
  ]
}
Sources: - [Purpose of toolCallId](https://docs.vapi.ai/tools/custom-tools) - [Importance of Matching toolCallId](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775) - [Example of toolCallId in a Response](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339900285727805513)
s
My vapi agent can't see the tool data structure, I have to call the agent from phone, testing it using the new test feature does not create this.
the agent is still not able to see this data
can you please help with this issue, I;ve been trying to solve for almost a week now
solved
k
Marking this ticket as Solved ✅