πŸ”¬ Create & validate digital certificates with PDF Generator API and Gmail

⚑ 254 views Β· πŸ”¬ Document Extraction & Analysis

Description

Quick overview

Issue and verify digital certificates with n8n using reusable PDF Generator API templates, unique certificate IDs, an n8n Data Table registry, Gmail delivery, and a public verification endpoint.

How it works

  1. Certificate creation β€” A POST webhook receives the candidate’s name, surname, course, and email address.
  2. Unique ID validation β€” The workflow generates a Certification ID and checks the Data Table to prevent identifier collisions.
  3. Registry storage β€” Issued certificate records are persisted in an n8n Data Table for later lookup and verification.
  4. Template-based PDF generation β€” PDF Generator API receives JSON containing candidate, course, date, and ID values mapped to placeholders in a reusable visual template.
  5. Email delivery β€” Gmail sends the generated certificate PDF to the recipient supplied in the creation request.
  6. Public verification β€” The verification endpoint searches the registry by Certification ID and returns whether the certificate is valid and who it belongs to.

Setup

  1. Import the workflow β€” Import the included workflow JSON into n8n.
  2. Create the Data Table β€” Add Name, Surname, and CertificationID fields and configure the insert and lookup nodes.
  3. Import the PDF template β€” Import the provided PDF Generator API template and verify its placeholders match the JSON keys sent by the workflow.
  4. Configure PDF Generator API β€” Add credentials and select the imported template in the PDF generation node.
  5. Connect Gmail β€” Configure Gmail OAuth2 credentials for certificate delivery.
  6. Test and activate β€” Create a sample certificate, confirm PDF mapping and email delivery, then test verification before activation.

Requirements

Customization

Additional info

The reusable PDF template is included under PDFgeneratorAPI-Template/. Keep template placeholder names synchronized with the JSON keys sent by the workflow. Review webhook exposure, personal-data handling, authentication, and abuse prevention before production use.

πŸ”— Nodes Used

Webhook, Gmail, Data table

πŸ“₯ Import

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

πŸ“– Importing guide Β· πŸ”‘ Credential setup