Actions21
- Conversion Actions
- Document Builder Actions
Document Builder → JSON to Table
AI-generatedSummary
Create a DOCX-based document containing a formatted table from an array of row objects, then save it in the selected output format. The first row’s keys define the table headers, and an optional title is inserted above the table.
Inputs
- Table Data (JSON Array) (required) — Array of row objects; keys from the first object become column headers and each row’s corresponding values become cell content. For example, use
{{ $json.records }}from Extract Tables. - Table Title — Optional heading placed above the table.
- Output Format — Save as DOCX, PDF, or PPTX; defaults to DOCX.
- Output Mode — Choose File Data to download the generated file as binary, or URL Only to return its Document Server URL without downloading.
- Output File Name — Base name for the output file, without extension; defaults to
output. Used in the returned file name. - Put Output File in Field — Binary field name for the generated file when Output Mode is File Data; defaults to
data.
Output shape
A single n8n item with JSON metadata and, in File Data mode, a binary file.
JSON includes
fileName,operation, andoutputUrl. URL Only mode omits binary data. The script creates a DOCX internally before saving in the selected format. With an empty input array, it saves a document without a table; the title may still be included.