Templates / Draft Gmail replies with Claude Sonnet and log decisions in Google Sheets

Draft Gmail replies with Claude Sonnet and log decisions in Google Sheets

Ready for 3.0

by Nour Charaf Eddin ✓ · 4 views · created 2026-08-12 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Normalize Email Content (Code): runs custom JavaScript code
  2. Find Threads Labeled send-approved (Gmail): get many (message)
  3. Fetch Full Thread History (Gmail): get (thread)
  4. Extract Approved Thread IDs (Code): runs custom JavaScript code
  5. Build Conversation Transcript (Code): runs custom JavaScript code
  6. Read Pending Replies (Google Sheets): uses Google Sheets
  7. Set Business Profile (Edit Fields (Set)): sets 6 fields: business_name, tone, key_facts…
  8. Match Approved to Pending (Code): runs custom JavaScript code
  9. Process with Claude AI (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Sonnet Model
  10. Send Approved Reply in Thread (Gmail): reply (message)

…plus 12 more steps. See the full node list below.

Services it uses

GmailAnthropic Chat ModelGoogle Sheets

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.

Nodes used (9)

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…

Excerpt from Nour Charaf Eddin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.