Loop Node
The Loop Node iterates over arrays of data, processing each item through a sub-workflow.
Overview
Use Loop Nodes to:
- Process lists of items
- Batch operations
- Iterate over search results
- Handle multiple inputs
Configuration
Input Array
The array to iterate over:
{{input.items}}
Loop Variable Name
Name for the current item (default: item).
Max Iterations
Limit iterations for safety (optional).
Inside the Loop
Each iteration has access to:
{{loop.item}}- Current item{{loop.index}}- Current index (0-based){{loop.total}}- Total number of items
Output
Returns an array of results from each iteration.
Example Use Cases
- Process each document in a list
- Send multiple API requests
- Generate content for each item in a dataset