Overview
The Data Transform node is a versatile data manipulation tool that transforms inputs using either template-based formatting or Python code execution. It supports multiple Data Value types for both input and output and enables everything from simple text formatting through JSONata-based template expansions to complex programmatic transformations, making it essential for data processing pipelines, advanced context engineering, and custom agent logic in AI workflows.
Node Information
| Property |
Value |
| Category |
Data flow |
| Display Name |
Data transform |
| Internal Name |
transformv4 |
| Version |
4.0 |
Parameters
Input Configuration
| Parameter |
Type |
Default |
Description |
| Input 1 |
dataTypeChoice |
Text |
Data type for first input (Text, Number, JSON object, Content, Segments, Knowledge, Configured service, Any) |
| Input 2 |
dataTypeChoice |
Text |
Data type for second input (same options as Input 1) |
Output Configuration
| Parameter |
Type |
Default |
Description |
| Output data type |
dataTypeChoice |
Text |
Output type (Text, Number, JSON object, Content, Segments, Knowledge, Prompt template, Configured service) |
Transform Configuration
| Parameter |
Type |
Default |
Description |
| Transform mode |
choice |
Template |
Transformation method: Template or Python code |
Mode-Specific Parameters
When Transform mode = Template:
| Parameter |
Type |
Default |
Description |
| Template |
text |
"text with {input1} ... {input2} ... etc." |
Template with variable substitution |
When Transform mode = Python code:
| Parameter |
Type |
Default |
Description |
| Python code |
code |
"output = input1 + input2" |
Python code for transformation |
Metadata Parameters
| Parameter |
Type |
Default |
Description |
| Tags |
text |
(empty) |
Organizational tags |
| Notes |
text |
(empty) |
Additional notes |
Input Ports
| Port |
Type |
Accepts |
Required |
Description |
| Input 1 |
Configurable |
Based on Input 1 parameter |
No |
First data input |
| Input 2 |
Configurable |
Based on Input 2 parameter |
No |
Second data input |