Skip to main content

Data transformation

A data transformation reshapes the extraction data with code, so a later action can send it in the shape your system expects.

Data in​

Data in shows the extraction data of the document as the transformation receives it. Include files adds the document files to it, as base64.

Transform​

Transform holds the code that reshapes the data, and Format sets the format of the result, such as JSON, XML or CSV.

Ask Dot​

Ask Dot lets Dot, the assistant in Send AI, write the code for you. Dot gets the extraction data of the document and first asks for the format your system expects: upload it as a PDF, Excel, CSV, JSON or text file, or paste it. You can also ask Dot to change the code that is already there.

Dot then asks only what the format leaves open, such as how dates and numbers are written or which field goes where, and proposes a mapping for you to confirm. It maps only what the format needs and says which fields it left out. Dot puts the code straight into Transform and checks it on the data. Nothing is saved until you save the action, so Discard undoes Dot's change.

Data out​

Data out previews the result, so you see straight away whether the code works. A transformation that fails shows "The transform fails on this data" with the reason.

Using the result​

A transformation sends nothing by itself. An HTTP export, FTP export or Send email placed after it can send its output.