Library / Documents, PDF & OCR
Documents, PDF & OCR
Issue cohort completion certificates with Pdfmill, Gmail and Google Drive
Triggered by a webhook carrying a cohort of attendees, it generates a PDF certificate for each person with pdfmill, emails it via Gmail and archives copies in Google Drive.
What it does
## Expected payload POST a cohort to the Production webhook URL: json { "program": "Automation 101", "organization": "Acme Academy", "issuer": { "name": "Ada Lovelace", "title": "Head of Training" }, "completedAt": "2026-08-01", "attendees": [ { "name": "Alan Turing", "email": "alan@example.com", "hours": 12 }, { "name": "Grace Hopper", "email": "grace@example.com", "hours": 12, "grade": "Distinction" } ] } ### Required cohort fields - program (or programName / course) - organization (or org) - issuer.name and issuer.title (top-level aliases are accepted) - completedAt as YYYY-MM-DD (or completionDate) ### Required attendee fields - attendees must be a non-empty array. - Every attendee needs name, one standard mailbox in email (or emailAddress), and positive numeric hours (or duration). recipientName/fullName, result, and completionDate are accepted aliases. Attendee grade is optional and defaults to Completed; an attendee completion date may override the cohort date. Certificate numbers include the n8n execution ID, preventing adjacent workflow executions from sharing numbers. Connect a pdfmill API credential, Gmail, and Google Drive. Select the Drive folder where certificates should be archived.
The steps
- When a cohort completes
- Validate and build the cohort certificates
- Is the entire roster valid?
- Generate each certificate PDF
- Email each certificate to its attendee
- Archive each certificate in Google Drive
- Wait for email and archive
- Return the issued count
- Return one 400 roster error
Similar automations
Documents, PDF & OCRGenerate warehouse packing slips from paid orders with pdfmill, Gmail and Drive9 stepsReports, Analytics & DashboardsGenerate pdfmill metric reports from form requests and send via Gmail and Drive11 stepsDocuments, PDF & OCRIssue Course Completion Certificates with an OpenAI RAG Agent11 stepsDocuments, PDF & OCRFile water well completion reports with state APIs using OpenAI, Drive and Gmail18 steps