Triage and route support emails with Gemini, Gmail, Sheets and Slack
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and Slack. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: On Gmail events.
- Set Configuration (Edit Fields (Set)): sets 3 fields: brandName, supportGuidelines, urgentKeywords
- Build Analysis Prompt (Code): runs custom JavaScript code
- Analyze Email with Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Parse AI Result (Code): runs custom JavaScript code
- Report Analysis Failure (Slack): uses Slack
- Log Ticket to Sheet (Google Sheets): append
- Mark Email as Read (Gmail): mark as read
- Route by Priority (Switch): routes items into 3 branches
- Draft Priority Reply (Gmail): work with draft
- Draft Standard Reply (Gmail): work with draft
…plus 3 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 (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack
From the author
Quick Overview This workflow monitors unread Gmail support emails, uses Google Gemini to classify and summarize each message and draft a reply, logs the ticket details to Google Sheets, creates a Gmail draft response, and sends a Slack alert when the ticket…