Skip to main content

Overview

The For Loop Node allows you to iterate over arrays or lists of data and perform the same operation on each item. Perfect for batch processing, sending multiple emails, creating multiple records, or any scenario where you need to repeat an action for each item in a collection.

Required Configuration

  • Label - Display name for the node
  • Loop Data Source - The array/list to iterate over:
    • From args - Use data from previous node (most common)
    • Fixed - Static array you define
  • Loop Variable Name - Name to reference current item in loop (default: “item”)

Optional Configuration

  • Requires Auth - Whether this node needs user authentication (default: false)
  • Max Iterations - Limit the number of loop iterations for safety
  • Batch Size - Process items in batches rather than one by one

How It Works

The For Loop node takes an array from the previous node and executes the connected workflow for each item in the array. Each iteration provides:
  • Current item data - Accessible via your loop variable name
  • Loop index - The current position in the array
  • Loop context - Information about the iteration
The loop executes the connected nodes for each item, then collects all results when complete.

Data Access in Loops

Inside the loop, each iteration receives data based on your Loop Variable Name configuration:
  • __full_result__ - Each iteration receives one complete item from the array
  • Custom variable name - Extract specific fields from each array item (e.g., “post”, “user”, “item”)
The connected nodes in the loop can access this data using the standard ${args.fieldName} pattern or ${__full_result__} to reference the current iteration’s data.

Connections

For Loop nodes have two output handles for different purposes: Input from: Any node type that produces array data Loop Handle (Item Processing): Connects to any node type to process individual items Done Handle (Result Aggregation): Connects to any node type to process all collected results

Common Use Cases

Batch Data Processing - Create or update multiple database records from a list API Integration - Make individual API calls for each item in a dataset Content Generation - Generate content for multiple items using AI File Processing - Process multiple files or documents User Notifications - Send notifications to multiple users