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:
- Process multiple items sequentially.
- Look up each item within a Google Sheet.
- 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 .blueprint.json|attachment (149.0 KB)
json output.txt (631 Bytes)
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.
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
}
]
}
]
}