CORTEXFLOW · FREE FOREVER

Automation

Hyper-Personalized Cold Email Outreach

↓ Download workflow JSON

Import in n8n: Workflows → ⋯ → Import from file, then add your credentials. Free download with a free account.

How it works

  1. Daily Outreach Timer — starts the run every day at 9:00 AM.
  2. Read Unsent Leads — pulls leads with status=unsent from Google Sheets. Keep at most 20 unsent rows queued per day so sends stay paced.
  3. Process Leads One-by-One — a loop node that handles exactly one lead per pass, so every email goes through the full personalization pipeline.
  4. Write First Line (AI) — GPT writes a 1–2 sentence personalized opener from the lead’s name, role, company, and recent activity.
  5. Compose Email — builds the full email: subject line, HTML body with the AI opener, and your one-click unsubscribe link.
  6. Send Email — sends the composed email via Gmail.
  7. Wait 90 Seconds — pauses between sends to stay comfortably inside Gmail’s rate limits.
  8. Mark Lead Sent — updates the lead’s status to sent in the sheet, then loops back to the next lead.
  9. Unsubscribe Webhook — a second, independent chain that receives unsubscribe clicks with an email query parameter.
  10. Mark Opted Out — sets that lead’s status to opted-out in the sheet, so they are never emailed again.

Set up steps

You’ll need:

  • n8n (self-hosted or cloud)
  • A Google Sheet of leads you have the right to email, with columns email, first_name, last_name, company, role, recent_post, and status — only ever use an opt-in or legitimately prospected list
  • A Gmail account — you will connect it via OAuth in n8n
  • An OpenAI account — get an API key at platform.openai.com → API keys
  1. Download the workflow JSON using the download button on this page.
  2. In n8n, go to Workflows → ⋯ → Import from file and select the JSON.
  3. Connect Google Sheets — in n8n go to Credentials → New → Google Sheets, connect via OAuth, and save. Then open Read Unsent Leads and Mark Lead Sent, select your spreadsheet and the Leads sheet, and check the column names match.
  4. Connect Gmail — in n8n go to Credentials → New → Gmail, connect via OAuth, and save. Then open Send Email and select your credential.
  5. Create your OpenAI credential — in n8n go to Credentials → New → OpenAI, paste your API key, and save. Then open Write First Line (AI) and select your credential.
  6. Set your unsubscribe URL — open Compose Email and replace https://yourdomain.com/unsubscribe with your real one-click unsubscribe link. It must work without requiring a login.
  7. Wire up unsubscribes — point your unsubscribe link at the Unsubscribe Webhook URL with ?email= appended, so clicks automatically flip the lead to opted-out.
  8. Activate the workflow (toggle, top-right). Then monitor replies yourself — any reply means a human takes over; the workflow never auto-replies to responses.

Compliance note: only email people you have permission to contact, always include the working unsubscribe link, and honor opt-outs immediately. Rules like CAN-SPAM and GDPR apply — this template gives you the mechanics; the list is your responsibility.

Customize it

  • Change send time and volume — edit the cron in Daily Outreach Timer and the 90-second Wait (longer waits are safer for larger lists; shorter days keep volumes conservative).
  • Rewrite the email — edit the template in Compose Email to match your voice and offer (keep the unsubscribe link in place).
  • Personalize deeper — add more lead columns (for example industry or pain_point) and reference them in the Write First Line (AI) prompt.
  • Catch replies fast — add a Gmail Trigger chain that flags replies in Slack, so your team responds within hours instead of days.

Workflow nodes

This workflow is built from 10 nodes. Here's what each one does:

#NodeTypeWhat it does
1 Daily Outreach Timer Schedule Trigger Starts the workflow automatically on a schedule.
2 Read Unsent Leads Google Sheets Reads from or writes to a Google Sheet — this workflow's log and state store.
3 Process Leads One-by-One Split In Batches Processes a long list of items in small batches.
4 Write First Line (AI) OpenAI Sends a prompt to OpenAI and returns the AI's answer.
5 Compose Email Set Holds editable configuration values — fill in your own settings here before activating.
6 Send Email Gmail Sends or reads email through your Gmail account.
7 Wait 90 Seconds Wait Pauses the workflow until a condition or time is met.
8 Mark Lead Sent Google Sheets Reads from or writes to a Google Sheet — this workflow's log and state store.
9 Unsubscribe Webhook Webhook Entry point — receives incoming HTTP requests that trigger the workflow.
10 Mark Opted Out Google Sheets Reads from or writes to a Google Sheet — this workflow's log and state store.

Setup instructions

1. Add your credentials

In n8n go to Credentials → New, create each credential below, then open the named node and select it:

NodeCredential to add
Read Unsent Leads Google Sheets OAuth2
Write First Line (AI) OpenAI API
Send Email Gmail OAuth2
Mark Lead Sent Google Sheets OAuth2
Mark Opted Out Google Sheets OAuth2

How this workflow starts

  • Schedule Trigger: Runs every cron.
  • Webhook: Listens on path /cortexflow-unsubscribe — copy the production URL from the node after activating the workflow.

Use cases

Cold email still works — but only if every email feels written for its recipient and your sending stays disciplined. This template runs one daily campaign from a Google Sheet: Daily Outreach Timer fires at 9:00 AM, Read Unsent Leads pulls leads with status=unsent (capped at about 20 a day), and Process Leads One-by-One loops through them. For each lead, Write First Line (AI) writes a 1–2 sentence personalized opener from the lead's name, role, company, and recent activity, Compose Email builds the full message with your one-click unsubscribe link, and Send Email sends it via Gmail. Wait 90 Seconds paces the sends inside Gmail's rate limits, Mark Lead Sent flips the status, and the loop continues. A separate Unsubscribe Webhook chain receives opt-out clicks and Mark Opted Out flips those leads to opted-out so they're never emailed again.

Lead-gen agency running outreach for clients

A 3-person agency running outbound for five clients needs personalization at scale without a copywriter per account. Each client gets their own sheet tab; the AI opener references the lead's role, company, and recent_post column, so "noticed your team just launched the Berlin office" lands in every email without manual research. The 20-a-day cap and 90-second waits keep each client's Gmail account safe — and if a client wants more volume, you spin up a second Gmail sender rather than pushing one account past its limits. Practical tip: add industry and pain_point columns and reference them in the Write First Line (AI) prompt; the deeper the inputs, the less the opener sounds like a template.

SaaS founder doing founder-led sales

A founder emailing 20 prospects a day personally can't also run the company. This workflow sends at 9 AM while you have coffee: every email carries a genuinely personal first line, the unsubscribe link keeps you compliant, and — critically — the workflow never auto-replies to responses, so any reply lands in your inbox for a human to handle. Start with the guide's compliance note taken seriously: only email people you have the right to contact, and make the unsubscribe link work without a login. Variation: add a Gmail Trigger chain that flags replies in Slack so you respond within hours instead of discovering them at day's end — the guide suggests this as the single highest-leverage addition.

Recruiter sourcing passive candidates

Recruiters email engineers who get five recruiter emails a week — the generic ones get deleted. With a recent_post column capturing a candidate's recent talk, open-source release, or job move, the AI opener references something real: "saw your post on migrating to event-driven architecture" beats "I came across your profile" every time. The loop node means each candidate still gets full personalization even at 20 a day, and Mark Lead Sent plus the sheet status columns give you a clean record of who was contacted and when — no double-emailing candidates across months. Tip: for hard-to-fill roles, slow the pace deliberately (edit the 90-second Wait upward) and raise the quality bar in the opener prompt instead of raising volume.

Freelance designer or copywriter pitching studios

A freelancer pitching 100 studios over a month needs consistency more than volume. Queue all 100 rows with status=unsent, cap the daily sends, and let the workflow drip them out over five days while you do billable work. The Compose Email template is fully editable — write it in your own voice, show one line of proof (a result, a link), and keep the ask to a 15-minute call. The Unsubscribe Webhook chain handles opt-outs automatically, which matters when you're emailing cold: one-click unsubscribe that actually works keeps your domain reputation clean and keeps you on the right side of CAN-SPAM and GDPR. Practical variation: segment by role — studio founders get one email angle, marketing heads another — by filtering rows before each run.

Consultant testing two offers side by side

Because the email template lives in one node, A/B testing is simple: duplicate the workflow, change the subject line and opener angle in Compose Email in each copy, and point them at two halves of your sheet. After two weeks, compare reply rates in your inbox — the sheet's sent timestamps let you line up cohorts exactly. The per-lead loop through Process Leads One-by-One guarantees both variants get identical personalization quality, so the test measures the offer, not the opener. Tip: never test deliverability factors (send time, volume) at the same time as message factors — change one variable, hold the other constant, and give each test at least 100 leads before judging.

← All templates