๐Ÿ”ฌ Create & validate digital certificates with PDF Generator API and Gmail

โšก 189 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

Description

Automated Certificate Creation & Verification (PDF Template-based)

๐Ÿ” Overview

This n8n workflow provides a complete end-to-end system for creating, distributing, and verifying digital certificates, using PDF Generator API templates instead of raw HTML.

It is designed as a production-ready MVP, fully functional and tested, that can be imported and adapted with minimal configuration.

The workflow exposes public endpoints to:


๐ŸŽฏ Typical use cases

This workflow is ideal for:

Any scenario where certificates must be generated automatically and verified reliably.


โš™๏ธ What this workflow does

1๏ธโƒฃ Certificate creation (Webhook)

Endpoint

POST /certifications2

When triggered, the workflow:

  1. Receives candidate data (name, surname, course, email)
  2. Generates a unique Certification ID
  3. Ensures the ID does not already exist
  4. Stores certificate data in an n8n Data Table
  5. Generates a PDF using a PDF Generator API template
  6. Sends the certificate via email as a PDF attachment

2๏ธโƒฃ PDF generation (Template-based)

Instead of HTML, the workflow sends a JSON payload to a predefined PDF template.

Example payload:

{
  "Candidate": "John Doe",
  "CourseName": "Advanced n8n Automation",
  "DueDate": "2025-01-10",
  "ID": "LQ4Z5H8R2A1F"
}

The PDF layout (fonts, colors, logos, formatting) is fully managed via the PDF Generator API Template UI, keeping the workflow clean and maintainable.


3๏ธโƒฃ Email delivery


4๏ธโƒฃ Certificate verification

Endpoint

GET /certificationscheck?id=CERTIFICATION-ID

This endpoint:

Example response (valid):

{
  "ok": true,
  "name": "John",
  "surname": "Doe"
}

This enables public, API-based certificate verification.


๐Ÿ›  Requirements

Before importing the workflow, you need:

  1. n8n instance (cloud or self-hosted)

  2. n8n Data Table with the following fields:

    • Name (string)
    • Surname (string)
    • CertificationID (string)
  3. PDF Generator API account

  4. Gmail OAuth2 credentials

  5. Ability to expose webhook endpoints publicly


๐Ÿš€ Setup guide

Step 1 โ€“ Import the workflow


Step 2 โ€“ Configure the Data Table

Create (or reuse) an n8n Data Table with these fields:

FieldType
Namestring
Surnamestring
CertificationIDstring

Update the following nodes to reference your Data Table:


Step 3 โ€“ Configure PDF Generator API

โš ๏ธ Placeholder names must exactly match the JSON keys used in the workflow.


Step 4 โ€“ Configure email credentials


Step 5 โ€“ Activate the workflow


๐Ÿงช Status & notes


๐Ÿ’ก Customization ideas

You can easily extend this workflow by:

๐Ÿ”— Nodes Used

Webhook, Gmail, Data table

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup