Generate Artifact¶
The Generate Artifact block uses an input template to generate an artifact.
You can use this block to format results with a pre-determined structure.
There are three possible template types:
CEL expansion - Define a CEL expression to generate a text, Markdown or PDF output
Jinja template - Define a Jinja template to generate a text, Markdown or PDF output
DOCX Jinja template - Point to a managed folder containing a DOCX Jinja template. This template type can generate a DOCX or PDF output.
For a DOCX Jinja template, the block reads the template from a managed folder. If no template filename is specified, the default filename is template.docx.
For text and Markdown outputs, the block generates a simple document artifact.
For PDF and DOCX outputs, the block generates a file artifact and streams it to the user.
Requirement¶
PDF generation and DOCX templating require the internal document templating code environment.