Draft Gmail replies with Claude Sonnet and log decisions in Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, Anthropic Chat Model and Google Sheets.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Normalize Email Content (Code): runs custom JavaScript code
- Find Threads Labeled send-approved (Gmail): get many (message)
- Fetch Full Thread History (Gmail): get (thread)
- Extract Approved Thread IDs (Code): runs custom JavaScript code
- Build Conversation Transcript (Code): runs custom JavaScript code
- Read Pending Replies (Google Sheets): uses Google Sheets
- Set Business Profile (Edit Fields (Set)): sets 6 fields: business_name, tone, key_facts…
- Match Approved to Pending (Code): runs custom JavaScript code
- Process with Claude AI (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Sonnet Model
- Send Approved Reply in Thread (Gmail): reply (message)
…plus 12 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Anthropic + Google Sheets templates (261) · Other Anthropic + Gmail templates (192)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow monitors unread Gmail inbox messages, uses Anthropic Claude to decide whether a reply is needed and draft a response in your business voice, creates a Gmail draft in the original thread, and logs the email details and AI decision…