Templates and files
Files are images, PDFs, tables, text and JSON that your dashboards read or write. A template is a file that shapes the text of an e-mail or a webhook.
Your files#
Files in the main navigation lists everything you have. Choose Upload file, or drop a file straight onto a dashboard. Your plan limits storage, the number of files and the size of each one (under Plan).
A node input that takes a file shows Choose a file under PORTS in its details panel: pick one of yours or upload a new one. Nodes that write files, such as Export CSV, save them to the same library. Wire a file to Attachments on Notify (email) and it travels with the message.
Write a template#
- In Files, click New template. Or open Choose a file on a node's Template input and click New template, which also selects the result for that node.
- Give it a Name and pick a Format: HTML email, Plain text, Markdown or JSON (webhooks).
- Under Start from, choose a starter, such as Email: new results, or write your own. Preview shows the result. A template with a syntax error cannot be saved.
- Click Create template.
- To use a template made in Files, open Choose a file on the node's Template input and pick it.
Saving an existing template publishes a new version. By default a node uses the newest one; tick Keep this exact version to freeze it.
What a template can use#
Templates use Liquid: {{ variable }}, {% for %} and {% if %}, and filters.
- E-mail:
items,data,run.dashboardName,run.dashboardUrl,run.startedAt,owner.nameandlocale. - Webhook:
payloadanddata, plus the samerunandownervalues. - Filters:
item_label,entity_label,field,number,currency,dateandjson.
Variables an action does not provide are flagged in the editor and render empty. In HTML, values are escaped, so data can never inject markup. A template is capped at 64 KiB, and it cannot include other files.
Related: E-mail and AI report and Webhook to your system.