Growth
Build a state-based email funnel, not a fixed drip
Emails triggered by what users did (or didn't do), with clear exit conditions.
Prompt
Design and build lifecycle emails driven by user state rather than a fixed day-by-day drip. 1. Define the states from our data: signed up, activated (did the key action — help me define it), engaged, at risk (inactive N days), churned, paying. 2. For each transition, propose one email: the trigger, the condition that cancels it (for example the user already did the action), the subject and a short body. 3. Store which emails each user has received; never send the same lifecycle email twice. 4. Run the checks in a scheduled job that's safe to re-run. 5. Every lifecycle email needs an unsubscribe link and must respect user preferences. Work in small steps. Before changing anything, read the relevant code and tell me your plan in a few bullet points. Don't add new dependencies unless you explain why. When you're done, list every file you changed and how I can verify the result.
Best used in a coding agent with access to your repository: paste it into Claude Code, Cursor, Codex or Copilot chat.