Skip to content
Combining multiple ...
 
Notifications
Clear all

Combining multiple OpenAI JSON results into a single payload in callin.io

4 Posts
3 Users
0 Reactions
6 Views
Reda_Laasri1
(@reda_laasri1)
Posts: 2
New Member
Topic starter
 

I'm setting up a callin.io scenario that begins with a callin.io “end of call” trigger. This is followed by an Iterator module to:

  1. Process multiple items sequentially.
  2. Look up each item within a Google Sheet.
  3. Generate a JSON block for every item using OpenAI (each request yields a structured JSON).

So far, the workflow is functioning correctly, but here's the challenge:

I need to consolidate all these individual OpenAI JSON outputs into a single object or array and then transmit it as one payload in a subsequent HTTP request.

I've experimented with the Array Aggregator and Text Aggregator modules, but it appears they operate on a per-iteration basis, and I'm still receiving separate outputs.

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

 
Posted : 18/07/2025 11:49 pm
Greatness_me
(@greatness_me)
Posts: 8
Active Member
 

Hello, the issue you're encountering stems from using the iterator in conjunction with two search modules.

When you utilize search modules, an iterator becomes redundant for your current setup, as the search modules inherently function as iterators.

 
Posted : 19/07/2025 11:18 am
Reda_Laasri1
(@reda_laasri1)
Posts: 2
New Member
Topic starter
 

This is how my output appears. I need to search for each item and its add-ons in Google Sheets. I tested it without the iterator, and it only searched once.

json
{
"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
}
]
}
]
}

 
Posted : 19/07/2025 6:22 pm
Prem_Patel
(@prem_patel)
Posts: 3
Active Member
 

Hello,

Could you please try switching the source module to an iterator and see if that resolves the issue?

Best regards,

 
Posted : 20/07/2025 5:19 am
Share: