Templates / Triage and route support emails with Gemini, Gmail, Sheets and Slack

Triage and route support emails with Gemini, Gmail, Sheets and Slack

Ready for 3.0

by Oka Hironobu ✓ · 31 views · created 2026-07-16 · Ticket Management, AI Summarization

Ready 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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.

  1. Set Configuration (Edit Fields (Set)): sets 3 fields: brandName, supportGuidelines, urgentKeywords
  2. Build Analysis Prompt (Code): runs custom JavaScript code
  3. Analyze Email with Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
  4. Parse AI Result (Code): runs custom JavaScript code
  5. Report Analysis Failure (Slack): uses Slack
  6. Log Ticket to Sheet (Google Sheets): append
  7. Mark Email as Read (Gmail): mark as read
  8. Route by Priority (Switch): routes items into 3 branches
  9. Draft Priority Reply (Gmail): work with draft
  10. Draft Standard Reply (Gmail): work with draft

…plus 3 more steps. See the full node list below.

Services it uses

GmailGoogle SheetsSlack

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)

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…

Excerpt from Oka Hironobu's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.