Classify support emails and send replies with Claude, Gmail, Slack and Sheets
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.
- Configure Settings (Code): runs custom JavaScript code
- Build Prompt (Code): runs custom JavaScript code
- Classify with Claude (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Sonnet Model
- Parse Output (Code): runs custom JavaScript code
- Route by Priority (Switch): routes items into 2 branches
- Create Gmail Draft (Gmail): work with draft
- Send Auto-Reply (Gmail): uses Gmail
- Prepare Slack Alert (Code): runs custom JavaScript code
- Log Normal Ticket (Google Sheets): append
- Alert Support Team (Slack): uses Slack
…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) (Gmail Trigger).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow monitors a Gmail inbox for unread support emails, uses Anthropic Claude to classify and draft replies, routes urgent tickets to Slack and a Gmail draft, auto-replies to normal tickets, and logs all tickets to Google Sheets for…