Generate PDFs in n8n from any workflow
n8n has no built-in way to lay out a document. This adds one: design the PDF once in a visual editor, then any workflow sends JSON and gets the finished file back as binary data, ready for Gmail, Drive, or Slack.
- 1
Publish a template
Sign up free, pick a starter (invoice, receipt, certificate, report, and six more), adjust it in the editor, and publish. The editor lists the fields the template expects.
- 2
Add the credential
In n8n create a Header Auth credential: name Authorization, value Bearer followed by your API key. Use a test key while you build; test renders are free and carry a TEST mark.
- 3
Add an HTTP Request node
Method POST, Authentication Generic → Header Auth, Send Body on, Body Content Type JSON, Specify Body Using JSON. Add an Idempotency-Key header so Retry On Fail never makes a second PDF. Map the template's fields from the previous node.
URL https://docspout.com/v1/renders Header Idempotency-Key: {{ $execution.id }}-{{ $itemIndex }} JSON {{ JSON.stringify({ template: "tpl_...", output: "pdf", data: $json }) }} Options Response → Response Format: File - 4
Use the file
With output set to pdf and the response format set to File, the node outputs the PDF as binary data in the data property. Attach it in Gmail, upload it to Google Drive, or post it to Slack. Leave output out to get a JSON response with a url instead.
- 5
Or start from a finished workflow
Download one of the importable workflows (Stripe invoice by email, Google Sheet certificates, weekly Airtable report) and choose Import from File in n8n. Paste your template id and pick your credentials.