Dashboards are good at answering questions and bad at arriving in an inbox. This workflow runs on a schedule, reads the numbers, and sends a report that someone can read on a phone without a login. The layout is a template, so the KPI tiles and the tables are yours to change.
600 free requests / month, no credit card
// live preview
The KPI tiles and the channel table are both loops, so adding a metric is a line of JSON rather than a layout change. Edit the numbers and render it.
// the workflow

Import the workflow and set the schedule. The merge step matters more than it looks: pulling each source in its own node and combining them once keeps a single failing API from taking down the whole report.
// Code node, one place where every delta is formatted the same way
const pct = (now, prev) => ((now - prev) / prev) * 100;
const kpi = (label, value, now, prev, unit = '%') => {
const delta = pct(now, prev);
return {
label,
value,
change: `${delta >= 0 ? '+' : ''}${delta.toFixed(1)}${unit} vs last month`,
color: delta >= 0 ? '#047857' : '#b91c1c',
};
};
return [{ json: {
period: new Date().toLocaleString('en-GB', { month: 'long', year: 'numeric' }),
kpis: [
kpi('Sessions', $json.sessions.toLocaleString(), $json.sessions, $json.sessionsPrev),
kpi('Signups', $json.signups.toLocaleString(), $json.signups, $json.signupsPrev),
],
}}];
// step by step
Open the node panel and search for CustomJS. The node is published, so on n8n Cloud it is in the list already and nothing has to be installed. On a self-hosted instance, add it once under Settings, Community nodes as @custom-js/n8n-nodes-pdf-toolkit-v2. The installation page has the details.
Create a credential of type CustomJS API and paste the key from your workspace. One key covers PDF, screenshots and the other endpoints.
A Schedule Trigger on the first of the month at 06:00 means the report is waiting before anyone asks for it. That is the whole value of a report over a dashboard.
Analytics, database, billing. Keeping them separate means a slow API delays the report instead of breaking it, and Continue on Fail lets a missing section render as a gap rather than an error.
Thousand separators, percentages and the colour of a delta belong in a Code node, not in the HTML. One place for the formatting means every tile agrees on what a positive change looks like.
Attach the PDF to an email addressed to the owner named on the report. A report in a shared channel is read by nobody in particular.
// html template
The tiles are a flex row and the colour comes from the data, which means a falling metric goes red without any logic in the template.
<div class="row" style="gap:12px">
{% for kpi in kpis %}
<div style="flex:1;border:1px solid #e5e7eb;border-radius:8px;padding:12px">
<div class="label">{{ kpi.label }}</div>
<div style="font-size:18pt;font-weight:700">{{ kpi.value }}</div>
<div class="small" style="color:{{ kpi.color }}">{{ kpi.change }}</div>
</div>
{% endfor %}
</div>@media print {
thead { display: table-header-group; }
tr { page-break-inside: avoid; }
}For an actual chart, render it as an image URL in the gathering step and place it with an img tag, or capture a dashboard with the dashboard screenshot template and embed that.
Turn invoice data from any n8n node into a finished PDF with one CustomJS node. Importable workflow, editable HTML template, no headless browser to run.
Turn a deal in your CRM into a sendable quote PDF, with scope lines, a discount row and an expiry date that the workflow calculates.
Render a delivery note from an order, with ordered against shipped quantities, carrier details and a signature line. No prices on the document.
Create a workspace, add the API key, import the workflow and set the trigger.