Skip to main content

Output

Category: Transform
Node id: output

Formats and outputs pipeline results in JSON, text, Markdown, HTML, or CSV format with optional metadata

What it does​

  • Five output formats: JSON, text, Markdown, HTML, CSV
  • MIME content-type detection per format
  • Optional metadata injection (timestamp, format, field count)
  • Selective field output via data_field config
  • CSV header and row generation from object arrays

Use cases​

  • Format pipeline results as JSON for API responses
  • Generate Markdown reports from clinical data analysis
  • Export pipeline output as CSV for spreadsheet consumption

Runtime​

  • Performance tier: fast

Input ports​

NameTypeRequiredDescription
inputanyYesData to format and output

Output ports​

NameTypeRequiredDescription
resultjsonNoFormatted output containing output (string), content_type, and optional metadata
successbooleanNoWhether the formatting succeeded

Settings​

Basic​

SettingNameTypeRequiredDefaultAllowed valuesDescription
Output FormatformatenumYesjsonjson, text, markdown, html, csvFormat for the output data
Include Metadatainclude_metadatabooleanNotrueInclude generation metadata in the output

Advanced​

SettingNameTypeRequiredDefaultAllowed valuesDescription
Data Fielddata_fieldstringNoSpecific input field to output (leave empty to output all inputs)

Errors​

CodeDescription
UNSUPPORTED_FORMATThe specified output format is not recognized
EMPTY_INPUTNo input data provided to format

Runtime notes​

  • result.output is always a string regardless of format; for JSON format it is pretty-printed JSON text
  • result.content_type is the MIME type corresponding to the chosen format (application/json, text/plain, etc.)
  • When data_field is empty, all inputs are passed through as the data to format
  • CSV format requires array or object data; scalar inputs will error for CSV but work for other formats

See Build any workflow for how to put nodes together and Ports, types and data flow for how port types connect.

Something unclear? Send documentation feedback by email.