Templates / Classify Gmail intents with Google Gemini, Slack and Google Sheets

Classify Gmail intents with Google Gemini, Slack and Google Sheets

Ready for 3.0

by WeblineIndia ✓ · 51 views · created 2026-06-12 · 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 AI workflow has 15 nodes and runs on Gmail events. Along the way it connects Gmail, Google Gemini, Google Sheets and Slack and 1 more.

How it runs

Trigger: On Gmail events.

  1. Extract Sender Subject Body (Edit Fields (Set)): sets 5 fields: Sender, Subject, Body…
  2. Bundle Emails for AI (Aggregate): combines items into one
  3. Classify Intent and Generate Actions (Google Gemini): uses Google Gemini
  4. Parse AI JSON Response (Code): runs custom JavaScript code
  5. Split AI Results Per Email (Split Out): splits a list into separate items
  6. Route by Email Intent (Switch): routes items into 5 branches
  7. Create Gmail Draft Reply (Gmail): work with draft
  8. Send Urgent Slack Complaint Alert (Slack): uses Slack
  9. Log FYI to Sheet (Google Sheets): append
  10. Log Spam to Sheet (Google Sheets): append

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

Services it uses

GmailGoogle GeminiGoogle SheetsSlackGoogle Tasks

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) (Watch New Unread Emails).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (11)

From the author

Quick Overview This workflow monitors Gmail for new unread emails, uses Google Gemini to classify each email’s intent, then creates Gmail draft replies and Slack alerts for questions/requests, escalates complaints with Slack and Google Tasks, and logs FYI and…

Excerpt from WeblineIndia'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.