Documents

Fill a tagged .docx template and save it to Docs.

Usage Instructions

Fill a pre-tagged Word template with a flat data map and publish the filled .docx to workspace Docs. Layout, logo, and boilerplate are preserved. Reads templates from workspace docs; future variants add URL, S3, SharePoint, and customer document services as new template sources.

Tools

documents_render

Fill a tagged .docx template with data and save the result to workspace Docs as a Word file. Layout, logo, and boilerplate are preserved because only {placeholder} tags are substituted.

Input

ParameterTypeRequiredDescription
templateFilefileYesWorkspace .docx file (pre-tagged) to render.
dataobjectYesFlat key/value map substituted into {tag} placeholders. Missing keys render as empty (nullGetter).
validateobjectNoOptional skeleton assertions — { checkName: "text that must still be present" }. Whitespace-normalized so run-split text still matches.
fileNamestringNoWorkspace Docs file name. .docx is appended when omitted.
folderIdstringNoOptional workspace Docs folder ID. Omit to create the doc at the top level.

Output

ParameterTypeDescription
fileobjectPublished workspace Docs file (id, name, size, url).
fileIdstringWorkspace Docs file id.
fileNamestringWorkspace Docs file name.
mimeTypestringWord processing document MIME type.
docxBase64stringCompat: filled .docx as base64. Prefer file. Logs and Output show a short prefix plus ...[truncated].
validationobjectSkeleton validation result — pass is false if any assertion failed.
templateSourcestringWhere the template was resolved from — "workspace" in v1.
templateFilestringDisplay name of the template file.
templateFileIdstringSource-native identity of the template.
templateHashstringsha256 of the template bytes — audit anchor for MLR flows.
bytesnumberSize of the filled .docx in bytes.

On this page