
Core Features
- Array Source Selection: Choose the array or list from any previous node whose items should be processed.
- FOR EACH Branch: Define actions or sub-flows to execute for every item in the selected array.
- Aggregation Modes: Gather the results from each iteration as an array, or choose another aggregation strategy.
- Maximum Iterations: Control upper limits (default: 1000) to prevent infinite or runaway loops.
- RESULTS Branch: Add nodes to process after all iterations have finished, using the aggregated data.
How It Works
- Configure the Array Source: Click “Select Array Source” to pick the output (list/array) from a previous step.
- Set Aggregation Mode: Decide how results from each item should be collected (commonly as an array).
- Define Iteration Logic (FOR EACH): Attach nodes that process each element (e.g., run analysis, transform data, make API calls).
- Safety with Maximum Iterations: Enter a safeguard value (default: 1000) so your loop cannot run forever by mistake.
- Post-Loop Processing (RESULTS): After all items are processed, continue your workflow with the aggregated output.

Example Use Case
Scenario: Bulk Email Personalization
- Input Node provides an array of user profiles.
- Loop Node iterates over each profile.
- In the FOR EACH branch, connect a Template or LLM Node to personalize an email for each user.
- Once all emails are generated, the RESULTS branch sends the full batch to an Email Tool Node for delivery.
Diagram
Best Practices
- Ensure Array Source Validity: Always confirm the selected array is not empty or malformed.
- Set Maximum Iterations: Prevent accidental infinite loops with an appropriate safety limit.
- Aggregate With Care: Choose aggregation mode based on how downstream nodes expect the data.
- Document Loop Purpose: Use node description for clarity and maintainability, especially in complex flows.