Response from webhook
# support
k
hy guys. i made my own algorithmus for meeting planing with make.com and i give back possible dates as a json. i can see the json in the chat and in the logs when i call. i made a message which is triggerd when the webhook_call is done. how can i add the possible dates in this message? something like: "Available dates are: XXX" how can i do this? thanks markus
v
Hi Markus! 👋 I see you're trying to add dates from your webhook JSON response into a message in Make.com. While I can't provide exact step-by-step instructions for your specific Make.com interface, I can definitely help with the approach! Based on the information I found, here's how you can add those dates to your message: ### 1. Understanding Your Webhook Response Structure First, you need to understand the structure of your JSON response. Typical webhook responses in Make.com look like this:
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_choKmdslU31UJDabum0UVYIT",
      "result": [
        {
          "start_date": "2025-02-18",
          "end_date": "2025-02-21"
        }
      ]
    }
  ]
}
Or sometimes like this:
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_g4LBH87kQ7fmcKFbcVaKKlLV",
      "result": "These are all available slots: {\"2025-02-21\":[{\"start\":\"2025-02-21T08:30:00.000Z, 2025-02-21T08:45:00.000Z\"}]}"
    }
  ]
}
### 2. Accessing the Data in Make.com When your webhook is triggered, Make.com receives this JSON data. According to the [information I found](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1340737584309211136), "in Make.com I can see that the webhook response had a full **result**", which means your date data is available in the scenario. ### 3. Parsing the JSON and Adding to Your Message To add the dates to your message: 1. In your Make.com scenario, after the webhook module, add a JSON Parse module or use the built-in data mapping functions to extract the dates from the response. 2. If your dates are in the
result
field, you'll need to access them using the appropriate mapping. For example, if using the first JSON structure above, you might reference something like:
{{1.results[0].result[0].start_date}}
(the exact syntax depends on Make.com's current data mapping format).
3. For the second format example, you'd need to parse the nested JSON string within the
result
field first. 4. In your message module that's triggered after the webhook call, use the mapped variables to create your message text. For example:
Copy code
Available dates are: {{1.parsed_dates}}
According to the [information on dynamic variables](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335054553250533439), you can use variable placeholders to insert the data into your message. If you're having trouble with the JSON format, make sure the
Content-Type
header is set to
application/json
as mentioned in [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321). Would you like me to help clarify any specific part of this process? Sources: - [Discord thread about webhook responses](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1340737584309211136) - [Discord thread about JSON serialization](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321) - [Discord thread about dynamic variables](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335054553250533439) - [Discord thread with webhook response examples](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333753317490294836) - [Discord thread with date format examples](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342176467714572400)
k
this is my response. { "results": [ { "result": "[{\"terminvorschlag\":\"2025-04-14T08:00:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T08:15:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T08:30:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T08:45:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T09:00:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T09:15:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T09:30:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T09:45:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T10:00:00+02:00\"},{\"terminvorschlag\":\"2025-04-14T10:15:00+02:00\"}]", "tool_call_id": "call_YxPWICufB3LZXBW7WL6SHX4Y" } ] }
k
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
k
i cannot give you a call id because it was in chatmode
after the tool call i want it to do something with the jason answer: like saying possible dates are....
maybe another way of describing my problem: i am calling a webhook for a costum fuction and get a json with possible dates of a meeting back which my assistant should offer to the client. My problem is, that the assistand is doing nothing when the results are comming. it is just silllent. if i add a request complete message, i am not able to get the assistant to use the json. The funny thing is: If i ask the AI if he has now some dates for me, he has the information an will offer it to me. what am i doing wrong? JSON Return: { "results": [ { "result": "[{\"terminvorschlag\":\"2025-04-02T09:00:00+02:00\"},{\"terminvorschlag\":\"2025-04-02T10:30:00+02:00\"},{\"terminvorschlag\":\"2025-04-02T12:00:00+02:00\"},{\"terminvorschlag\":\"2025-04-02T13:30:00+02:00\"}]", "tool_call_id": "call_E68q9cn40Ttzq3tg4ookWItQ" } ] } https://cdn.discordapp.com/attachments/1356366481021206813/1356506159615578152/image.png?ex=67ecd04f&is=67eb7ecf&hm=bd296e67ac36c89a8272312d5eae9086d71571c654264b9208d39076b363e0fd&
ToolID: 9ab3b793-274f-4173-8944-c6b04b1919de AgentID:b5cb276f-db04-4516-a796-5cfbd5c8f780
k
Remove the "Request complete" message from your tool messages property array. if request complete message exists or selected in for your tool messages then VAPI uses this message to convey the tool call response, not your tool call result. That's why it doesn't get voiced out after the tool call is resolved.  just remove this request complete message, and then your tool call response will be used to generate the assistant's next response.
k
Hi, checking if this is resolved/solved for you?
b
I'm having the same issue! The caller needs to engage to get the tool result from the webhook response. Vapi agent just stays silent if not engaged about the result
k
Hey, Koiti, a gentle reminder for you to continue this thread.
BigmanAI, please create a new support ticket and share the call ID over there.