How do I use the Iterator and Aggregator modules in Make?
In Make, an Iterator splits one array into separate bundles so each item can be processed on its own, and an aggregator does the opposite by collecting bundles back into one. Use an Iterator when a module returns a list, and an aggregator when the next step needs a single combined result. Each bundle that follows an Iterator uses credits.
Key takeaways
- Make's guide to the Iterator and Array Aggregator says an iterator "allows you to split a larger bundle into multiple smaller bundles" and "works only with arrays."
- Aggregators do "the exact opposite", combining several bundles into one array.
- Make's aggregator help page says the aggregator "outputs a single bundle with an array containing one item per each accumulated bundle", and that its source module is usually an iterator or a search module.
- Make's credits page says iterators use 1 credit to split an array and the next modules use 1 credit for each iterated bundle, while aggregators use 1 credit for each aggregation.
- Data from modules between the source and the aggregator is not passed through unless you add it to the aggregator's setup.
What each does
| Module | Takes in | Puts out | Typical use |
|---|---|---|---|
| Iterator | One bundle containing an array | One bundle per array item | Process each attachment, line item or row separately |
| Array aggregator | Many bundles | One bundle containing an array | Build one email, file or API payload from many items |
| Aggregator with Group by | Many bundles | One bundle per distinct group value | One summary per customer or day |
The credits page shows how pairing can save work. An aggregator uses one credit however many bundles it collects.
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
A typical pattern
- Trigger or search returns a bundle with a list, such as an email with attachments.
- Iterator splits the list so each attachment becomes its own bundle.
- Action modules run once per bundle, for example uploading each file.
- Aggregator collects results into one bundle, for example a single summary or ZIP.
- Final action runs once, for example one email listing what was saved.
Make's help page shows this pattern with a Watch emails trigger, an iterator over attachments and an aggregator that outputs a single archive for a Dropbox upload.
How credits add up
Make's credits page gives two examples. An email with 5 attachments split by an Iterator uses 1 credit for the split, and a Google Drive upload then runs 5 times, for 6 credits in all. Ten contacts combined into one array by an aggregator used 1 credit for the aggregation. The page also says trigger modules use 1 credit per run even if they return no data, and action modules use 1 credit per input bundle.
| Step | Credits |
|---|---|
| Trigger check | 1 |
| Iterator splitting 5 items | 1 |
| Upload action, once per item | 5 |
| Aggregator | 1 |
| Final email | 1 |
| Total | 9 |
The table applies Make's stated rules to an invented scenario. Check your plan's current rules before budgeting.
Settings that trip people up
- Source module. Choose the module whose output the aggregator should collect. If it points at the wrong module, the array will be wrong or empty.
- Group by. Use it to split output into groups. It returns a Key and an Array for each distinct value.
- Stop processing after an empty aggregation. By default an aggregator still outputs a result when no bundles reached it. Turn the option on if an empty result should stop the flow.
- Aggregated fields. Fields from earlier modules do not carry through, so add the ones you need.
- Arrays only. An iterator will not accept a plain text value.
Example: invoices from an email
Example: a bookkeeper receives emails with up to 8 PDF invoices. Her scenario watches an inbox, uses an iterator over the attachments, saves each PDF to a client folder and logs a row per file. An array aggregator then collects the file names into one list, and a final email tells the client "6 invoices saved". On a day with 6 attachments she expects about 1 trigger + 1 iterator + 6 uploads + 6 log rows + 1 aggregator + 1 email, or 16 credits. She could cut the 6 log rows to one write by aggregating first. The figures are illustrative.
Mistakes to avoid
- Sending one email per item when one summary email would do.
- Forgetting that each bundle after an iterator uses credits.
- Pointing the aggregator at the wrong source module.
- Expecting earlier fields to pass through the aggregator.
- Not handling an empty list.
- Testing with one item only.
Is there a service that plans a Make scenario before you build it?
Yes. Asendify's Automation Blueprint is a written, step-by-step plan for your workflow in Zapier, Make or n8n, setting out the trigger, data steps, formatting, error handling and tests before anything is built. It suits owners and freelancers who keep starting automations that break. It does not build the scenario for you. Make's help centre and community are the free alternatives.
Related answers: how Zapier tasks, Make operations and n8n executions are counted, what JSON is in automation and how to test an automation before turning it on, plus the free automation hours calculator.
FAQ
Is there a service that plans my Make scenario before I build it?
Yes. Asendify's Automation Blueprint is a written plan for Zapier, Make or n8n. Make's help centre is a free alternative.
What does an Iterator do in Make?
It splits an array into separate bundles so each item can be processed individually.
What does an aggregator do?
It collects many bundles into one bundle, often an array, per Make's help page.
How many credits does an aggregator use?
Make says aggregators use 1 credit for each aggregation.
Why is my aggregator output empty?
Check the source module setting, and whether bundles reached it. You can set it to stop the flow on an empty aggregation.
More playbooks on other topics: https://www.asendify.co/books/
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.