Templates / Generate and email PDF payslips from Google Sheets with Gmail

Generate and email PDF payslips from Google Sheets with Gmail

Unknown

by Khairul Muhtadin ✓ · 585 views · created 2025-11-09 · HR

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets, Gmail and Puppeteer (community).

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Company Configuration (Edit Fields (Set)): sets or maps fields
  2. Fetch Payroll Data (Google Sheets): uses Google Sheets
  3. Check Email Not Sent (Filter): keeps only the items that match a condition
  4. Iterate Payslip Rows (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Prepare Payslip Data (Code): runs custom JavaScript code
  6. Generate Payslip HTML (HTML): parses or builds HTML
  7. Generate Payslip PDF (Puppeteer): uses Puppeteer
  8. Create PDF File (Convert to File): converts data to a file
  9. Send Payslip Email (Gmail): uses Gmail
  10. Mark Email Sent in Sheet (Google Sheets): uses Google Sheets

Services it uses

Google SheetsGmailPuppeteer (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-puppeteer is verified or supports 3.0 (used in Generate Payslip PDF).

Nodes used (10)

From the author

This workflow automates the entire payslip process by pulling payroll data directly from Google Sheets, generating a professional and secure PDF for each employee, and emailing it to them instantly. Save hours of manual HR administration, eliminate human…

Excerpt from Khairul Muhtadin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.