Transform Node
Reshape workflow variables using a Jexl expression evaluated against the current state.
Transform Node
The transform node evaluates a Jexl expression to compute a new value from the current workflow state. The result becomes lastOutput for the next node.
Configuration Fields
| Field | Type | Description |
|---|---|---|
transformScript | string | Jexl expression to evaluate (primary field) |
transformation | string | Alias for transformScript (legacy) |
If neither is set, the expression defaults to lastOutput (passthrough).
Expression Context
| Variable | Value |
|---|---|
input | variables.lastOutput — output of the previous node |
lastOutput | variables.lastOutput — same as input |
variables | Full workflow variables dictionary |
Expression Examples
The transform node uses Jexl, not JavaScript. It does not support return, arrow functions, map(), filter(), assignments, or other JS-specific syntax. For full code execution, use the Agent node with the run_javascript tool enabled (requires human approval), or the Code node once Pod VM infrastructure is available.
Output
The result of the expression is set as lastOutput and passed to downstream nodes.
Example Config — Extract a field
Input: { "data": { "title": "Hello World", "body": "..." } }
Output: "Hello World"