π¬ 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
- Certificate creation β A POST webhook receives the candidateβs name, surname, course, and email address.
- Unique ID validation β The workflow generates a Certification ID and checks the Data Table to prevent identifier collisions.
- Registry storage β Issued certificate records are persisted in an n8n Data Table for later lookup and verification.
- Template-based PDF generation β PDF Generator API receives JSON containing candidate, course, date, and ID values mapped to placeholders in a reusable visual template.
- Email delivery β Gmail sends the generated certificate PDF to the recipient supplied in the creation request.
- Public verification β The verification endpoint searches the registry by Certification ID and returns whether the certificate is valid and who it belongs to.
Setup
- Import the workflow β Import the included workflow JSON into n8n.
- Create the Data Table β Add Name, Surname, and CertificationID fields and configure the insert and lookup nodes.
- Import the PDF template β Import the provided PDF Generator API template and verify its placeholders match the JSON keys sent by the workflow.
- Configure PDF Generator API β Add credentials and select the imported template in the PDF generation node.
- Connect Gmail β Configure Gmail OAuth2 credentials for certificate delivery.
- Test and activate β Create a sample certificate, confirm PDF mapping and email delivery, then test verification before activation.
Requirements
- n8n instance
- n8n Data Table with Name, Surname, and CertificationID
- PDF Generator API account and credentials
- Imported PDF Generator API certificate template
- Gmail OAuth2 credentials
- Publicly reachable webhooks when exposed externally
- Custom PDF Generator API template design (optional)
- QR code or additional visual elements (optional)
- Additional registry fields (optional)
- Frontend, LMS, or portal consuming the verification endpoint (optional)
Customization
- Template design β Change layout, fonts, colors, logos, signatures, QR codes, and other visual elements without embedding HTML in n8n.
- Template variables β Extend the JSON payload and matching placeholders with additional certificate information.
- Certificate ID β Replace the default ID-generation logic with another identifier format.
- Email delivery β Customize Gmail subject, body, attachment name, and recipient logic.
- Verification response β Extend the API response with additional non-sensitive certificate metadata.
- External integrations β Connect certificate creation to forms, an LMS, CRM, e-commerce flow, or another application.
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