About the TemplateFox Node
The official TemplateFox community node for n8n lets you generate PDFs from templates with dynamic data. Works synchronously — returns the PDF URL immediately. Compatible with n8n AI Agents.
Why automate receipts?
Client emails asking for a receipt. You copy-paste details into a template, export PDF, attach to email, send. Repeat for every payment. It adds up.
With n8n + AI, receipts generate automatically. AI extracts payment details from any source, TemplateFox generates the PDF, email sends. No manual work.
The workflow: trigger (email/form/webhook) → AI extracts details → PDF generates → email sends.
Choose a template
Pick a receipt template. The Service Receipt works for consulting, freelance, or any service-based business.

Template: Consulting Service Receipt
Build the workflow
2.1 — Trigger
Choose your trigger based on where payment info comes from:
Email Trigger
IMAP or Gmail trigger. Client emails payment details, AI extracts from body.
Webhook
Stripe webhook, form submission, or any HTTP POST with payment data.
2.2 — AI extraction
Add an AI Agent node. Prompt it to extract the fields your template needs:
Skip this step if your trigger already provides structured data (e.g., Stripe webhook).
2.3 — Generate PDF
Add the TemplateFox node. Map the extracted fields to your template:

2.4 — Send email
Add a Send Email node. Attach the PDF from TemplateFox.
Done. Receipts generate and send automatically. No manual work.
Supported triggers
Any n8n trigger works. Common ones: