Book a Free Consultation →
Integrations · How-To Guide

How to Use Iterators & Aggregators.

Process line items, lists of attachments, and batch API responses cleanly without hitting rate limits or sending 10 separate emails.

By BotDevelopment Engineering Team Intermediate 6 min read Updated December 2026

Process line items, lists of attachments, and batch API responses cleanly without hitting rate limits or sending 10 separate emails. Follow this practical step-by-step blueprint to design, connect, and monitor the workflow reliably in production.

What You’ll Walk Away With

Clean batch-processing logic for multi-item orders, invoices, and summary digests.

Step-by-step

  1. Use an Iterator to split arrays into items

    When an order or API response contains an array of line items, iterate over each item to enrich or transform it.

    Tip: Filter out empty or canceled items early.

  2. Perform per-item lookups or calculations

    Look up SKU costs, tax rates, or user IDs for each individual item.

    Tip: Keep per-item steps lightweight.

  3. Recombine with an Array or Text Aggregator

    Bundle processed items back into one JSON array, HTML table, or CSV.

    Tip: Always set the aggregator’s source module to the Iterator.

  4. Send one consolidated output

    Dispatch a single summary email, Slack digest, or batch API call instead of spamming per item.

    Tip: Dramatically reduces API operations and noise.

Common questions

Can this workflow include human approval before final actions?

Yes. We recommend adding a human-in-the-loop review step whenever a workflow sends external client communications, updates financial records, or modifies sensitive data.

How do we prevent duplicate runs?

Use unique record IDs or idempotency keys and status flags so the same event is never processed twice.

Keep Reading

More guides from the same library.

Ready to Automate Your Business?

Tell us about your operations. We will help identify practical automation opportunities and recommend the right approach for your business.

Book a Free Consultation →