Triage and route support emails with Gemini, Gmail, Sheets and Slack
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
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
What it does
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 is marked high priority. How it works 1. Triggers every minute when a new unread email arrives in Gmail. 2. Adds brand context and support guidelines, then builds a prompt that asks Google Gemini to return a JSON classification, priority, summary, and suggested reply. 3. Sends the prompt to the Google Gemini API and parses the returned JSON into structured ticket fields. 4. Appends the ticket details (sender, subject, category, priority, summary, and suggested reply) to a Google Sheets tab. 5. Creates a Gmail draft reply in the original thread using the suggested response text. 6. Sends a Slack message to a chosen channel when the ticket priority is high. Setup 1. Connect credentials for Gmail, Google Gemini (PaLM) API, Google Sheets, and Slack. 2. Update the brand name and support guidelines values used to guide Gemini’s response. 3. Select the target Google Sheets spreadsheet and the “Tickets” sheet (and ensure your header columns match the fields you want to log). 4. Choose the Slack channel to receive high-priority alerts.