Vapi tool Response.
# support
f
Hi, I have setup make.com as webhook services. But I did provide the response back to the vapi through tool but assitant says i'm not getting back anything from the tool as response. I did use two method though. It's actually a consultation booking system. In the log webhook I get the response back in vapi. What could be the reason? 1- Just Simply write the message "Slot get booked". 2- Second one is this {“results”: [{“toolCallId”: “{{1.message.toolCalls[].id}}”,“result”: “No available slots”}]}.
v
message has been deleted
@Farhan Hello! It's great to hear that you've set up a webhook service with make.com for your consultation booking system. If VAPI is not receiving the expected response, there could be a few reasons for this issue. 1. **Incorrect Response Format**: Ensure that the JSON response you're sending back to VAPI is correctly formatted. The response should match the expected JSON structure, including the correct
toolCallId
and
result
fields. 2. **Mismatched `toolCallId`**: The
toolCallId
in your response must match the
toolCallId
that was sent by VAPI in the initial request. If there's a mismatch, VAPI won't be able to associate the response with the correct tool call. 3. **Network Issues**: There could be network-related issues that are preventing the response from reaching VAPI. Make sure that there are no connectivity problems or misconfigurations in your webhook setup. 4. **Server-Side Errors**: If there's an error on the server that's processing the request, it might fail to send back a response. Check your server logs to see if there are any errors that need to be addressed. 5. **Timing Issues**: If your server takes too long to respond, VAPI might time out waiting for the response. Ensure that your server is responding within the expected time frame. For the two methods you mentioned: - For the simple message "Slot get booked," make sure it's wrapped in the correct JSON response format that VAPI expects. - For the second method, ensure that the
toolCallId
is being dynamically replaced with the actual ID from the incoming request. If you've checked all of these and the issue persists, please provide more details or logs so we can further investigate the problem. If you need immediate assistance, you can also reach out to support for more in-depth troubleshooting.
You can continue this conversation by mentioning me in the message.
j
{ "results" : [ { "toolCallId":"1. message.toolCalls[].id", "result":"Whatever you want to send back to the tool" } ] } This is the new format. You'd get tool id from the webhook that triggers this tool. And you map it from make step#1 and in the result you return whatever you want to send back either slot booked, slot unavaialbale and so on
s
@Farhan could you share: - The recent call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
f
Everything is described in this about the time the params and call id. Response I want is Appointment booked if not then Slot is already booked. https://cdn.discordapp.com/attachments/1325000684231196775/1325920814830325891/message.txt?ex=677d8b7c&is=677c39fc&hm=a77d687979ace75383f1105614979536ffb12877131eb8f2234dbb488d344508&
You can look at the object I share.
Toll call Id : call_xyDezyQxWM3qPIfCS0o5YChK Timestamp: 2025-01-04T07:40:38.314Z Response I expected: The slot is get booked depend upon the time slot availability.
s
@Farhan This is tool call id not call id. I need call id to debug the call which is unique to each call, 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.
f
I have another tool and assisstant for checking available slots the call ID is b8b257e1-5498-4cf4-9c5e-49113b2cd035
It say's no slot is available. But in response I say Two slots are available for testing purpose.
{“results”: [{“toolCallId”: “call_044lNFtALs9kxG8307uPIwX0”,“result”: “There are two slots available.”}]} Like that.
It's urgent please take a look on it.
e
THe same issue on my side, please have a look Started At 2025-01-10 21:29:26.547 b6eefc9d-7035-40a8-91b1-051bef507aa2 , I found out that it changes a structure and fields and not camelCased but instead they are with underscore, and there is no list, however I'm sure my backend pass in the format Fahran do as well. Please fix that, urgent on my side as well
@User
a
@Farhan How did you fix this issue? I am actually facing a similar issue.
j
So am I.
f
@Akshat Jain , @Javdani10 Just maintain the correct pattern which I follow to right up the object.
3 Views