webhook make.com response. what is the correct h...
# support
m
i want just a variable back. i tried to do {"variableName": "value"} and tried just "value"ín the respnse webhook body. but no response seems to come back to vapi, even with Content-Type application/json. https://cdn.discordapp.com/attachments/1329068241066135603/1329068241665917019/ljeasil.png?ex=6788fec1&is=6787ad41&hm=24612f01bc50821a14b2e875ee8ecf3dbcfd22bd11a22dca649280c72170aae2&
v
@Mikkel Hagstrøm I'm here to help! When your server responds to a VAPI tool call, it's important to follow the expected JSON response format that VAPI can understand. The response should be structured as follows:
Copy code
json
{
    "results": [
        {
            "toolCallId": "X",
            "result": "Y"
        }
    ]
}
In this structure,
X
should be replaced with the actual
toolCallId
that was sent in the HTTP request from VAPI, and
Y
should be the result or value you want to return. If you're sending back just a variable, you would still need to wrap it in the
results
array and include the
toolCallId
. For example:
Copy code
json
{
    "results": [
        {
            "toolCallId": "12345",
            "result": "value"
        }
    ]
}
Make sure that your server is sending back this JSON response with the correct
Content-Type: application/json
header. If you've done this and are still not seeing a response in VAPI, please check your server logs to ensure that the response is being sent correctly. If the issue persists, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
s
Hey @Mikkel Hagstrøm To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
7 Views