πŸ’¬ Optimize Cold Email Copy with Claude, Instantly, and Google Sheets

⚑ 146 views Β· πŸ’¬ Lead Nurturing & AI Sales Agents

Description

Optimize Cold Email Copy with Claude, Instantly, and Google Sheets

Inspired by Karpathy’s Autoresearch, this workflow treats your cold email campaigns as continuous experiments. Instead of writing copy once and hoping for the best, it runs an automated optimization loop that evolves your emails based on real performance data.

How it works

  1. Runs on a schedule (every 6 hours)
  2. Pulls live campaign stats (open rate, reply rate) from Instantly
  3. Reads the current champion and challenger variants from Google Sheets
  4. Reads the full experiment history (last 10 rounds)
  5. Checks if both variants have enough data (200+ sends each)
  6. If below threshold, exits and waits for the next run
  7. If above threshold, feeds everything to Claude: both variants, metrics, experiment history, and the cold email program rules
  8. Claude declares a winner, explains why, and generates a new challenger with a specific hypothesis
  9. Safety check: if reply rate drops below the floor threshold, pauses and sends a Telegram alert instead of continuing
  10. Logs the full experiment (variants, metrics, winner, reasoning, change type) to Google Sheets
  11. Promotes winner, deploys new challenger to Instantly

What makes it different

What you need

Google Sheets setup

Active tab (A:F): Variant | Subject Line | Email Body | Sends | Open Rate | Reply Rate

Experiments tab (A:M): Experiment ID | Date | Champion Copy | Challenger Copy | Champion Subject | Challenger Subject | Champion Sends | Challenger Sends | Champion Reply Rate | Challenger Reply Rate | Winner | Change Type | Reasoning

Program tab (A:B): Rule Name | Rule Content (brand voice, constraints, off-limits topics, max word count, required variables, etc.)

Environment variables

πŸ”— Nodes Used

HTTP Request, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup