Approve shift swaps against the roster with Google Sheets, Gmail, Telegram, and GPT-4o-mini
Ready for 3.0What this workflow does
This AI workflow has 39 nodes and runs when an HTTP POST request hits its webhook URL (plus 3 other triggers). Along the way it connects Telegram, OpenAI Chat Model, Google Sheets and Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 3 other triggers).
- Set Normalize Shift Request (Edit Fields (Set)): sets 8 fields: received_at, request_id, employee_name…
- Normalize Manager Decision (Code): runs custom JavaScript code
- Read Pending Swaps (Google Sheets): read
- Get Swaps from Sheet (Google Sheets): uses Google Sheets
- Validate Shift Request (If): checks a condition and branches into true / false
- Look Up Swap Request (Google Sheets): read
- Find Overdue Reviews (Code): runs custom JavaScript code
- Count Monthly Swaps (Code): runs custom JavaScript code
- Read Roster (Google Sheets): read
- Notify Invalid Request (Telegram): uses Telegram
…plus 23 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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 (10)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code
From the author
Shift swaps usually live in a group chat and a paper rota, so nobody is sure who approved what. This workflow takes swap requests from your form or internal tool, checks them against the roster and earlier requests, lets a GPT-6.1-sol agent add its judgement,…