Small BusinessReal EstateFinanceMarketingLegalOperationsSalesTemplatesPricingDocs
Get started

Step Guide: Collect

Flow Control

Gather iteration results into an array

Overview

The Collect step closes a For Each loop by waiting for all iterations to complete, then aggregating results into a single list array with a list_count and fail_count. The output shape matches import step output, making it directly compatible with CSV Export and Google Sheets Export steps.

When to Use

  • Aggregate processed results from a For Each loop into an exportable array
  • Collect AI-generated content from each iteration into a single batch
  • Gather enriched data from per-item lookups into one dataset
  • Build a results array to export as CSV or Google Sheets

How It Works

Collect acts as a barrier. It waits until every iteration of the paired For Each loop has completed. It then aggregates the results using field mappings to build each collected item, writing a list array, list_count, and fail_count to its output. The output field set is locked. The input slot mirrors the output of the last body step in the loop. When used after a loop, place export steps (CSV Export, Google Sheets Export) after Collect to output the aggregated data.

Tips
  • Always pair with a For Each step. Collect closes the loop
  • The output shape (list + list_count) matches import step output, so export steps connect naturally
  • Place CSV Export or Google Sheets Export after Collect to export the aggregated results
  • The Collect step waits for ALL iterations before proceeding. Partial results are not available