Automate PDF Generation
with n8n

Self-hosted, open-source, AI-powered. Full control over your document workflows with TemplateFox and n8n.

Email
Extract Data
Generate PDF
Invoice

Trigger → AI Agent → TemplateFox → Output

Why n8n + TemplateFox?

AI agents need deterministic output. That's where we come in.

n8n

n8n handles the chaos

n8n is the preferred platform for deploying AI agents. Self-hosted, open-source, and infinitely flexible. Your AI reads emails, parses forms, analyzes orders — extracting structured data from messy, unpredictable input.

  • 400+ integrations (Shopify, Stripe, Gmail, Slack...)
  • Native AI Agent nodes (OpenAI, Claude, Ollama)
  • Self-hosted, no vendor lock-in
TemplateFox

TemplateFox delivers precision

AI output is unpredictable. Your documents can't be. TemplateFox provides deterministic PDF templates — pixel-perfect output every time. The AI extracts, the template renders. Invoices, receipts, certificates, labels.

  • Visual template editor, no code required
  • QR codes, barcodes, dynamic tables
  • Official n8n community node

Three steps to PDF automation

Install the community node, configure your API key, build your workflow.

1

Install the node

In n8n, go to Settings → Community Nodes and install:

n8n-nodes-templatefox
2

Configure API key

Create TemplateFox credentials in n8n with your API key from the Dashboard.

3

Build your workflow

Add triggers, AI agents, and the TemplateFox node. Map your data to template fields.

Looks great
PDF template example - Packing Slip
1
2
3
4

Built for real-world documents

Everything you need to create professional business documents, from invoices to packing slips.

1

Headers & footers that just work

Define once, repeat on every page automatically. Perfect for logos, page numbers, and legal mentions.

2

Dynamic data binding

Inject any data into your templates. Names, addresses, prices, etc. — everything updates automatically.

3

Tables that grow with your data

Rows grow automatically with your data. 3 items or 300, the table adapts and spans multiple pages if needed.

4

Built-in QR codes & barcodes

Generated on the fly from your data. Supports Code128, EAN-13, QR codes and more — all scanner-ready.

Try it free

60 free PDFs/month

Easy to use

Documents that adapt to your data

Go beyond simple placeholders. Use expressions to format, calculate, and control your content.

1

Use system variables

Access page numbers, total pages, and current date and more automatically with {{sys.page_number}} and friends.

2

Customize every component

Fine-tune content, borders, colors, sizes, positions, and more. Each element has its own properties panel.

3

Built-in functions

Format dates, calculate totals, round numbers, and more. Use 100+ built-in functions or create your own.

Start building

No credit card required

Template editor with expressions
1
2
3
AI-powered workflows

Use cases

See what you can automate with n8n AI agents and TemplateFox.

Cloud storage

Built-in S3 Integration

Save your generated PDFs directly to Amazon S3 or any S3-compatible storage (Cloudflare R2, MinIO, DigitalOcean Spaces). Perfect for self-hosted setups.

Learn how to bring your own storage

Is n8n right for you?

n8n is ideal for self-hosted, AI-powered workflows. Here's how to decide.

Recommended
n8n

Use n8n if you need:

  • Self-hosted for full data control
  • AI Agent nodes for intelligent workflows
  • Open-source, no vendor lock-in
  • High-volume processing at fixed cost

Or consider:

Zapier
Zapier
  • Native integration, easiest setup
  • 7,000+ app connections
Make
Make
  • Visual builder with iteration
  • Cost-effective at scale

Frequently asked questions

How does the TemplateFox and n8n integration work?

TemplateFox has an official n8n community node. Install it via n8n-nodes-templatefox, configure your API key, and add the TemplateFox node to any workflow. When your trigger fires, n8n calls TemplateFox to generate a PDF.

Do I need coding experience to use n8n with TemplateFox?

Basic familiarity with n8n's visual workflow builder is helpful, but no coding is required. The TemplateFox node provides a simple interface to map your data to template fields. For AI-powered workflows, you'll write prompts in plain English.

How do I install the TemplateFox community node?

In your self-hosted n8n instance, go to Settings → Community Nodes → Install and enter n8n-nodes-templatefox. For Docker deployments, add it to your N8N_CUSTOM_EXTENSIONS environment variable. View on n8n.io →

Can I use AI agents with TemplateFox in n8n?

Yes! n8n's AI Agent nodes work seamlessly with TemplateFox. Use an AI agent to extract data from emails, categorize payments, personalize certificates, or analyze order details — then pass the structured output directly to TemplateFox for PDF generation.

What triggers can I use to start PDF generation?

Any n8n trigger works: webhooks, email (IMAP), Google Sheets changes, Shopify orders, Stripe payments, form submissions, scheduled times, and hundreds more. n8n's self-hosted nature means you can also connect to internal databases and APIs.

Can I run n8n + TemplateFox completely on-premise?

n8n runs entirely on your infrastructure. TemplateFox API calls go to our cloud servers by default. For complete on-premise deployment, contact us about our Enterprise plan with self-hosted PDF rendering.

What are common AI-powered use cases?

Popular use cases include: AI Email to Invoice (extract billing data from emails), AI Payment Categorization (auto-select receipt templates), AI Certificate Personalization (generate achievement text), AI Order Analysis (detect gift orders, add handling instructions).

How fast is PDF generation with TemplateFox?

Most PDFs generate in under 2 seconds. Your n8n workflow continues immediately with the PDF URL, so you can chain additional nodes without delays. Complex multi-page documents may take slightly longer.

Are there any limits or costs?

n8n self-hosted is free and unlimited. TemplateFox offers 60 free PDFs/month, then paid plans based on volume. Check our pricing for details.

Automate your PDF generation

Complete documentation, no-code integrations, and a powerful API to help you generate PDFs at scale. Let us handle the boring stuff.