Triage Gmail inbox, draft replies, and alert urgent emails with Claude and Slack
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on Gmail events. Along the way it connects Gmail, Anthropic Chat Model, Slack and Google Sheets.
How it runs
Trigger: On Gmail events.
- Extract Email Data (Edit Fields (Set)): sets 6 fields: email_id, sender, subject…
- Classify Email Intent (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Sonnet
- Parse Classification (Code): runs custom JavaScript code
- Route by Category (Switch): routes items into 5 branches
- Notify Urgent Email (Slack): uses Slack
- Save Draft Reply (Gmail): create draft
- Label as FYI and Mark Read (Gmail): mark as read
- Label and Archive Automated (Gmail): add labels
- Move Spam to Trash (Gmail): delete
- Label as Urgent (Gmail): add labels
…plus 2 more steps. See the full node list below.
Services it uses
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) (Check for New Emails).
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Overview Your inbox shouldn't run your day. This workflow checks Gmail every 15 minutes, uses Claude AI to classify every new email into Urgent, Needs Reply, FYI Only, Automated, or Spam — then takes the right action automatically: Slack alert for urgent,…