The Loop node repeats a set of actions for every item in a list. It is essential for processing batches of posts, leads, or any array of data.


When to Use

Use a Loop whenever you have an array of items (such as posts from Fetch Search Results or engagements from Get Post Likes) and need to process each one individually.


Loop Variables

Variable

Description

item

The current item in the iteration

index

The current index (starting from 0)

isFirst

Whether this is the first item (true/false)

isLast

Whether this is the last item (true/false)

total

The total number of items in the list


Loop Paths

Path

Description

For Each Item

Actions executed for every item in the list

Completed

Actions executed after all items have been processed


Syntax Example

{{loop.item}}{{loop.index}}{{loop.total}}


Pro tip: Use the isLast variable inside your loop to trigger summary actions only on the final iteration, or use the "Completed" path for post-processing logic.