Plan and approve standby staffing recovery with Gemini, Google Sheets, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 29 nodes and runs on a schedule (every day at 18:00). Along the way it connects Google Sheets, Gmail and Google Gemini.
How it runs
Trigger: On a schedule (every day at 18:00).
- Configure workflow settings (Edit Fields (Set)): sets 8 fields: spreadsheet_id, units_per_person_per_hour, workload_sheet_name…
- Read daily workload (Google Sheets): uses Google Sheets
- Read staff schedules (Google Sheets): uses Google Sheets
- Read standby staff availability (Google Sheets): uses Google Sheets
- Calculate daily staffing gaps (Code): runs custom JavaScript code
- Is staffing shortage detected? (If): checks a condition and branches into true / false
- Generate staffing recovery proposal (Google Gemini): uses Google Gemini
- Is staffing data complete? (If): checks a condition and branches into true / false
- Validate AI staffing proposal (Code): runs custom JavaScript code
- Notify manager of missing staffing data (Gmail): uses Gmail
…plus 18 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
From the author
Quick Overview This workflow runs daily to detect next-day staffing shortages from Google Sheets, generates a standby staffing proposal with Google Gemini, requests manager approval via Gmail, and—only after approval—emails invitations to selected standby…