Skip to main content

Automate payroll processing with GPT-4, Google Sheets, PDF payslips & Slack alerts

Workflow preview

Workflow preview
100%
Automate payroll processing with GPT-4, Google Sheets, PDF payslips & Slack alerts preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automate your payroll process with this efficient workflow. Triggered monthly on the 28th, it fetches employee data from a Google Sheet, uses AI to calculate net salaries with tax and deductions, s...

Best for

  • HR automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.emailsend, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Automate payroll processing with GPT-4, Google Sheets, PDF payslips & Slack alerts
Workflow name
Automate payroll processing with GPT-4, Google Sheets, PDF payslips & Slack alerts

Automate your payroll process with this efficient workflow. Triggered monthly on the 28th, it fetches employee data from a Google Sheet, uses AI to calculate net salaries with tax and deductions, structures payslip data, generates PDF payslips, and notifies employees via email while alerting HR on Slack. Ensure accurate payroll distribution with minimal manual effort. đź’°đź“§

Good to Know

  • The workflow runs on the 28th of each month to align with typical payroll cycles.
  • Ensure AI credentials and Google Sheet access are configured for smooth operation.

How It Works

  • The Monthly Payroll Trigger initiates the process on the 28th.
  • Gets Employee Data by reading salary and deduction details from a Google Sheet.
  • AI Calculates Salary applies tax and deduction rules to compute net pay.
  • Formats Payslip Data prepares structured data for distribution.
  • Generates PDF Payslip creates individual payslip documents.
  • Logs payroll data to a Google Sheet for records.
  • Branches to:
    • Sends Email Payslip to Employee with the PDF attachment.
    • Notifies HR on Slack with payroll completion details.

How to Use

  • Use the manual trigger for testing, then set a monthly cron (e.g., 0 0 28 * *) for live runs on the 28th.
  • Adjust tax and deduction rules in the AI node to match local regulations.

Requirements

  • GOOGLE_SHEET_ID: Your Google Sheet ID (structured as below)
  • Credentials Needed:
    1. Google Sheets OAuth2
    2. Gmail API Key
    3. OpenAI API Key (or similar)
    4. Slack Bot Token (with chat:write permissions)
  • Customize:
    • Employee data columns (e.g., ID, Name, Base Salary, Deductions)
    • Tax and deduction formulas
    • Email subject and Slack message format

Google Sheet Structure:

  1. Create a sheet with columns:
    • Employee ID
    • Name
    • Base Salary
    • Deductions
    • Net Salary
    • Payslip Status
    • Updated At

Customizing This Workflow

  • Adapt for bi-weekly payroll by adjusting the trigger to the 14th and 28th.
  • Integrate with HR systems like BambooHR for real-time employee updates.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Monthly Payroll Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.1

Block 2 - Get Employee Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.2

Block 3 - AI Calculate Salary

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 4 - Format Payslip Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Log to Payroll Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.2

Block 6 - Generate PDF Payslip

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 7 - Email Payslip to Employee

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 8 - Notify HR on Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.1

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate payroll processing with GPT-4, Google Sheets, PDF payslips & Slack alerts
Complexity intermediate
Nodes 14
Categories HR, AI Summarization
Author Oneclick AI Squad
Published 24 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10107/10107.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate payroll processing with GPT-4, Google Sheets, PDF payslips & Slack alerts do?

Automate your payroll process with this efficient workflow. Triggered monthly on the 28th, it fetches employee data from a Google Sheet, uses AI to calculate net salaries with tax and deductions, s...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your HR, AI Summarization use case.