Triage and reply to Gmail with Claude and log priority alerts to Slack
Ready for 3.0What this workflow does
This workflow has 17 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets, Slack and Airtable. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: On Gmail events.
- Extract Email Data (Edit Fields (Set)): sets 6 fields: messageId, threadId, from…
- Check If Already Processed (HTTP Request): calls an HTTP API
- Classify Email (HTTP Request): calls api.anthropic.com (POST)
- Parse Classification (Code): runs custom JavaScript code
- Route by Category (Switch): routes items into 4 branches
- Draft Reply (HTTP Request): calls api.anthropic.com (POST)
- Label Promotional (Gmail): add labels
- Merge Draft With Email (Code): runs custom JavaScript code
- Archive Promotional (Gmail): archive (thread)
- Create Gmail Draft (Gmail): work with draft
…plus 6 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)
HTTP calls to: api.anthropic.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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Airtable
n8n-nodes-base.airtable
From the author
Quick overview This workflow monitors Gmail for new messages, uses Anthropic Claude to classify and summarize them, then routes outcomes to Gmail (drafts/labels/archive), Slack alerts, Airtable task creation, and Google Sheets logging, with optional…