Hi, I currently have an issue where Vapi doesn’t respond after a webhook response. The agent essentially freezes until I ask if it is there. I had this working yesterday (with no hiccups), but today it is not working properly for whatever reason. Has anybody had any issues like this before? If so, how did you fix it?
Below is the scenario as well as a recording of what is going on.
1 Like
The first thing I’d check would be that you’re sending the correct info back to Vapi in the Webhook Response
body.
If that all looks good then I’d suggest raising a support ticket with Vapi directly.
2 Likes
Here is the output from the JSON module that the webhook is receiving.
1 Like
Can you share a screenshot of the Webhook Response parameters?
1 Like
Is that in one of the first pictures in this thread? This is what I have in the module.
1 Like
Ah, I think I’ve spotted it.
Should the Source Module
parameter for your JSON Aggregator be the Iterator?
The clue is in the fact that your JSON Aggregator is outputting multiple bundles - if I understand correctly, you want just a single bundle containing an array, which contains multiple result objects.
1 Like
That would sound like what I need. What would I need to fix this?
1 Like
Actually the source module for JSON is Tools. Source module for Tools is Iterator
1 Like
I have tried adding in an array aggregator and that does not work either.
1 Like
In the content of an Aggregator, the Source
is specifically the object that’s creating the individual bundles that you want to aggregate.
In your original screenshot, the Source
of your Aggregate to JSON
module is the Set a Variable
module - which only ever outputs one bundle. As written, your scenario will be running the Aggregate to JSON module for every single bundle produced by your Iterator
- which doesn’t make sense. It’s then sending a Webhook response for every one of those bundles.
Could you try setting the source of the Aggregate to JSON
module to be the Iterator
?
1 Like