Conversion

Upgrade email when a user hits a usage limit

When a free user runs into a plan limit (seats, storage or documents), an email about that specific limit, then a plan comparison three days later. At most once a month.

Emailtrigger.eventtrigger filterpayload refsdelaybranchperformedgoalreentry: after_exitcooldown
import { eq, performed, trigger, workflow } from 'sendwend';
import { e, u } from './contract';
import { email } from './templates';

/** A free user hit a plan limit: the payload says which one. */
const limit = trigger.event(e.usage_limit_reached, {
  filter: eq(u.subscription_plan, 'free'),
});

/**
 * Upgrade nudge on hitting a usage limit: the moment a free user runs
 * into the plan's ceiling is the moment the paid plan answers a problem
 * they have right now. The first email is about that limit, not about
 * upgrading in general; a plan comparison follows three days later.
 *
 * A three-arm branch on the triggering event's payload picks the email.
 * The trigger's `filter` keeps paying users out before an instance
 * exists. `after_exit` with a 30-day cooldown: a user who hits limits
 * every day hears about it at most once a month.
 */
export const usageLimitUpgradeNudge = workflow({
  id: 'usage_limit_upgrade_nudge',
  name: 'Usage limit upgrade nudge',
  trigger: limit,
  reentry: { mode: 'after_exit', cooldown: '30 days' },
  goal: { condition: performed(e.purchase), within: '14 days' },
})
  .branch(
    'which limit',
    [
      eq(limit.payload.limit, 'members'),
      (w) => w.email(email.limitMembers, { name: u.name }),
    ],
    [
      eq(limit.payload.limit, 'storage'),
      (w) => w.email(email.limitStorage, { name: u.name }),
    ],
    (w) => w.email(email.limitDocs, { name: u.name })
  )
  .delay('3 days')
  .email(email.comparePlans, { name: u.name });
Compiled canvasDrag to pan

When to use it

For freemium products with hard limits. Hitting a limit is the moment a free user discovers, first-hand, what the paid plan is for; an email about that exact limit is relevant in a way a generic upgrade pitch is not.

How it works

  1. 1A usage_limit_reached event starts it, but only for users on the free plan (the trigger’s filter).
  2. 2A three-arm branch on the event’s limit field picks the email: seats, storage, or documents (the default arm).
  3. 3Three days later, an email compares the plans.
  4. 4A purchase within 14 days is the goal.

Why it's built this way

The payload picks the message

limit.payload.limit is the field of the event that started the journey. Branching on it gives each limit its own email without three workflows.

Paying users never enter

The trigger’s profile filter is tested before an instance exists, so users already on a paid plan leave no trace in this workflow’s numbers.

Once a month, at most

A user can hit limits every day. after_exit with a 30-day cooldown starts one nudge, then ignores further limit events for a month.

Make it yours

  • Add an arm per limit your product has; the last, bare sub-flow is the default.
  • Send the first message in-product as well, through your own UI, and keep the email as the follow-up.
  • Lengthen the cooldown if your limits are soft and users hit them often.

What to measure

Free-to-paid conversion within 14 days of hitting a limit, per limit type.

Also see Milestone celebration email and push.