Onboarding

Team invite reminder email

When an invited teammate has not joined after two days, reminds the inviter by name of the person invited, then suggests sharing a link instead. Ends when the invite is accepted.

Emailtrigger.eventpayload refsdelaytimeWindowperformedgoalreentry: after_exit
import { performed, trigger, workflow } from 'sendwend';
import { e, u } from './contract';
import { email } from './templates';

/**
 * The invite that starts the journey: its payload names who was
 * invited.
 */
const invite = trigger.event(e.teammate_invited);

/**
 * Team invite reminder: when a teammate has not accepted after two
 * days, remind the person who invited them, naming the invitee; three
 * days later, suggest sharing a link instead. An accepted invite is the
 * goal and ends it at any point.
 *
 * The invitee's address comes from the triggering event
 * (`invite.payload.invitee_email`), a snapshot taken at entry: no
 * profile field needed. `after_exit`: one reminder thread per inviter
 * at a time; invites sent while it runs do not start a second.
 */
export const teamInviteReminder = workflow({
  id: 'team_invite_reminder',
  name: 'Team invite reminder',
  trigger: invite,
  reentry: { mode: 'after_exit' },
  // `performed` in a goal counts from entry, so an acceptance before
  // this invite does not count.
  goal: { condition: performed(e.invite_accepted), within: '7 days' },
})
  .delay('2 days')
  .timeWindow({
    days: ['mon', 'tue', 'wed', 'thu', 'fri'],
    between: ['09:00', '17:00'],
  })
  .email(email.inviteReminder, {
    name: u.name,
    invitee: invite.payload.invitee_email,
  })
  .delay('3 days')
  .email(email.inviteLink, { name: u.name });
Compiled canvasDrag to pan

When to use it

For products that get better with a team: a workspace with one member is the one most likely to be abandoned. Invites often go unanswered because they land in a spam folder or a busy inbox; the inviter is the one who can follow up in person, and this workflow tells them when to.

How it works

  1. 1A teammate_invited event, tracked against the inviter, starts it. Its payload carries the invitee’s address.
  2. 2It waits two days, then holds until weekday office hours.
  3. 3The reminder email names the invitee, read from the triggering event’s payload.
  4. 4Three days later, an email suggests sharing an invite link instead.
  5. 5An invite_accepted event at any point is the goal and ends the journey.

Why it's built this way

Remind the inviter, not the invitee

The invitee has no account yet and never asked for mail. The inviter does, and is the person the invitee knows.

The payload is a snapshot

invite.payload.invitee_email is the address the journey entered with. No profile field is needed, and a later invite does not change what this journey reads.

after_exit

One reminder thread per inviter at a time. Inviting five people in a row starts one reminder, not five; the next invite after it ends starts a new one.

Make it yours

  • Track invite_accepted against the inviter in your API when someone joins through their invite.
  • Use concurrent instead if each invite should get its own reminder, and accept that a busy inviter gets more mail.
  • Add a push to the inviter alongside the first reminder.
  • Shorten the delays for a product where teams form in the first session.

What to measure

Invite acceptance rate within 7 days, before and after the reminder ships.

Also see Onboarding education drip campaign.