Classify Gmail intents with Google Gemini, Slack and Google Sheets
Ready for 3.0What 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.
- Extract Sender Subject Body (Edit Fields (Set)): sets 5 fields: Sender, Subject, Body…
- Bundle Emails for AI (Aggregate): combines items into one
- Classify Intent and Generate Actions (Google Gemini): uses Google Gemini
- Parse AI JSON Response (Code): runs custom JavaScript code
- Split AI Results Per Email (Split Out): splits a list into separate items
- Route by Email Intent (Switch): routes items into 5 branches
- Create Gmail Draft Reply (Gmail): work with draft
- Send Urgent Slack Complaint Alert (Slack): uses Slack
- Log FYI to Sheet (Google Sheets): append
- Log Spam to Sheet (Google Sheets): append
…plus 4 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)
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).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Google Tasks
n8n-nodes-base.googleTasks
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…