n8n Tutorial

Automate Certificate Generation with n8n

Course completion triggers certificate generation automatically. Student name, signature titles, completion date — all filled in instantly.

Vincent Ventalon
Vincent Ventalon
·Updated
TemplateFox

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 certificates?

Student completes your course. You get a notification. Now you need to create their certificate — fill in their name, the course title, today's date, maybe acknowledge their 95% score somehow. Do this for every completion and it adds up fast.

With AI, you can do more than fill-in-the-blanks. The AI agent sees their score was 95% and writes "with Distinction." Sees they finished in 3 days instead of 30 and mentions their exceptional dedication. Each certificate feels personal.

Here's what we're building: LMS webhook fires → AI generates achievement text → certificate renders → email sends.

1

Create your certificate template

Design a certificate with dynamic fields. The key is the achievement description — that's where AI shines.

Template fields

  • name — recipient name
  • job_l — left signature title
  • job_r — right signature title

Example values

  • name → "John Doe"
  • job_l → "Manager"
  • job_r → "HR"
Certificate of Recognition template in TemplateFox visual editor
2

Build the workflow

2.1 — LMS webhook trigger

Add a Webhook node to receive course completion events from your LMS:

  • Configure your LMS to POST to the n8n webhook URL
  • Payload includes: student name, email, course, score, completion date

2.2 — Map certificate data

For simple certificates, map fields directly from your LMS webhook:

// Direct mapping from webhook
name: {{ $json.student_name }}
job_l: "Course Instructor"
job_r: "Program Director"

When to add AI: If your template has an achievement description field, AI can generate personalized text based on score/completion time. This simple template uses static signature titles.

2.3 — Generate certificate

Add the TemplateFox node with your certificate template:

  • Map name from webhook student data
  • Map job_l and job_r from AI output or static values
Certificate preview with sample data filled in

2.4 — Email to student

Add a Send Email node to deliver the certificate:

Result: Every graduate gets a certificate that acknowledges their unique achievement.

Batch generation for cohorts

For end-of-course batch processing, add a Loop Over Items node:

  1. Trigger: Google Sheets with student list, or manual webhook
  2. Loop: Process each student row
  3. AI: Generate achievement text for each
  4. TemplateFox: Generate certificate
  5. Email: Send to each student

Supported platforms

T
Teachable
T
Thinkific
L
LearnDash
K
Kajabi
P
Podia
W
Webhook

Frequently asked questions

Which LMS platforms can trigger certificates?

Any LMS with webhooks or API access: Teachable, Thinkific, LearnDash, Kajabi, Podia. Use n8n webhooks for custom LMS platforms.

How does AI personalization work?

The AI agent receives completion data (score, time, attempts) and generates contextual achievement text. High scorers get "with Distinction," fast completers get speed acknowledgment, etc.

Can I generate certificates in bulk for a cohort?

Yes! Use n8n's Loop node to process arrays of students. Perfect for end-of-course batch certificate generation when you have a list of completers.

What certificate fields can I personalize?

Any field: recipient name, achievement title, achievement description, completion date, issuer signature, certificate ID. The AI can generate or enhance any text field.

Can I include verification QR codes?

Yes! Use the {"{{qrcode:url}}"} syntax in your template. Link to a verification page with the certificate ID.

What does this automation cost?

n8n self-hosted is free. TemplateFox offers 60 free PDFs per month. View pricing.

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.