With the new VAPI tools function, the assistant is...
# support
m
Anyone else having this issue or have solved it? Make webhook returns: {results: [{ "result": "Here's what's available: On March 10th, the available time slots are 9:00 AM, 10:00 AM, 11:00 AM, 12:00 PM, 1:00 PM, 2:00 PM, and 4:00 PM.", "toolCallId": "call_WB4FKM69vcysFFtdZs7BiZGi" }] } here's the log: { "name": "calGetSlotsByDate", "role": "tool_call_result", "time": 1741444435525, "result": "No result returned.", "toolCallId": "call_WB4FKM69vcysFFtdZs7BiZGi", "secondsFromStart": 18.808 } Anyone else having the same issue or have solved it?
v
Hi there! I see you're having an issue with the VAPI tools function not receiving your returned results JSON. Based on what you've shared, I can spot a few potential issues: 1. **JSON Format Issue**: Your webhook response is missing quotes around the
results
key. The correct format should be:
Copy code
json
{"results": [{
  "result": "Here's what's available: On March 10th, the available time slots are 9:00 AM, 10:00 AM, 11:00 AM, 12:00 PM, 1:00 PM, 2:00 PM, and 4:00 PM.",
  "toolCallId": "call_WB4FKM69vcysFFtdZs7BiZGi"
}]}
2. **Content-Type Header**: Make sure your webhook response has the
Content-Type
header set to
application/json
. This is crucial for proper processing of the JSON payload [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1327234509126165615). 3. **Recent Schema Changes**: VAPI recently updated their
ToolCall
schema, replacing properties like
tool
and
toolBody
with
function
and
id
details. Make sure your implementation reflects these changes [source](https://docs.vapi.ai/changelog). 4. **Line Breaks**: If your result string contains any line breaks, ensure they're properly escaped with
\\n
[source](https://discord.com/channels/1211482211119796234/1211483291191083018/1334658296291921920). 5. **Synchronous vs Asynchronous Configuration**: Check if your tool is configured as synchronous or asynchronous, as timing issues could lead to "No result returned" messages [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1342336047589359618). Hope this helps! Let me know if you need more assistance with troubleshooting. 👍 Sources: - [Discord Channel Message](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1327234509126165615) - [Discord Channel Message](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920)
Message marked as helpful by @Mr.snack! 🎉
k
Hey @Mr.snack checking if this is resolved for you?
2 Views