Templates / Analyze competitor marketing emails with Claude and Google Sheets

Analyze competitor marketing emails with Claude and Google Sheets

Ready for 3.0

by dilshi ✓ · 1 views · created 2026-10-07 · Market Research, 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 11 nodes and runs on a schedule (every day at 09:00). Along the way it connects Google Sheets, Gmail and Anthropic.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Set Analysis Settings (Edit Fields (Set)): sets 3 fields: gmailQuery, maxBodyChars, brandContext
  2. Get Logged Message IDs (Google Sheets): read
  3. Collect Logged IDs (Code): runs custom JavaScript code
  4. Get Competitor Emails (Gmail): get many (message)
  5. Filter and Prepare New Emails (Code): runs custom JavaScript code
  6. Analyze Email with Claude (Anthropic): uses Anthropic
  7. Parse Claude Analysis (Code): runs custom JavaScript code
  8. Log Insights to Google Sheets (Google Sheets): append
  9. Mark Email as Read (Gmail): mark as read (message)
  10. Add Analyzed Label (Gmail): add labels (message)

Services it uses

Google SheetsGmailAnthropic

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 (6)

From the author

Quick Overview This workflow runs daily, pulls recent competitor newsletter emails from Gmail, analyzes each message with Anthropic Claude, and appends structured insights and response ideas to Google Sheets, then marks processed emails as read and labeled so…

Excerpt from dilshi'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.