AI Email Campaign Automation with Claude Code and n8n
AI email campaign automation with Claude Code and n8n connects subscriber segments in Google Sheets to Mailchimp campaigns through the n8n MCP server. When triggered, the workflow reads segment data, passes it to Claude Code which writes personalized subject lines and body copy for each segment, creates a Mailchimp campaign with the AI-generated copy, sends it at an optimized time, captures open and click data via webhook, and logs performance back to Google Sheets. Campaign creation drops from 6 hours of manual copywriting to 30 minutes of AI-assisted production.
Primary Intelligence Summary: This analysis explores the architectural evolution of ai email campaign automation with claude code and n8n, focusing on the implementation of agentic AI frameworks and autonomous orchestration. By understanding these 2026 intelligence patterns, agencies and startups can build more resilient, self-correcting systems that scale beyond traditional automation limits.
Written By
SaaSNext CEO
What Is AI Email Campaign Automation with Claude Code and n8n
AI email campaign automation with Claude Code and n8n connects subscriber segments in Google Sheets to Mailchimp campaigns through the n8n MCP server. When triggered, the workflow reads segment data, passes it to Claude Code which writes personalized subject lines and body copy for each segment, creates a Mailchimp campaign with the AI-generated copy, sends it at an optimized time, captures open and click data via webhook, and logs performance back to Google Sheets. Campaign creation drops from 6 hours of manual copywriting to 30 minutes.
[ STAT ] Personalized email campaigns see 4.3x higher CTR than batch sends. — Litmus Email Analytics, 2025
THE REAL PROBLEM
Email marketers spend 6-10 hours per campaign writing segmented copy. For a marketer running 4 campaigns per month to 5+ segments each, that is 24-40 hours of copywriting. Most teams compromise — they write one version and batch send, accepting the CTR penalty. According to Litmus's 2025 Email Analytics Report, personalized campaigns see 4.3x higher click-through rates than batch-and-blast sends, but 68% of marketers cite time constraints as the barrier to personalization. Claude Code connected to n8n via MCP solves this by writing copy for every segment in parallel.
WHAT IT DOES
This workflow reads subscriber segments from Google Sheets, sends each segment's profile to Claude Code via MCP, and receives personalized copy including subject lines, preview text, and body paragraphs. The copy is loaded into a Mailchimp campaign with segment targeting. After sending, open and click data flows back into Google Sheets. Underperforming segments automatically trigger a re-engagement sequence.
HOW IT RUNS: STEP BY STEP
- Google Sheets Trigger reads rows with segment fields: name, size, preference scores, past CTR.
- Claude Code MCP Node receives segment data and returns subject line + body copy per segment.
- Mailchimp Create Campaign Node uses Claude's output to build and target each segment.
- Schedule Node sends the campaign at optimal time based on past open data.
- Mailchimp Webhook Node captures opens and clicks for 48 hours post-send.
- Google Sheets Append Node writes performance data back to the segment sheet.
SETUP AND TOOLS
Mailchimp requires API key with campaign write scope. GOTCHA: Rate limited to 10 campaign creations per hour. Google Sheets OAuth needs access to the segment sheet. Claude Code MCP connects via claude mcp add with N8N_API_URL and N8N_API_KEY.
THE NUMBERS
- Copywriting time: 6 hours manual to 30 min AI (Ability.ai, 2026). 2. CTR: 1.2% batch to 4.3% personalized (Litmus, 2025). 3. Segments: 1-2 to 10+ per campaign. 4. Campaigns per month: 4 to 12 with AI-assisted production.
WHAT IT CANNOT DO
- (moderate) AI copy needs brand voice tuning in the prompt. 2. (moderate) Mailchimp rate limits at 10 campaign creations per hour. 3. (minor) A/B test data requires 24+ hours for statistical significance.
START IN 10 MINUTES
- (2 min) Connect Google Sheets with subscriber segments. 2. (3 min) Generate Mailchimp API key. 3. (3 min) Run claude mcp add n8n-mcp with your n8n URL and API key. 4. (2 min) Prompt Claude: Build an email campaign workflow that reads segments from Sheet, writes AI copy per segment, creates Mailchimp campaigns, and tracks results.
FAQ
Q: Can Claude write email copy that matches my brand voice? A: Yes. Provide brand guidelines in the prompt. Include examples of past emails for style reference. Add tone instructions to Claude's system prompt for consistency.
Q: Does this workflow handle A/B testing? A: Yes. Add an A/B test node after copy generation that creates variant subject lines for each segment and tracks which performs best.