Merging multiple OpenAI JSON results into one payload in Make

I’m working on a Make scenario where I use a Vapi “end of call” trigger, followed by an Iterator to:

  1. Loop through multiple items
  2. Search each item in a Google Sheet
  3. Generate a JSON block for each item using OpenAI (each call gives me a structured JSON)

So far, everything works — but here’s the catch:

I want to group all those individual OpenAI JSON outputs into a single object or array, and send it as one payload in a later HTTP request.

I tried using Array Aggregator or Text Aggregator — but it seems that they only work per iteration, and I still end up with separate outputs.


RING A WING :hamburger:.blueprint.json|attachment (149.0 KB)
json output.txt (631 Bytes)

1 Like

Hey @Reda_Laasri1 , the issue you’re experiencing is due to the fact that you used the iterator together with two search modules.

If you use the search modules, you don’t need to iterator for what you’re trying to build because the search modules work like an iterator.

this is how it looks my output, I need to search for each item and his addoins on the google sheets. I tested without the iterator, it search just one time
“items”: [
{
“item_name”: “Original Chicken Burger”,
“quantity”: 1,
“addOns”: [
{
“addon_name”: “Mayo”,
“quantity”: 1
}
]
},
{
“item_name”: “Kids Combo”,
“quantity”: 1,
“addOns”: [
{
“addon_name”: “Chocolate Milk”,
“quantity”: 1
},
{
“addon_name”: “Juice Box”,
“quantity”: 1
}
]
}
]

1 Like

Heyy @Reda_Laasri1

Can you try changing the source module to iterator and try again

Best,
@Prem_Patel