Mikkel Hagstrøm
01/15/2025, 12:42 PMVapi
01/15/2025, 12:44 PMjson
{
"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:
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.Vapi
01/15/2025, 12:44 PMShubham Bajaj
01/16/2025, 4:16 PM