Templates / Review employee overtime compliance with Google Sheets, GPT-4o-mini, and Gmail

Review employee overtime compliance with Google Sheets, GPT-4o-mini, and Gmail

Needs changes

by iamvaar ✓ · 16 views · created 2026-08-22 · HR, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs on a schedule (every week at 18:00). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail.

How it runs

Trigger: On a schedule (every week at 18:00).

  1. Read Timesheet from Sheets (Google Sheets): uses Google Sheets
  2. Summarize: summarizes / groups the items
  3. Set Overtime Status Fields (Edit Fields (Set)): sets 9 fields: EmployeeName, EmployeeEmail, ManagerEmail…
  4. If: checks a condition and branches into true / false
  5. AI Overtime Escalation Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Model
  6. Build Overtime Approval Record (Edit Fields (Set)): sets 5 fields: EmployeeName, Department, TotalHours…
  7. Prepare Escalation Email Data (Edit Fields (Set)): sets 10 fields: EmployeeName, EmployeeEmail, ManagerEmail…
  8. Log Compliant Overtime Entry (Google Sheets): append
  9. Send Overtime Email (Gmail): uses Gmail
  10. Log Flagged Overtime Entry (Google Sheets): append

Services it uses

Google SheetsOpenAI Chat ModelGmail

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Overtime Escalation Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Overtime Escalation Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (8)

From the author

Quick overview This workflow runs weekly to total employee timesheet hours from Google Sheets, assess overtime thresholds, and use OpenAI to draft escalation notes for over-40-hour cases, then emails Payroll/HR via Gmail and logs outcomes back to Google…

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