ClickAI Docs
ClickAI Docs En
ClickAI Docs En
  • Welcome
  • GETTING STARTED
    • Sign up
    • Personal Setting
  • FUNCTION
    • AI Assistant
    • Creative
    • Community
      • Community User Guide
        • Post
        • Course
        • Event
        • Member
          • Leaderboard
        • Comunity Description
        • AI Avatar
      • Create Community
        • Create About Page
        • Create Course
        • Create Leaderboard
        • Create Bot Store
    • Academy
    • Studio
      • Create Chatbot
      • Create ChatFlow
        • Key Concepts
        • Variables
        • Node Description
          • Start
          • Trả Lời Trực Tiếp
          • Large Language Model (LLM)
          • Knowledge Retrieval
          • Question Classifier
          • Conditional Branch IF/ELSE
          • Code Execution
          • Template
          • Doc Extractor
          • List Operator
          • Variable Aggregator
          • Variable Assigner
          • Iteration
          • Parameter Extraction
          • HTTP Request
          • Tools
        • Shortcut Key
        • Orchestrate Node
        • File Upload
        • Additional Features
        • Debug and Preview
          • Preview and Run
          • Step Run
          • Conversation/Run Logs
          • Checklist
          • Run History
        • Application Publishing
      • Create Agent
      • Create Workflow
  • PAYMENT
    • Subscription Plans
    • Upgrade
    • Community subscription
    • Course subscription
  • POLICIES
    • Privacy Policy
    • ClickAI Community Guidelines
    • Affiliates Policy
Powered by GitBook
On this page
  1. FUNCTION
  2. Studio
  3. Create ChatFlow
  4. Node Description

Variable Aggregator

PreviousList OperatorNextVariable Assigner

Last updated 5 months ago

1. Definition

Aggregate variables from multiple branches into a single variable to achieve unified configuration for downstream nodes.

The variable aggregation node (formerly the variable assignment node) is a key node in the workflow. It is responsible for integrating the output results from different branches, ensuring that regardless of which branch is executed, its results can be referenced and accessed through a unified variable. This is particularly useful in multi-branch scenarios, as it maps variables with the same function from different branches into a single output variable, avoiding the need for repeated definitions in downstream nodes.


2. Scenarios

Through variable aggregation, you can aggregate multiple outputs, such as from issue classification or conditional branching, into a single output for use and manipulation by downstream nodes, simplifying data flow management.

Multi-Branch Aggregation after Issue Classification

Without variable aggregation, the branches of Classification 1 and Classification 2, after different knowledge base retrievals, would require repeated definitions for downstream LLM and direct response nodes.

Issue Classification (without Variable Aggregation)

By adding variable aggregation, the outputs of the two knowledge retrieval nodes can be aggregated into a single variable.

Multi-Branch Aggregation after IF/ELSE Conditional Branching

3 Format Requirements

The variable aggregator supports aggregating various data types, including strings (String), numbers (Number), objects (Object), and arrays (Array).

The variable aggregator can only aggregate variables of the same data type. If the first variable added to the variable aggregation node is of the String data type, subsequent connections will automatically filter and allow only String type variables to be added.

Aggregation Grouping

Starting from version v0.6.10, aggregation grouping is supported.

When aggregation grouping is enabled, the variable aggregator can aggregate multiple groups of variables, with each group requiring the same data type for aggregation.

Multi-Branch Aggregation after Issue Classification
Multi-Branch Aggregation after Conditional Branching