Webebhook request doesnt seem to work even though ...
# support
m
Hey everyone, I’m having trouble with a voice AI agent I created through Vapi. When I make the call, the agent doesn’t pick up on the dynamic variable (first name). Also, I’m trying to trigger a new custom webhook to capture reservation information, but it seems the original webhook request (in the first scenario) isn’t working, as the dynamic variable isn’t being recognized, and the new server URL from the custom webhook (in the separate scenario) isn’t capturing the data even though the server URL is in the JSON. The orginal GET JSON i used just didnt seem to have enough information, as this is what i was using in the first place which lead me to creating the JSON in the attached text file. Any ideas on what might be going wrong? Outcome:I just want the voice ai to say the dynamic variable (first name) in the intial message and want the data for reservation to be collected by the new custom webhook i created. Here is the JSON I've been using (as attached) Caller ID: f63c120f-e1ab-43ff-983c-404a7b86d1e1 #1211483291191083018 https://cdn.discordapp.com/attachments/1343862805463302184/1343862805790588928/message.txt?ex=67bed144&is=67bd7fc4&hm=01c077ab0cba05d1183f047e277afe2d45b485a7f51ef2fce405c6a178c6dbd0&
y
@Matty_gee the firstMessage is spoken when the customer calls up, at this point its not going to have the customer name
for the webhook i would remove the <> parts and see if that works? You can always test this via the vapi dashboard then use the API to GET that assistant to see what the exact payload needs to be
m
@yandos666 I've entered it into my google sheet which is the dynamic variable I've mapped within the JSON, so it should work. I'll have a look at taking out the <>
@yandos666 I've ran it through postman and used the GET assistant function and still get a 200. But still doesnt work, Ive had a support team member from vapi saying it looks like im not sending a response back from my end found in the call_ID, would you know anything around that. I've attached the postman outcome here too. https://cdn.discordapp.com/attachments/1343862805463302184/1344038156864851968/Screen_Shot_2025-02-26_at_7.04.43_am.png?ex=67bf7493&is=67be2313&hm=473ea84e9aeb21f8a4bb313e12d8a83abef1dfd93393c215e015a5b410668c5f&
s
@Matty_gee Do you still get blocked with this? I checked your assistant config, and there’s no first message. You’re not returning the correct response for tool call responses. You can check the correct format from here. https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context
@Matty_gee let me know if you require further help.
m
Thanks @Shubham Bajaj I'll give this a crack
Hi @Shubham Bajaj I've tried the following but still not luck, I'll attach the JSON i've used for you to have a look over
the server url is the webhook i want the webhook request to send the information to (just FYI)
s
@Matty_gee sorry for the delay, can you please share the call ID so I can take a look why webhooks are not reaching your server url.