Onboarding

Welcome email series

A welcome email on sign-up, a tip the next day by push or email, and a getting-started email that only reaches users who have not created a first document yet.

EmailPushtrigger.eventdelaytimeWindowprefersegmentsgoalreentry: never
import { trigger, workflow } from 'sendwend';
import { e, u } from './contract';
import { activated } from './segments';
import { email, push } from './templates';

/**
 * Welcome series: a welcome the moment the account exists, a tip the
 * next day on the channel the user can be reached on, and a
 * getting-started email two days later. Creating a first document is
 * the goal: it ends the series for whoever gets there, so nobody is
 * told how to start after they already have.
 *
 * `sign_up` rather than `login`: the api sends it once per account, so
 * a user who predates the workflow is not welcomed on their next
 * sign-in. `never`: an account is created once.
 */
export const welcomeSeries = workflow({
  id: 'welcome_series',
  name: 'Welcome series',
  trigger: trigger.event(e.sign_up),
  reentry: { mode: 'never' },
  goal: { condition: activated, within: '7 days' },
})
  // Transactional: the user just asked for the account, so it goes out
  // whatever their topics.
  .email(email.welcome, { name: u.name })
  .delay('1 day')
  // A push at 3 a.m. is worse than none: hold until daytime in the
  // user's own time zone.
  .timeWindow({ between: ['09:00', '21:00'] })
  // Push to a registered device, else email: one tip, never both.
  .prefer(
    [push.tip, email.tip],
    { name: u.name },
    { label: 'tip by channel' }
  )
  .delay('2 days')
  .email(email.gettingStarted, { name: u.name });
Compiled canvasDrag to pan

When to use it

Every product with accounts needs one, and it is usually the first workflow worth writing. Use it as the frame for the first week: one message that confirms the account, one that teaches, one that points at the first real action. If the product has a single key action that predicts retention, pair it with the activation nudge, which waits for that action instead of following a schedule.

How it works

  1. 1A sign_up event starts the journey, once per account (reentry: never).
  2. 2The welcome email goes out at once. It is transactional, so topic opt-outs do not hold it back.
  3. 3One day later, timeWindow holds the journey until 09:00 to 21:00 in the user’s own time zone.
  4. 4prefer sends one tip: a push if the user has a registered device, an email otherwise.
  5. 5Two days later, the getting-started email goes out.
  6. 6At any step, a first document (the activated segment) is the goal: the journey ends there and counts a conversion.

Why it's built this way

The goal does the skipping

There is no "has the user activated?" branch before each message. The goal is checked before every step, so a user who creates a document on day one never receives the day-three getting-started email, and the conversion lands in the workflow’s numbers.

sign_up, not login

A login fires on every sign-in. Triggering on it would welcome long-standing users the first time they sign in after the workflow ships. sign_up is sent once per account.

One tip, on one channel

prefer decides once, when the step is reached: push for users with the app, email for the rest. Nobody gets the same tip twice, and a failed push retries as a push rather than falling through to email.

A 7-day attribution window

within: 7 days keeps the conversion meaningful: a first document a month later is not this series’ doing.

Make it yours

  • Swap the goal for your own activation event: a first project, a first integration, a first invite.
  • Change the daytime window, or add days to keep tips to weekdays.
  • Add a third tip with another delay and prefer; keep each message about one thing.
  • Drop the push template if you have no app: replace prefer with a plain .email().

What to measure

Goal conversion rate: the share of new accounts that create a first document within 7 days of signing up.

Also see Trial expiring email sequence.