Track mandatory paid leave with Gemini, Gmail, Google Sheets and Slack
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (cron 0 9 1 * *). Along the way it connects Google Sheets, Google Gemini Chat Model, Gmail and Slack.
How it runs
Trigger: On a schedule (cron 0 9 1 * *).
- Set Leave Rule Parameters (Edit Fields (Set)): sets 6 fields: spreadsheetId, grantMethod, fixedGrantMonthDay…
- Fetch Employee Data from Sheets (Google Sheets): uses Google Sheets
- Fetch Leave Records from Sheets (Google Sheets): uses Google Sheets
- Merge: merges the data from its input branches
- Compute Leave Deadlines (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Gemini LLM Analysis (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Agent
- Notify Employee of Unused Leave (Gmail): uses Gmail
- Post Summary to HR on Slack (Slack): uses Slack
- Log Notifications in Sheets (Google Sheets): append
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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)
- Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Merge
n8n-nodes-base.merge - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Quick overview This monthly workflow reads employee and leave data from Google Sheets, calculates who risks missing Japan’s mandatory paid-leave minimum, generates Japanese reminder copy with Google Gemini, then emails employees via Gmail, posts a summary to…