I am trying to use the iterator to submit multiple booking HTTP requests to Cal’s Booking API. I have set up a test playground scenario. In that scenario, the first JSON module is duplicate of the webhook output I receive from VAPI. I used JSON module to not burn through make/vapi operations.
The booking API for cal is a HTTP Post request. The final module is JSON but in the final version, I will actually be making this request using a request module. If you look in the final JSON module, you will see that I would like the iterator to push different names and corresponding times per separate request. Currently, it is dumping all names and times in a single request. I was hoping to have the iterator push the two arrays - names and decidedTimes so I could map them into the JSON for the HTTP Booking API Request. In my mind I would have 4 bundles:
Bundle 1:
Person 1 at 10
Person 2 at 10:15
Person 3 at 10:30
Person 4 at 10:45
Where each as submitted as a separate booking request.
Instead, it I get one request
Name: Person 1, Person 2, Person 3, Person 4
Time: 10, 10:15, 10:30, 10:45
I feel like I need to put a function into the iterator to work with both arrays properly but I’m currently at a loss. Praying to the make gods for help. Please go easy I’m a complete beginner.
I would like the following to be the experience.
Webhook comes in with the required JSON properties for booking. Each Name and requested time is sent separately through the HTTP booking request to CAL.com. Once all the names and times have been iterated, it will relay that information to the vapi webhook module.