Data Transformation

Wire Flow data transformation tasks — JSONata Transform, JS Executor, and XSLT Transform — for reshaping and converting data within a workflow.

Data transformation tasks reshape, query, and convert data as it flows through a workflow.

JSONata Transform

Transforms JSON data using JSONataarrow-up-right, a powerful expression language for querying and reshaping JSON.

Field
Description

Expression

The transformation to apply to the incoming data

Edit

Opens a full editor with live preview

AI

Generate an expression from a plain-English description and example input/output

The incoming data is available as $states.input. Example — combine two fields and sum an array:

JS Executor

Runs custom JavaScript logic in a sandboxed environment. Use this when JSONata is insufficient — for example, complex string manipulation, date calculations, or multi-step logic.

circle-exclamation

XSLT Transform

Accepts XML input, applies an XSLT stylesheet, and produces XML output. Use this for XML-to-XML transformations where the structure needs to change between systems.

Last updated