make.com
# support
w
I am facing the issue as Vapi is not getting the response back from make. JSON returned:{ "results": [ { "toolCallId": "call_EPeJcpGomST5L4XEwR85tCy4", "result": "Unfortunately, that time isn’t available. How about one of these instead? 9:00 AM 12:30 PM 2:30 PM"}] }
a
Heywargod Thank you for creating the ticket! A member of our team will reach out to you shortly.
v
@wargod It seems like there might be an issue with the format of the JSON response you're receiving from the server. The
result
field contains a string with line breaks, which is not standard JSON formatting. JSON strings should not contain unescaped line breaks. To resolve this, you should ensure that the server encodes the response correctly. Line breaks within strings should be represented by the escape sequence
\n
. Here's how the JSON should be formatted:
Copy code
json
{
    "results": [
        {
            "toolCallId": "call_EPeJcpGomST5L4XEwR85tCy4",
            "result": "Unfortunately, that time isn’t available. How about one of these instead?\n9:00 AM\n12:30 PM\n2:30 PM"
        }
    ]
}
Please check the server-side code responsible for generating the JSON response and make sure it correctly escapes special characters like line breaks. If you need further assistance with this, please let me know!
You can continue this conversation by mentioning me in the message.
w
Yes, but it's still not working!
@Vapi Its still not working.
v
@wargod I'm sorry to hear that you're still experiencing issues. To assist you further, I'll need some more information about the problem. Could you please provide me with the following details? 1. What specific action or command are you trying to execute with VAPI that is not working? 2. Are there any error messages or codes being returned by VAPI? 3. Have you made any recent changes to your system or code that might have affected the VAPI integration? Once I have more context, I'll do my best to help you resolve the issue. If the problem is urgent or complex, it might be best to reach out to our support team for more in-depth assistance.
p
In the tool call id, I don't think you should add the "call" to the id
You just add the id as copied but not the prefix 'call_'
w
the "call_" is in vapi id by default.
p
Can you send me the screenshot?
Are you using the webhook response for returning this to vapi from make?
@Vapi I am using tool named _checkAvailability or _findAvailability, Both are returning output in make.com but vapi agent is not picking up the response and says that not available or error. In Vapi logs, I can see that their is response from make with status 200. But, agent is not speaking the response. CODE: { "results": [ { "toolCallId": "call_wwXqTC5kZBqbBmInmrbS2I1T", "result": " { "result": "I have some time slots available for Friday, January 31: \n\n - 9:00 AM \n - 12:30 PM \n - 3:30 PM" } When would you like to book?" } ] }
v
@wargod It looks like there's an issue with the JSON response format you're sending back to VAPI from Make. The
result
field appears to be a string containing JSON data, which is not correct. Instead, the
result
field should directly contain the response data as a string without nested JSON. Here's how the corrected JSON response should look:
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?"
        }
    ]
}
Please make the following changes: 1. Remove the nested JSON from the
result
field. 2. Ensure the
result
field is a properly formatted string. 3. Remove the prefix "call_" from the
toolCallId
if it's not part of the actual ID you received from VAPI. After making these changes, try sending the response again. If the VAPI agent is still not speaking the response, please let me know, and we can investigate further.
w
@VapiIts still not working. and "call_" is part of toolCallID. CODE: "results": [ { "toolCallId": "call_EPeJcpGomST5L4XEwR85tCy4", "result": "Unfortunately, that time isn’t available. How about one of these instead? 9:00 AM, 12:00 PM, 3:15 PM" } ] }
v
@wargod Thank you for providing the updated code. The JSON format looks correct, and if "call_" is part of the
toolCallId
, then it should be included as you have done. If the response is still not being picked up by the VAPI agent despite the status 200 in the logs, it's possible that there might be an issue with how the VAPI agent is processing the response or an issue with the integration setup. Here are a few steps you can take to troubleshoot the issue: 1. Double-check that the
toolCallId
matches the ID expected by VAPI. 2. Ensure that there are no extra spaces or formatting issues in the JSON response. 3. Verify that the content-type of the response is set to
application/json
. 4. Review the VAPI documentation to confirm that the response structure aligns with the expected format. 5. Check if there are any additional logs or error messages that can provide more insight into why the VAPI agent is not speaking the response. If after these steps the issue persists, it may be best to reach out to VAPI support for further assistance. They will have the necessary tools and access to help diagnose and resolve the issue more effectively.
p
Can you screenshot the webhook response then?
p
Not the result, the configuration
h
@Pen 💻 I am also having the same problem, this is my response which worked previously, something seems to have changed on the VAPI side { "results": [ { "toolCallId": "call_lHZzsNi9vjMGtIdVZ8KUIIa2", "result": "The following timeslots are available: 2025-01-14T15:30:00-05:00,2025-01-14T17:00:00-05:00,2025-01-14T17:30:00-05:00" } ] }
p
You don't need to add the toolcall id anymore since it is the same webhook and it is running presently...
@HennieVee @wargod Set it up like this
Just the results alone, don't add the toolcall id and all... The webhook response is setup to respond to the webhook at real time so you don't need the id
h
I updated it now the response is { "results": [ { "result": "The following timeslots are available: 2025-01-31T14:00:00-05:00,2025-01-31T14:30:00-05:00,2025-01-31T15:30:00-05:00,2025-01-31T16:30:00-05:00,2025-01-31T17:00:00-05:00,2025-01-31T17:30:00-05:00" } ] } However it is still not working, in VAPI log I see { "role": "tool", "tool_call_id": "call_vc3aXU9FTM2yJl4c9hFuWZR8", "content": "No result returned." },
p
Copy the code, send it to chatgpt to format to the right JSON format
I mean like this { "result": "The following timeslots are available: 2025-01-31T14:00:00-05:00,2025-01-31T14:30:00-05:00,2025-01-31T15:30:00-05:00,2025-01-31T16:30:00-05:00,2025-01-31T17:00:00-05:00,2025-01-31T17:30:00-05:00" }
h
got it, I just removed the extra results, now I have { "result": "The following timeslots are available: 2025-01-31T14:00:00-05:00,2025-01-31T14:30:00-05:00,2025-01-31T15:30:00-05:00,2025-01-31T16:30:00-05:00,2025-01-31T17:00:00-05:00,2025-01-31T17:30:00-05:00" }
but unfortunately it is still not working
in your screenshot you had results (prural), I even tried that but no luck
p
You tested from vapi and the agent didn't give results?
h
correct
p
Did you add in the prompt for the assistant to relay the available date if the time isn't available?
h
in make or vapi?
p
In the vapi prompt.
h
no, let me do that
didn't think it was needed
p
It might be needed, I always add it.
You just prompt like, "Once the caller has provided their available date, checkAvailability and if the time is not available, provide the available date"
h
which model are you using?
p
Gpt4o, sometimes mini
h
have you tested this recently? mine was working but stopped without me changing anything
w
I have it, but still their is no response from vapi
p
And the make webhook was triggered?
w
For me as well somthings were working but now nothing
yes
h
Vapi must have changed something
p
Yeah, that should be the only explanation
h
could you check if it still works for you?
p
I can't test RN, not at my desktop... Will give you feedback once I do.
s
@wargod can you share the call ID so I can take a look?
call id : 213befc1-6ce0-4307-8d31-dc95af3ef2b6
s
@wargod
your_server_response
🔵 23:52:11:256 Server Message Successful. (https://hook.us2.make.com/s78km). Response: { "result": "I have some time slots available for Friday, January 31: - 9:00 AM - 12:00 PM - 1:30 PM When would you like to book?" } 🔵 23:51:49:144 Server Message Successful. (https://hook.us2.make.com/yohh). Response: Accepted
expecte_response_format
Copy code
json
{
    "results": [
        {
            "toolCallId": "X",
            "result": "Y"
        }
    ]
}
expected_response_from_your_server
Copy code
json
{
    "results": [
        {
            "toolCallId": "X",
            "result": "I have some time slots available for Friday, January 31: - 9:00 AM - 12:00 PM- 1:30 PM When would you like to book?"
        }
    ]
}
NOTE: Make sure to return the result as single paragraph without any line breaks or new lines.
w
I was asked to remove tool id and try. The origional code was { "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?" } ] }
s
@wargod I do not recall suggesting this change, nor do I believe I would have. However, I acknowledge that the current format is indeed correct.
w
so is their any solution?
p
Is it still not working yet?
w
unfortunately no.
h
same here. I return something like this and it doesn't work
Copy code
{
  "results": [
    {
      "toolCallId": "X",
      "result": "some results with no line breaks"
    }
  ]
}
w
Thanks. The issue has been solved. It was a JSON error.
@HennieVee @Hamid 1. Make sure that JSON is proper format in output. 2.Make sure to return the result as single paragraph without any line breaks or new lines.
3 Views