Retention

NPS survey follow-up by score

Promoters are asked for a review a day later, detractors reach a person (a Slack alert to support and a personal email), and passives are asked what would make it a 10.

EmailSlacktrigger.eventpayload refsdelaytimeWindowbranchreentry: after_exitcooldownSlack
import { gte, lte, trigger, workflow } from 'sendwend';
import { e, u } from './contract';
import { email, slack } from './templates';

/**
 * The survey answer that starts the journey: its `score` decides the
 * branch.
 */
const answer = trigger.event(e.nps_submitted);

/**
 * NPS follow-up by score: promoters (9 and 10) are asked for a review a
 * day later; detractors (0 to 6) reach a person, with support alerted
 * in Slack and a personal email asking what went wrong; passives are
 * asked the one thing that would make it a 10.
 *
 * The branch reads the score of the answer that entered
 * (`answer.payload.score`), not a segment: a user's latest answer is
 * the one to act on. The cooldown matches how often the app asks, so
 * one survey round is one journey.
 */
export const npsSurveyFollowUp = workflow({
  id: 'nps_survey_follow_up',
  name: 'NPS survey follow-up',
  trigger: answer,
  reentry: { mode: 'after_exit', cooldown: '90 days' },
}).branch(
  'by score',
  [
    gte(answer.payload.score, 9),
    (w) =>
      w
        .delay('1 day')
        .timeWindow({ between: ['09:00', '21:00'] })
        .email(email.reviewAsk, { name: u.name }),
  ],
  [
    lte(answer.payload.score, 6),
    (w) =>
      w
        .slack(slack.npsDetractor, {
          name: u.name,
          score: answer.payload.score,
          feedback: answer.payload.feedback,
        })
        .email(email.npsFollowUp, { name: u.name }),
  ],
  (w) => w.delay('2 days').email(email.npsPassive, { name: u.name })
);
Compiled canvasDrag to pan

When to use it

If you run an NPS or satisfaction survey, the answer is only useful if something happens next. Each group needs a different next step: a promoter is the person most likely to leave a public review, a detractor needs a human, and a passive can tell you what is missing.

How it works

  1. 1An nps_submitted event starts it; its payload carries the score and the optional comment.
  2. 2A branch on the score: 9 and above, 6 and below, and a default arm for 7 and 8.
  3. 3Promoters: one day later, in daytime, a review request.
  4. 4Detractors: support gets the score and comment in Slack at once, and the user gets a personal email from the founder.
  5. 5Passives: two days later, an email asking what would make it a 10.

Why it's built this way

The score of this answer

The branch reads answer.payload.score, the answer that started the journey, not a segment over past answers. The user’s latest answer is the one to act on.

Detractors reach a person first

The Slack alert carries the score and comment so support can reply with context. The email is from a named person with replies going to them.

Cooldown equals the survey interval

after_exit with a 90-day cooldown: one survey round is one journey, even if the app asks again early.

Make it yours

  • Match the cooldown to how often you survey.
  • Point the review request at the store or review site that matters to you, per platform.
  • Add a waitUntil after the detractor email, and alert again if nobody replied in two days.

What to measure

Reviews left by promoters, and detractors who stay subscribed 90 days later.

Also see Pre-churn save flow when auto-renew is turned off.