Skip to main content
Use the Variable Aggregator node to converge exclusive workflow branches into a single output, so you only need to define downstream processing once. Nodes like If/Else and Question Classifier create exclusive branches—only one path executes per run. When these branches produce the same type of output, you would normally duplicate downstream nodes on every branch. The Variable Aggregator eliminates this duplication. It provides a single output variable for downstream nodes to reference, regardless of which branch ran.
Without Variable Aggregator
With Variable Aggregator
The Variable Aggregator is designed for exclusive branches where only one path runs at a time. It does not combine outputs from multiple branches that execute in parallel.To merge results from parallel branches, use a Code or Template node.

Select the Variables to Converge

From each branch, add variables that need the same downstream processing. All variables must share the same data type. Supported types: string, number, object, boolean, array, file. The node outputs whichever variable has a value at runtime. Since only one branch executes, only one variable will have a value, and that value becomes the node’s output.

Converge Multiple Sets of Variables

When you have multiple sets of variables that each need to be converged separately, enable Aggregation Group to create groups within a single Variable Aggregator. Each group converges its own set of variables and produces a separate output.