Templates / Automated employee attendance & salary deduction with Google Sheets and GPT-4

Automated employee attendance & salary deduction with Google Sheets and GPT-4

Ready for 3.0

by Mohamed Abubakkar ✓ · 897 views · created 2025-12-09 · HR, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 12 nodes and runs on a schedule (every month). Along the way it connects Google Sheets and OpenAI Chat Model.

How it runs

Trigger: On a schedule (every month).

  1. Employees Attendant Sheet (Google Sheets): uses Google Sheets
  2. Calculate hours per day (Code): runs custom JavaScript code
  3. Employees Salary Sheet (Google Sheets): uses Google Sheets
  4. Merge: merges the data from its input branches
  5. Calculate Salary Deduction (Code): runs custom JavaScript code
  6. Adding the report to new sheet (Google Sheets): append
  7. Generate AI Summary Report (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  8. Convert the result to JSON format (Code): runs custom JavaScript code
  9. Send Salary Deduction Report Email (Send Email): sends an email over SMTP
  10. Save Email Log to Sheet (Google Sheets): append

Services it uses

Google SheetsOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

Overview This workflow is designed for HR teams and payroll department to automate the monthly process of calculating employee attendance, salary deductionsm and personalized email notification. It seamlessly integrates Google Sheets, internal attendance data…

Excerpt from Mohamed Abubakkar'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.