Webhook Response Not Pick by Assistant
# support
o
I have my assistant set up already and working. And I created a calendar booking and availability check workflow on make which is equally working and booking appointments. Issue: 1. When the workflow returns the available time schedule on webhook response, the voice ai still says no available time. 2. When the workflow books appointments successfully. It still says u available for booking in the voice @Sven @Arvind @Vapi
v
Hi there! 👋 I see you're having issues with your Vapi assistant not correctly interpreting the webhook responses from your Make workflow. Unfortunately, I can't see your specific Make workflow setup or Vapi assistant configuration. However, I can help with common issues that cause webhook responses not to be properly interpreted by Vapi assistants for calendar booking and availability checks. Based on the information I found, here are some potential solutions to your issues: ## 1. Check Your Webhook Response Format The most common issue is incorrect JSON formatting in your webhook response. Vapi expects a very specific format:
Copy code
json
{
    "results": [
        {
            "toolCallId": "X",
            "result": "Y"
        }
    ]
}
Where: - "X" must exactly match the
toolCallId
sent by Vapi in the initial request - "Y" should be a string containing your available times or booking confirmation According to [Vapi's webhook response requirements](https://docs.vapi.ai/tools-calling), the
result
field should be a string without line breaks, and if you're using JSON, it needs to be stringified first. ## 2. Verify the
toolCallId
Matching Make sure the
toolCallId
in your response exactly matches the one sent by Vapi. If there's a mismatch, Vapi won't be able to associate your response with the correct tool call. ## 3. Check Content-Type Header Ensure your webhook is setting the content-type header to
application/json
. ## 4. Format of Available Time Slots For available time slots, make sure they're formatted correctly. Here's an example of a properly formatted response:
Copy code
json
{
    "results": [
        {
            "toolCallId": "wwXqTC5kZBqbBmInmrbS2I1T",
            "result": "I have some time slots available for Friday, January 31: \n\n  - 9:00 AM \n  - 12:30 PM \n  - 3:30 PM\n\nWhen would you like to book?"
        }
    ]
}
## 5. Check for Timezone Issues
One user resolved a similar issue by adjusting the timezone in their Make flow. Make sure your Make workflow is using the correct timezone settings. ## 6. Inspect Your Make Workflow Make sure your Make workflow is correctly parsing the data from Vapi and sending back the properly formatted response. Common issues include: - Accidental string conversion of arrays - Incorrect serialization of JSON objects - Missing or incorrect
toolCallId
values Is there anything specific about your webhook response format that you'd like me to help troubleshoot further? Sources: - [Vapi webhook response requirements](https://docs.vapi.ai/tools-calling) - [Troubleshooting webhook response issues in Vapi](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920) - [Common issues when integrating Make with Vapi](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335308574556946480)
k
checking if this is resolved/solved for you?
s
Hey @OgagaPengist , issue 1: could you share your webhook response format please? Issue 2: Did you create a tool to check the not available times of the connected calendar so the assistant is aware of these?
o
Yes @Sven the tool webhook works
No it's not
k
This issue is likely arises from incorrect webhook response formatting, missing data mappings, or a misconfigured assistant prompt, try check the JSON response from Make.com, ensure it’s correctly formatted, and aligning it with Vapi expectations to resolve the discrepancy.
o
I had toolcallerid instead of toolcallid... Is solved
@Sven thank you for always
k
Marking this ticket as Solved ✅