A quote is an invoice with two differences that matter: it expires, and it has to read like an offer rather than a demand. This workflow takes a deal from your CRM, works out the validity date, and renders a document you can send without opening a word processor.
600 free requests / month, no credit card
// live preview
Change the scope lines or the discount and render it. The same HTML goes into the n8n node, so the file your customer receives looks like this one.
// the workflow

Import the JSON with Workflows, Import from File. The Set node stands in for your CRM so you can run it immediately, then swap it for a HubSpot, Pipedrive or Postgres node once the shape matches.
// 30 days of validity, formatted the way the template prints it
{{ new Date(Date.now() + 30 * 864e5).toLocaleDateString('en-GB', {
day: 'numeric', month: 'short', year: 'numeric'
}) }}
// 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 quote needs a number, a validity date, the scope lines and the totals. If your CRM stores products as a related table, fetch them first and collect them into one array before the PDF node.
Do not store the validity date by hand. Calculate it in the Set node from the moment the quote is generated, so a quote regenerated next week carries next week's date.
After the PDF node, attach the file to an email and write the file ID back to the deal. That record is what lets a later workflow tell an accepted quote from an expired one.
// html template
Three details carry the difference, and all three live in the template rather than in the workflow logic.
<span class="badge">Quote</span>
<div class="num small muted">
<div>Prepared {{ issueDate }}</div>
<div><strong>Valid until {{ validUntil }}</strong></div>
</div>
<div class="foot">{{ owner.company }} · This quote is not an invoice</div>{% for item in items %}
<tr>
<td>
<strong>{{ item.title }}</strong><br />
<span class="small muted">{{ item.detail }}</span>
</td>
<td class="num">{{ item.days }}</td>
<td class="num">{{ (item.days * item.rate).toFixed(2) }}</td>
</tr>
{% endfor %}When the quote is accepted, the same data can go straight into the invoice template, which is the point of keeping the two documents on one data shape.
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.
Render a delivery note from an order, with ordered against shipped quantities, carrier details and a signature line. No prices on the document.
A scheduled workflow that sends every customer a statement of their open invoices, with ageing buckets and days late calculated at render time.
Create a workspace, add the API key, import the workflow and point it at your CRM.