Skip to main content

Prompt: a state-machine email funnel, not a 7-day drip

Paste this into Claude Code, Cursor or Codex inside your repo. The agent maps the states your product already has (signed up, created the thing, live, quiet), then adds one stamped email per transition - including, when the next action is a code change on their site, a short prompt they can paste into Cursor.


Copy prompt

The prompt

Paste it into an agent that has your repo open. It plans first and waits for your OK before writing code.

112 lines · ~2,163 tokens

Or paste one line

Fetch https://www.scrolllaunch.com/prompts/email-lifecycle-funnel.md and carry out the prompt in its "Prompt" section on this repo. Show me your plan before writing code.

For agents that can fetch URLs. The agent pulls the full prompt from this page's markdown version, which includes the last step above.

What you get

What your repo has when the agent is done

  • A plan table: state, audience query, email, stamp, transactional vs marketing
  • One <emailKey>SentAt stamp per mail, used as the only idempotency key
  • Time-gated stages run first so always-on nudges cannot eat the send budget
  • ?test= sends one of each template and writes no stamps; ?dryRun=1 prints counts
  • Marketing honors unsubscribe; receipts and magic links still send
  • When the next action is a snippet on their site, the email includes a short Cursor prompt plus the exact HTML
  • Tests that a stamped user is skipped and that two matching stages only send one mail that day

Check your result

Deployed? Score your site

Runs your live URL through the free SPF DKIM DMARC Checker. Free SPF, DKIM, and DMARC checker - plus MX - so founder email is less likely to land in spam.

This checker only scores SPF, DKIM and DMARC. The funnel itself is in-app. Pair with the email-deliverability prompt if DNS is missing; then send one test of each new template to yourself.

How to use

4 steps from paste to deploy

  1. 1

    Open your repo in a coding agent

    Claude Code, Cursor (agent mode), Codex or Windsurf, with the mailer and user/product records readable.

  2. 2

    Paste the prompt and cut the state table

    Keep 4-6 states. Delete any email that is the same pitch on a timer. Mark transactional vs marketing before anything is sent.

  3. 3

    Say OK, then run dryRun

    The agent adds stamps, crons and templates. `dryRun=1` should print audience counts and write nothing.

  4. 4

    Send the test inbox, then check DNS

    Hit the job with `test=` to your address. After deploy, run your sending domain through the email auth checker.

Next

Shipped it? Put it in front of people

Launch on ScrollLaunch

A week on the leaderboard and a permanent product page with a markdown version that AI agents can read. Free launches get a dofollow backlink while the badge stays on your site.

Questions

Email lifecycle funnel prompt FAQ

How is this different from a ConvertKit sequence?

A sequence is the same pitch on day 1, 3 and 7. This prompt builds a state machine: if they already created the object, they never get the 'you haven't created anything' mail. Each email is stamped on the object and cannot fire twice.

Should login emails go through this funnel?

No. Magic links, password resets and receipts stay transactional and out of the state table. This prompt tells the agent not to rewrite them except to add a plain-text part.

Why put a Cursor prompt inside an email?

When the next step is 'paste this HTML on your site', most people will not. A 15-line prompt they can drop into Cursor / Claude does the edit, and a curl of their homepage is how you verify it. The proof-badge prompt is the full version of that pattern.

More prompts

Other prompts