Templates / Monitor overtime risk against Japanese labour caps with Gemini, Sheets, Slack & Gmail

Monitor overtime risk against Japanese labour caps with Gemini, Sheets, Slack & Gmail

Ready for 3.0

by Oka Hironobu ✓ · 4 views · created 2026-07-19 · 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-10-19.

What this workflow does

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

How it runs

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

  1. Set Legal Limits (Edit Fields (Set)): sets 4 fields: monthlyLimit, warningThreshold, singleMonthMax…
  2. Get Attendance Records (Google Sheets): uses Google Sheets
  3. Aggregate Overtime by Employee (Code): runs custom JavaScript code
  4. Assess Overtime Risk with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Overtime Risk Parser
  5. Parse Overtime Risk (Code): runs custom JavaScript code
  6. Report Assessment Failure (Slack): uses Slack
  7. Update Overtime Status (Google Sheets): append or update
  8. Route by Risk Level (Switch): routes items into 3 branches
  9. Alert HR Immediately (Slack): uses Slack
  10. Warn Manager Early (Slack): uses Slack

…plus 2 more steps. See the full node list below.

Services it uses

Google SheetsGoogle Gemini Chat ModelSlackGmail

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.

Nodes used (10)

From the author

Quick Overview This workflow runs weekly to read attendance overtime from Google Sheets, totals it per employee and month, uses Google Gemini to classify risk against Japanese labour-law limits, writes results back to Sheets, and escalates high-risk cases via…

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