> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vatel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Transforming Data

> Build JSON objects from fields and variables

The Transform node lets you build a structured JSON object from a mix of fixed values and call variables. This is useful when a later step (such as a webhook, API call, or CRM write) expects data in a specific shape that does not match how your variables are currently organized.

For example, suppose a webhook expects a JSON body like `{"name": "Jane", "phone": "555-1234", "issue": "leak in unit 4B"}`. You can use a Transform node to assemble that exact shape by pulling `name` from one variable, `phone` from another, and `issue` from a third.

You can use the Transform node on **Start**, **End**, and any custom flow you have created. On the Main Flow, this option is greyed out and cannot be selected.

![Transform settings with Output JSON Structure and Add Property](https://mintcdn.com/devpro-38b0cd42/hdbCFLBnzC5gA6Ir/images/configure/transform-settings.jpg?fit=max\&auto=format\&n=hdbCFLBnzC5gA6Ir\&q=85\&s=441bc54896f641838e06ef759c2ea383)

Transform settings on a flow. Output JSON Structure has no properties yet.

## Fields

| Field | What you set |
| - | - |
| Title | A label for this step so you can identify it on the graph. |
| Description | A note about what this transformation does. This is for your reference and does not affect behavior. |
| Output JSON Structure | The JSON object that this step produces. See "Building the output" below for details. |

### Building the output

The **Output JSON Structure** section is where you define the shape of the JSON object. It starts empty. Click **Add Property** to add a field.

Each property has two parts:

* **Key** is the field name in the output JSON (e.g., `customer_name`, `phone`, `address`).
* **Value** is what goes into that field. You can type static text (a fixed string that is the same every time) or use a `{{variable}}` reference to pull a value from the call. For example, setting the value to `{{caller_name}}` will insert whatever the caller's name is for this particular call.

You can add as many properties as you need. The result is a flat or nested JSON object that downstream steps can read.

## Referencing Transform output in other steps

After the Transform node runs, its output is available to any later step in the same flow. To reference a specific field from the output, open the **snippet builder** (the `{{ }}` button in any value field) and select **Node outputs**. From there, pick the Transform step and then the specific field inside its output.

The resulting reference follows this pattern: `{{node.<step-id>.output.<field-name>}}`. For nested objects, fields are separated by dots. For example, if your Transform step has the ID `abc123` and produces an object with a `customer` property that contains a `name` field, the reference would be `{{node.abc123.output.customer.name}}`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.