Waterflai
  • Welcome to Waterflai
  • Getting Started
    • Concepts
    • Quickstart
  • Providers
    • Providers Overview
    • Providers setup
    • AI models
    • Choose the right models
  • Knowledge
    • Knowledge Overview
    • Knowledge connectors
    • Knowledge collections
  • Studio
    • Studio Overview
    • Studio Builders
      • Light Builder
      • Dream Builder
      • Workflow Builder
      • Flow components (nodes)
        • Input Node
        • Output Node
        • LLM model Node
        • Multimodal LLM Node
        • Dall-E 2 (image generation) Node
        • Dall-E 3 (image generation) Node
        • Sora video generation Node
        • Text-to-Speech (TTS) Node
        • Speech-to-Text (STT) Node
        • OCR Node
        • Agent Node
        • Reranker Node
        • Knowledge retrieval Node
        • Vector store insert Node
        • Vector store record delete Node
        • Gitbook loader
        • Notion Database Node
        • Figma Node
        • Webpage scraper Node
        • Sitemap Scraper Node
        • API Request Node
        • Document metadata extraction Node
        • Document metadata update Node
        • Character splitter Node
        • HTML splitter Node
        • Markdown Splitter
        • Calculator tool Node
        • Text as tool Node
        • Knowledge retrieval tool Node
        • Conditional Node
        • Iteration loop Node
      • Testing and Debugging
    • Publishing
    • Integration with API
    • Embedding in website
  • Analytics
    • Analytics Overview
    • Dashboards
    • Logs
  • Administration
    • Organization users
    • Workspace
    • Security and permissions
  • Troubleshooting
    • Support
Powered by GitBook
On this page
  • Overview
  • Configuration
  • Best Practices
  • Common Issues
  1. Studio
  2. Studio Builders
  3. Flow components (nodes)

Iteration loop Node

Overview

The Iteration Loop Node enables repetitive execution of a sequence of nodes over a collection of items. It creates an isolated execution context for each iteration, making it ideal for processing arrays of data, batch operations, or repetitive tasks.

Usage cost: 0 credit

Configuration

Settings

  1. Iteration Control

    • Iterator*: Select array variable to iterate over

    • Maximum Iterations: Limit the number of iterations (0-10,000)

    • Output Collection: Select child node output to collect results

  2. Context Variables Available in child nodes during iteration:

    • current_item: Current item being processed

    • index: Current iteration index (number)

Output Ports

  • output (Any[]): Array of collected outputs from iterations

    • When Output Collection is specified

    • Maintains order of iterations

    • Preserves original data types

Best Practices

  1. Iterator Selection

    • Verify array data structure

    • Consider data volume

  2. Performance Management

    • Set appropriate iteration limits

    • Consider batch processing

    • Optimize child node operations

  3. Output Collection

    • Choose relevant outputs

    • Plan data aggregation

    • Consider memory usage

Common Issues

  • Memory overflow from large collections

  • Iteration limit exceeded

  • Missing iterator variable

PreviousConditional NodeNextTesting and Debugging

Last updated 3 months ago