shai
04/25/2025, 5:13 PMVapi Support Bot
04/25/2025, 5:15 PMcontent-type
header is set to application/json
and verify your JSON structure matches exactly what Vapi expects:
json
{
"results": [
{
"toolCallId": "call_aKGUbHhYykjRtJBYBNJ",
"result": "Available slots at 2:00 pm, 3:00 pm, 3:30 pm, 4:00 pm, 4:30 pm."
}
]
}
Make sure the result
field is a single-line string without line breaks.
Sources:
- [Discord discussion about Vapi response issues](https://discord.com/channels/1211482211119796234/1334658296291921920)
- [Discord thread about toolCallId matching](https://discord.com/channels/1211482211119796234/1325000684231196775)
- [Discord post about content-type headers](https://discord.com/channels/1211482211119796234/1335771378435231797)Kyle Brunker
04/25/2025, 5:35 PMshai
04/26/2025, 7:46 AMshai
04/26/2025, 8:00 AMshai
04/26/2025, 6:43 PMshai
04/27/2025, 12:19 PMVapi Support Bot
04/27/2025, 12:22 PMasync
to synchronous
json
// Make sure your response format is exactly:
{
"results": [
{
"toolCallId": "call_1Ag7aWeBPJIpl1IHnGh9JPOi",
"result": "Your single-line result string here"
}
]
}
Source:
- [Discord discussion about synchronous vs async tools](https://discord.com/channels/1211482211119796234/1342315282198298729)Kyle Brunker
04/27/2025, 9:28 PMKyle Brunker
04/27/2025, 9:29 PMshai
04/28/2025, 10:58 AMshai
04/29/2025, 6:09 PMshai
04/30/2025, 3:25 PM