VAPI is not accepting my response from MAKE
# support
h
I am using the reponse format as per documentation, but VAPI is not accepting it, it actually tells me that the appointment was booked. Below is the sample response I am using: { "results": [ { "toolCallId": "call_29386782601936", "result": "The preferred appointment time is unavailable, I have the following timeslots", {"2025-01-14":{"slots":["2025-01-14T15:30:00-05:00","2025-01-14T17:00:00-05:00","2025-01-14T17:30:00-05:00"]},"traceId":"40acdbde-31f5-477b-baf1-b432fd04d9a1"} } ] }
v
You can continue this conversation by mentioning me in the message.
@HennieVee It seems there might be a formatting issue with the JSON response you've provided. JSON objects should consist of key-value pairs, and it looks like the "result" and the timeslot information are not properly structured. Let's correct that. Here's how the response should be formatted:
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_29386782601936",
      "result": {
        "message": "The preferred appointment time is unavailable, I have the following timeslots",
        "slots": {
          "2025-01-14": [
            "2025-01-14T15:30:00-05:00",
            "2025-01-14T17:00:00-05:00",
            "2025-01-14T17:30:00-05:00"
          ]
        },
        "traceId": "40acdbde-31f5-477b-baf1-b432fd04d9a1"
      }
    }
  ]
}
Make sure that the "result" is a single JSON object with a "message" key for the text and other keys for additional structured data. Once you've corrected the format, try sending the response to VAPI again. If you continue to experience issues, please provide more details or ask support for more info on this.
h
I made the change, but VAPI still says it is having difficulty scheduling my call and ignores the response it receives: { "results": [ { "toolCallId": "call_Ge2eR4LZm6e22RF3w1gXGs5u", "result": { "message": "The preferred appointment time is unavailable, I have the following timeslots", "slots": { "2025-01-14": [ "2025-01-14T15:30:00-05:00", "2025-01-14T17:00:00-05:00", "2025-01-14T17:30:00-05:00" ] }, "traceId": "40acdbde-31f5-477b-baf1-b432fd04d9a1" } } ] }
I did another test with a very basic response: { "results": [ { "toolCallId": "call_KEhwN0E8gdUqpRpOd1qe8H6P", "result": "That timeslot is not available" } ] } , but this also is not working below is the section from the Vapi log { "role": "tool_call_result", "time": 1736569084916, "seconds_from_start": 27.777, "name": "Make_ghlBooking", "result": "No result returned.", "tool_call_id": "call_KEhwN0E8gdUqpRpOd1qe8H6P" }, { "role": "bot", "message": "It seems there was an issue with scheduling your appointment. Can you please confirm if you'd like to proceed with Tuesday at 2 PM eastern?", "time": 1736569088367, "end_time": 1736569095707, "seconds_from_start": 31.32, "duration": 7000, "source": "" } ],
Some more testing, only a positive result seems to be interpreted by VAPI, all other variations seems to give the same message as the last example, is this a BUG?
@User and @Alozie | AI Voice Designer in his video gave me some insight as to the expected format, experiencing with a couplr scenarios I foung the following worked for me { "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" } ] } I ended up reformatting the output of the timeslots to match above and now it works!!
a
happy it helped
j
Awesome. Glad it worked. If ai is going to spit out the info as it is you can use the openai node to transform the raw data like i mentioned
w
I am also facing the same 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" } ] }
h
Did something change as this is nolonger working { "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" } ] }
a
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
HeyHennieVee Thank you for creating the ticket! A member of our team will reach out to you shortly.
s
@HennieVee Apologies for the late response, can you please share your recent call ID so I can take a look.
h
call_7h5BJG4Crch3C9Wd9gpxcgNs
s
@HennieVee This is tool call ID, not the call ID. You can get the call id from Vapi dashboard:- 1. Goto Vapi Dashboard 2. Navigate to left side of dashboard (navbar) and look for logs > calls 3. Copy the Id under call ID. * Make sure to share the recent call's call id.*
h
507cc60f-bcdc-40e8-ab18-0779e0e17ea3
s
@HennieVee Your server url is returning 400, means according to your server-url tools care incorrect and can you please check in your logs why it's returning 400? https://cdn.discordapp.com/attachments/1327481613004701779/1334853203308580954/Screenshot_2025-01-31_at_5.19.01_PM.png?ex=679e0a6c&is=679cb8ec&hm=d0b7f8172156157ba9c6018eeea68d34fe41739e26d67e6d53247c2394defffd&
h
I am sending a 400, see below: [ { "body": "{\n \"results\": [\n {\n \"toolCallId\": \"call_7h5BJG4Crch3C9Wd9gpxcgNs\",\n \"result\": \"The following timeslots are available: 2025-01-31T14:00:00-05:00,2025-01-31T14:30:00-05:00,2025-01-31T15:00:00-05:00,2025-01-31T15:30:00-05:00,2025-01-31T16:00:00-05:00,2025-01-31T16:30:00-05:00,2025-01-31T17:00:00-05:00,2025-01-31T17:30:00-05:00\"\n }\n ]\n}", "status": 400, "headers": [] } ]
from make.com
s
Please ensure that a status code of 200 is always sent. A status code of 400 indicates a bad request. In the event of an error, kindly send a 200 status code and include the error message within the result property.
h
Thank you, that solved the issue.
2 Views