Variable Aggregator Only Aggregates One Variable #34989
Replies: 1 comment
-
|
This is actually expected behavior, not a bug — the Variable Aggregator node is somewhat misleadingly named. It functions as a fallback selector that picks the first non-null variable from its inputs, rather than merging all variables together [1]. Internally, it loops through the configured variables and For your webhook use case, the recommended approach is to skip the Variable Aggregator entirely and instead use one of these alternatives:
There is also a newer To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Problem Description
I'm experiencing an issue with the Variable Aggregator in Dify where it only aggregates one variable instead of multiple variables as expected.
Current Situation
Input Node: Webhook Trigger
Expected Behavior: The aggregator should collect all configured variables
Actual Behavior: Only the first variable is being aggregated
Detailed Information
The webhook trigger outputs a complete JSON object containing multiple variables:
json
{
"alert_subject": "CPU usage consistently exceeds 95%",
"alert_message": "CPU usage consistently exceeds 95%",
"alert_severity": "High",
"alert_host": "test-server-01",
"trigger_id": "121",
"event_id": "123",
"timestamp": "2026-04-12T03:24:10.283Z",
"source": "zabbix-7.4"
}
However, after passing through the Variable Aggregator, only the first variable appears:
json
{
"alert_subject": "CPU usage consistently exceeds 95%"
}
Expected Result
The Variable Aggregator should aggregate all configured variables into a single output object, not just the first one.
Request for Help

Could anyone help me understand what might be causing this issue? Is this a configuration problem or potentially a bug in the Variable Aggregator component?
Any suggestions or alternative approaches would be greatly appreciated!
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions