Recovery

Pre-churn save flow when auto-renew is turned off

When a subscriber switches off auto-renew: what changes when the plan ends, then a Slack alert to sales for business accounts or a discount for the rest. Switching renewal back on ends it.

EmailSlacktrigger.eventdelaybranchsegmentsgoalexitWhenreentry: after_exitcooldownSlack
import { eq, trigger, workflow } from 'sendwend';
import { e, u } from './contract';
import { activeSubscriber } from './segments';
import { email, slack } from './templates';

/**
 * Pre-churn save when auto-renew is switched off: the subscription
 * still runs, so there is time to show what ends with it and, for the
 * accounts worth a call, to make one. Switching renewal back on is the
 * goal.
 *
 * The goal is a segment (`activeSubscriber`: active and renewing),
 * checked before every step, so a user who flips the switch back
 * mid-journey leaves with a conversion counted. `exitWhen` covers the
 * other ending: once the subscription is gone, saving it is moot.
 */
export const preChurnSave = workflow({
  id: 'pre_churn_save',
  name: 'Pre-churn save',
  trigger: trigger.event(e.auto_renew_disabled),
  reentry: { mode: 'after_exit', cooldown: '30 days' },
  goal: activeSubscriber,
  exitWhen: eq(u.subscription_status, 'none'),
})
  // Time for a mis-click to be undone before anyone hears about it.
  .delay('2 hours')
  .email(email.renewalOff, { name: u.name, plan: u.subscription_plan })
  .delay('5 days')
  .branch(
    'by plan',
    [
      eq(u.subscription_plan, 'business'),
      (w) =>
        w.slack(slack.accountAtRisk, {
          email: u.email,
          plan: u.subscription_plan,
        }),
    ],
    (w) =>
      w.email(email.offer, { coupon: 'RENEW20', expiresIn: '7 days' })
  );
Compiled canvasDrag to pan

When to use it

When customers can turn off renewal before their subscription ends. Unlike a cancellation, the plan is still running: there is time to remind them what they would lose and, for accounts worth it, to talk.

How it works

  1. 1An auto_renew_disabled event starts it.
  2. 2It waits two hours, giving a mis-click time to be undone.
  3. 3An email explains what is kept and what ends with the plan.
  4. 4Five days later, business accounts go to sales in Slack; everyone else gets a discount to renew.
  5. 5The activeSubscriber segment (active and renewing) is the goal; a subscription that ends triggers exitWhen.

Why it's built this way

A segment as the goal

goal: activeSubscriber is checked before every step: a user who turns renewal back on at any point leaves with a conversion recorded.

Two hours first

Toggles get flipped by accident. The short delay lets the goal catch an immediate undo before any message goes out.

exitWhen for the other ending

Once the subscription has ended, “keep your plan” no longer makes sense. exitWhen ends the journey without counting it as a save.

Make it yours

  • Time the second step to your billing period, so it lands before the plan actually ends.
  • Offer an annual plan or a pause instead of a discount.
  • Add a survey step asking why, as in the cancellation exit survey.

What to measure

Save rate: users who turn renewal back on before the plan ends.

Also see Trial expiring email sequence.