Route critical out-of-office emails with Gmail, Gemini, Slack and Sheets
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs on Gmail events. Along the way it connects Gmail, Slack and Google Sheets. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: On Gmail events.
- Set Configuration Fields (Edit Fields (Set)): sets 8 fields: backupPersonName, backupPersonEmail, backupSlackUserId…
- Prepare Email Data (Edit Fields (Set)): sets 5 fields: fromEmail, subject, bodyText…
- Post to Gemini API (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Build Urgency Data (Edit Fields (Set)): sets 4 fields: isCritical, category, urgencyReason…
- If: checks a condition and branches into true / false
- Post to Slack Channel (Slack): uses Slack
- Reply to Client via Gmail (Gmail): reply
- Append to Sheets (Google Sheets): append
- Add Label in Gmail (Gmail): add labels
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
HTTP calls to: generativelanguage.googleapis.com
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (When Email Received).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow monitors a Gmail inbox for new unread emails, uses Google Gemini to classify whether each message is critical during out-of-office coverage, and for critical items alerts a backup on Slack, replies to the sender via Gmail, logs…