Not recieving / processing webhook response
# support
j
Hi, I'm working on a basic Tool flow in Make. When a user mentions their email address, it sends it to Make, and right now it should just be making the assistant respond "Is EMAIL, your correct email"? Each step of the process is processing correctly in Make, however the assistant never responds as intended, and doesn't seem like it is getting the response of the webhook to process. Here is an added picture of what the response looks like. It is using the call ID that is in the webhook https://cdn.discordapp.com/attachments/1247680248716329001/1247680249400004778/image.png?ex=6660e848&is=665f96c8&hm=c10229417bd46055689e04be605009d4e28202c78335689250ea0dc6630261bd&
v
Hi @J., I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Glossary]() * [Tools Calling]() * [Web Calling]() * [Server Events]() -----------------------------
### Answer It sounds like you are facing issues with webhook responses not being processed correctly by the assistant. Here are a few steps you might consider to troubleshoot and ensure that the webhook is properly configured and the responses are being caught by Vapi: 1. Verify Webhook URL and Server Response: Ensure that the webhook URL is correctly pointed to from Make and that the server is responding with the correct JSON structure expected by Vapi. The response should strictly match the expected format, including correct use of
toolCallId
and
result
fields as discussed in the documentation [(1)]() . 2. Check JSON Response Format: The JSON response from your server should look similar to this:
Copy code
json
   {
       "results": [
           {
               "toolCallId": "call_VaJOd8ZeZgWCEHDYomyCPfwN",
               "result": "Is {email}, your correct email?"
           }
       ]
   }
Make sure that the
toolCallId
matches the one sent by Vapi and that the
result
field contains the correct message you want the assistant to say . 3. Inspect Network and Logs: Check the network logs to see if there are any requests coming in from Vapi and going out to your server. This can help you identify if the requests are being made successfully and if any errors are being returned. 4. Review Assistant Configuration: Ensure that your assistant is configured to handle webhook responses correctly. This involves setting up the assistant with the proper permissions and configurations to listen for and process incoming webhook data. If you continue to face issues, consider simplifying the response or testing with static responses to isolate the problem. Make sure that the interaction flow is set up as per the guidelines in the Vapi documentation, which may help in identifying any discrepancies in the setup or response handling . These steps should help you in diagnosing and fixing the issue with webhook responses in your Vapi integration.
Got it. Tagging @User for additional help.
j
No matter what I try, I don't seem to be able to get a response from the Webhook
s
Use userEmail, don't use the user.email naming convention. Please provide me with some call_id so that I can check the logs.
j
No luck by changing to userEmail. Here are a bunch of logs: cbaca04e-b10f-4166-90c5-fa6472f5998d 03d9d5d9-4f3f-4e8e-ad29-6831e2f5f2ef bd1bdb6d-230c-4c62-bb87-d79ce286a98b 7b14b405-7b65-4ba8-8c2e-c71f4a319062 b5517ea1-cd52-4b23-9be1-08ccaac7f2c6 The tool is working correctly up until it's meant to return, and I just can't figure out what it is
s
@J. can you join vapi office hour?
j
In there now 🙂
s
Okay.
j
Functions still don't seem to be getting a webhook return, here's a call ID for it: 7fac7690-fe8c-49c8-ae95-55282e8a1b8c
s
did you added function in server message?
s
@J. Let's do one thing let's get on meet and I will help to you over there to make this work.
85 Views