Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. When a cohort completes
  2. Validate and build the cohort certificates
  3. Is the entire roster valid?
  4. Generate each certificate PDF
  5. Email each certificate to its attendee
  6. Archive each certificate in Google Drive
  7. Wait for email and archive
  8. Return the issued count
  9. Return one 400 roster error

Similar automations