Skip to content
noctiluz
On this page

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#

  1. 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.
  2. Give it a Name and pick a Format: HTML email, Plain text, Markdown or JSON (webhooks).
  3. 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.
  4. Click Create template.
  5. 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.name and locale.
  • Webhook: payload and data, plus the same run and owner values.
  • Filters: item_label, entity_label, field, number, currency, date and json.

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.