Skip to content
Docs

For each step: repeat steps for every item

Run the steps inside a loop once per item of a list, in order. Use item, index and count inside, and every item's result after the loop. Up to 100 items.

Updated

For each runs the steps inside it once per item of a list, in order.

How to set it up

  1. Add a For each step and pick the List from the data: for example a list in a webhook's body or in an HTTP request's response.
  2. Click + inside the loop to add the steps to repeat.
  3. Inside the loop, pick item (the current item and its fields), index (its position) and count (how many items) from the data.
  4. Steps added after the loop run once, when every item is done. There, pick results from the For each step: a list with the last step's output for every item, in order (an item a Filter stopped leaves an empty entry). items and count are there too.

One email for the whole list

To ask AI about every row and then send a single email: For each over the rows, with Ask AI inside; after the loop, a Send email step whose body uses results. In text, a list is written out as JSON; to put it into words, pass results to a second Ask AI step (“Turn these answers into one short summary”) or to a Code step and use what it returns.

Limits

  • Up to 100 items per run.
  • A run can hold at most 1,000 step runs in all, so a loop with more than about 10 steps inside fails before it reaches 100 items.
  • Items run one after another, in the order of the list.
  • results keeps up to about 1 MB. Past that, only the first items are kept and resultsTruncated is true.
  • The whole loop is still one run, however many items.