Data Nodes
Data nodes allow you to transform, process, and manipulate information. They are "Pure" nodes, meaning they run automatically when their data is requested.
🛠️ Transform Data (data.transform)
The Swiss Army Knife of data processing. Use this to reshape JSON, calculate math, or format text.
Modes
- Identity: Pass data through unchanged.
- Expression: Run a logic expression (e.g.,
value * 100). - Template: Create a string with variables (e.g.,
ID: {{value.id}}).
🔄 Map Array (data.map)
Transforms a list of items into a new list.
Example:
- Input:
[1, 2, 3] - Expression:
item * 2 - Output:
[2, 4, 6]
🔍 Filter Array (data.filter)
Keeps only the items in a list that match a condition.
Example:
- Input:
[10, 5, 20, 2] - Condition:
item > 5 - Output:
[10, 20]
📑 JSON Query (data.path_get)
Deeply inspects a JSON object to extract specific fields.
Configuration:
- Path: The dot-notation path to the data (e.g.,
user.address.city).
📝 Variable Management
Set Variable (data.set_variable)
Stores a value in a specific scope (flow, var, shared).
Note: This is an Impure node! It must be connected to the Flow to execute.
Get Variable (data.get_variable)
Retrieves a stored value. It's a Pure node and pulls data on demand.
🧩 Other Data Utils
Construct Object (data.object)
Builds a new JSON object from individual fields.
JSON Parse/Stringify
- Parse: Convert a JSON string into an Object.
- Stringify: Convert an Object into a JSON string.