Prioritize exception queues with Gemini, Google Sheets, Slack and Gmail
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Google Sheets, Gmail and Slack. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Config Variables (Edit Fields (Set)): sets 3 fields: sheet1Name, sheet2Name, slackChannel
- Read Exceptions from Sheet (Google Sheets): uses Google Sheets
- Exceptions Available? (If): checks a condition and branches into true / false
- Format Data for AI (Code): runs custom JavaScript code
- No Exceptions Found (Respond to Webhook): sends the response back to the webhook caller
- AI — Rank & Prioritize (HTTP Request): calls generativelanguage.googleapis.com (POST)
- AI Results (Code): runs custom JavaScript code
- Save Summary to Sheet (Google Sheets): append or update
- Slack: uses Slack
- Check Critical Alerts (If): checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
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.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - Respond to Webhook
n8n-nodes-base.respondToWebhook - Slack
n8n-nodes-base.slack
From the author
Quick Overview This workflow receives a webhook trigger, reads exception records from Google Sheets, uses Google Gemini (Generative Language API) to rank and summarize them, posts a prioritized report to Slack, writes summary metrics back to Google Sheets,…