LogoLogo
  • Introduction
    • What Is an Agent Application?
    • Core Concepts
    • Getting Started
  • GLIK Cloud
    • Getting Started
      • GLIK Cloud vs. GLIK Studio
    • Prompt Orchestration Interface
    • What Is a Workflow?
    • Workflow Editor
    • App Types (Overview)
    • Workspaces & Permissions
    • Enterprise Readiness & Compatibility
    • Security & Data Handling
  • Enterprise SaaS
    • Expense Policy Decision Engine
    • Compliance & Audit Automation
    • Compliance Advisor Copilot
  • App Types
    • Overview
    • Chatbot
    • Agent
    • Advanced Chat
    • Workflow
  • Templates
    • Overview
    • Policy Automation
      • Overview
        • Expense Policy Validator — Summary Sheet
        • Enterprise Policy Intelligence
      • Expense Policy Decision Engine
        • Expense Policy Decision Engine (Starter)
          • Practice Exercises
        • Expense Policy Decision Engine (Threshold Memory)
          • Practice Exercises
          • Threshold Agent Response Tuning Exercises
        • Expense Policy Decision Engine (Policy API Integration)
          • Practice Exercises
        • Expense Policy Decision Engine (Escalation & Conflict Resolution)
        • Expense Policy Decision Engine (Audit & Logging)
    • Compliance and Audit Automation
      • KYC/AML Review Copilot
        • Learning Track
      • Compliance Copilot – MiCA Reporting
        • Workflow Phases
        • Block-by-Block Guide
    • Compliance Advisors
      • Global Control Copilot – Cross-Jurisdiction Policy Interpreter
        • Input Combinations & Workflow Outcomes
        • Reference Input Payloads
        • Policy Retrieval via Input Routing
        • Input Logic & Routing Behavior
        • Predefined Policy Thresholds
    • Knowledge Systems
      • Overview
      • Compliance SOP Agent
    • Process Automation
    • Task Resolution Agents
      • Why Agentify Task Resolution
    • Work Coordination Agents
      • Escrow Agent Orchestration
    • Embedded Operational Copilots
    • Expense & ERP Agents
      • ERP Vendor AI Copilots and Agents
      • Custody Approval Workflow for Token Issuance
    • Inventory & Logistics Agents
    • Sales & Forecasting Agents
    • Plugin-Based Agent Platforms
  • Marketplace
    • Overview
    • Publishing Templates
  • System Architecture
    • Overview
    • Blocks & Nodes
      • Utilities
        • Start Block
        • End Node
        • HTTP Request
        • List Operator
      • Classifier Nodes
        • Question Classifier
      • Logic Blocks
        • IF/ELSE Branch
        • Iteration
        • Loop
      • Transform Blocks
        • Variable Assigner
        • Variable Aggregator
        • Parameter Extractor
        • Data Enrichment
        • Prompt Template
        • Code
      • Input & Extraction
        • Doc Extractor
        • Knowledge Retrieval
        • LLM Block
          • LLM Reasoning
          • Fallback to LLM Reasoning
        • Tool Node
        • Agent
        • Answer
    • GLIK Knowledge
      • Creating & Managing Knowledge
      • GLIK Knowledge Retrieval
      • Writing to Knowledge
      • Scoped Memory & Access Control
      • Injection & Variable Binding
      • Performance & Limits
    • Execution Model
      • Workflow Architecture
      • Flow Engine
      • Node Lifecycle
      • Protocol Compatibility & Schema Interoperability
      • Input Binding & Value Resolution
    • Memory & Variable Scope
      • Conversation Variables
      • Memory Layers (User, App, Org)
      • Memory Slot Injection
      • Memory Retention Policy
    • Decision Routing
      • Conditional Logic Engine
      • LLM Fallthrough Patterns
      • Policy Enforcement & Escalation Paths
    • Enterprise Orchestration
      • Policy-Driven Automation
      • Enterprise Modularity
      • Auditability & Governance
      • Explainability & Decision Transparency
    • Agentifying Legacy Systems
      • Why Legacy Systems Resist Change
      • Best Practices for Agentifying ERP Workflows
      • GLIK’s Wrap-Around Model
      • Agent Surfaces (PDF, OCR, API, UI)
      • No-API Memory-Based Control
      • Compliance & Risk Considerations
    • System Observability
      • Execution Logs
      • Save Points & Snapshots
      • Variable Debugging
      • Session Trace Viewer
  • Developers
    • Overview
    • GLIK Open Core
      • Deployment & Installation
      • CLI Reference
      • Security & Compliance
      • Customization Guide
      • Versioning & Updates
  • GLIK Roadmap
  • Deprecation
    • Orchestration Interface
      • Node Orchestration
        • Node
          • Start
          • End
          • Direct Reply
          • LLM
          • Question Classifier
          • Knowledge Retrieval
          • Code Execution
          • Doc Extractor
          • HTTP Request
          • Conditional Branch IF/ELSE
          • Iteration
          • List Operator
          • Parameter Extraction
          • Template
          • Tools
          • Variable Aggregator
          • Variable Assigner
      • Variables
      • Application Toolkits
      • File Upload
    • Chatbot Features
    • Dataset
      • Dataset Creation
      • Text Preprocessing and Cleaning
        • Advanced Configuration
      • Retrieval Test/Citation
    • Studio
  • Brand Kit & Identity
    • Logos & Visual Assets
    • Typography & Colors
    • Messaging Pillars
    • Product Screenshots
    • Diagrams & Icons
    • Company Boilerplate
    • Downloads (.zip)
  • Legal
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
    • Trademark Notice
    • Acceptable Use Policy
    • Open Core License
Powered by GitBook

Platform

  • Open GLIK Cloud
  • Getting Started
  • Templates

Documentation

  • Core Concepts
  • GLIK Open Core
  • Security & Data Handling
  • Workspaces & Permissions

Company

  • RIvalz AI
  • Contact Support
  • Status Page

© 2023–2025 Rivalz Technologies Ltd.

On this page
  • Definition
  • Scenarios
  • Example 1: Long Article Iteration Generator
  • Example 2: Long Article Iteration Generator (Another Arrangement)
  • What is Array Content
  • Nodes Supporting Array Return
  • How to Obtain Array-Formatted Content
  • How to Convert an Array to Text

Was this helpful?

  1. Deprecation
  2. Orchestration Interface
  3. Node Orchestration
  4. Node

Iteration

Definition

Execute multiple steps on an array until all results are output.

The iteration step performs the same steps on each item in a list. To use iteration, ensure that the input value is formatted as a list object. The iteration node allows AI workflows to handle more complex processing logic. It is a user-friendly version of the loop node, making some compromises in customization to allow non-technical users to quickly get started.

Scenarios

Example 1: Long Article Iteration Generator

  1. Enter the story title and outline in the Start Node.

  2. Use a Generate Subtitles and Outlines Node to use LLM to generate the complete content from user input.

  3. Use a Extract Subtitles and Outlines Node to convert the complete content into an array format.

  4. Use an Iteration Node to wrap an LLM Node and generate content for each chapter through multiple iterations.

  5. Add a Direct Answer Node inside the iteration node to achieve streaming output after each iteration.

Detailed Configuration Steps

  1. Configure the story title (title) and outline (outline) in the Start Node.

  2. Use a Generate Subtitles and Outlines Node to convert the story title and outline into complete text.

  3. Use a Extract Subtitles and Outlines Node to convert the story text into an array (Array) structure. The parameter to extract is sections, and the parameter type is Array[Object].

The effectiveness of parameter extraction is influenced by the model's inference capability and the instructions given. Using a model with stronger inference capabilities and adding examples in the instructions can improve the parameter extraction results.

  1. Use the array-formatted story outline as the input for the iteration node and process it within the iteration node using an LLM Node.

Configure the input variables GenerateOverallOutline/output and Iteration/item in the LLM Node.

Built-in variables for iteration: items[object] and index[number].

items[object] represents the input item for each iteration;

index[number] represents the current iteration round;

  1. Configure a Direct Reply Node inside the iteration node to achieve streaming output after each iteration.

  2. Complete debugging and preview.

Example 2: Long Article Iteration Generator (Another Arrangement)

  • Enter the story title and outline in the Start Node.

  • Use an LLM Node to generate subheadings and corresponding content for the article.

  • Use a Code Node to convert the complete content into an array format.

  • Use an Iteration Node to wrap an LLM Node and generate content for each chapter through multiple iterations.

  • Use a Template Conversion Node to convert the string array output from the iteration node back to a string.

  • Finally, add a Direct Reply Node to directly output the converted string.

What is Array Content

A list is a specific data type where elements are separated by commas and enclosed in [ and ]. For example:

Numeric:

[0,1,2,3,4,5]

String:

["Monday", "Tuesday", "Wednesday", "Thursday"]

JSON Object:

[
    {
        "name": "Alice",
        "age": 30,
        "email": "alice@example.com"
    },
    {
        "name": "Bob",
        "age": 25,
        "email": "bob@example.com"
    },
    {
        "name": "Charlie",
        "age": 35,
        "email": "charlie@example.com"
    }
]

Nodes Supporting Array Return

  • Code Node

  • Parameter Extraction

  • Knowledge Base Retrieval

  • Iteration

  • Tools

  • HTTP Request

How to Obtain Array-Formatted Content

  • Return Using the CODE Node

  • Return Using the Parameter Extraction Node

How to Convert an Array to Text

The output variable of the iteration node is in array format and cannot be directly output. You can use a simple step to convert the array back to text.

  • Convert Using a Code Node

Code Example:

def main(articleSections: list):
    data = articleSections
    return {
        "result": "/n".join(data)
    }
  • Convert Using a Template Node

Code Example:

{{ articleSections | join("/n") }}
PreviousConditional Branch IF/ELSENextList Operator

Last updated 3 months ago

Was this helpful?