Skip to content

How to build referral flows in Klaviyo

Bloop sends its own referral emails out of the box. If your store’s email already lives in Klaviyo, you can send the key referral emails from Klaviyo flows instead, in your own design, next to the rest of your lifecycle email. Each flow starts from a Bloop event and prints the referrer’s link, code or reward from that event.

  • A welcome flow that hands new referrers their link
  • A reward flow that tells a referrer their reward is ready
  • Optional flows for pending rewards, the friend’s discount and sharing
  • The matching Bloop emails turned off, so nobody gets two

Five Bloop emails have a matching Klaviyo event. Every other Bloop email, such as reminders, expiry notices and the Referral Hub access email, has no event, so leave those on in Bloop.

Bloop email Group Klaviyo trigger Goes to
Welcome to referral program Referrer emails BLOOP - Join program Referrer
Pending rewards Referrer emails BLOOP - Referral purchase pending Referrer
Successful rewards Referrer emails BLOOP - Successful referral Referrer
Email invitation from referrers Referee emails BLOOP - Referral sharing Referrer who shared
Discount claim Referee emails BLOOP - Referee receives discount Referred friend
  1. Check the events reach Klaviyo

    1. In Bloop, open Settings → Store-wide → Integrations → Klaviyo and confirm the Referral program section is on and connected.
    2. Join your own program from your storefront with a test email address.
    3. In Klaviyo, open the list of metrics and look for BLOOP - Join program. A metric only appears after its first event, so a metric you can’t find hasn’t fired yet.
  2. Build the welcome flow

    1. In Klaviyo, create a flow from scratch and choose a metric trigger with BLOOP - Join program.

    2. To limit the flow to one campaign, add a trigger filter where BLOOP - Campaign id equals that campaign’s id. See where to find a campaign’s id.

    3. Add an email and print the referrer’s link and code from the event:

      Your link: {{ event|lookup:'BLOOP - Referral link' }}
      Your code: {{ event|lookup:'BLOOP - Referral code' }}
    4. Add the hub link, so they can track rewards later:

      {{ person|lookup:'BLOOP Hub Portal' }}
    5. Preview the email with your test event, then set the flow live.

  3. Build the reward flow

    1. Create a flow with the metric trigger BLOOP - Successful referral.

    2. Add a conditional split on the event value BLOOP - Referrer reward type, with one branch for each reward type you use: DISCOUNT, FREE_PRODUCT, CREDIT, CASH or CUSTOM.

    3. In the discount and free product branches, print the reward code and its expiry:

      Your reward code: {{ event|lookup:'BLOOP - Referrer code' }}
      Use it before: {{ event|lookup:'BLOOP - Reward expiry date' }}
    4. In the store credit and cash branches, there is no code. Write the amount into the email, or read it from the profile with {{ person|lookup:'BLOOP - Referrer Reward' }}.

    5. End every branch with the referrer’s link, so they can share again:

      {{ event|lookup:'BLOOP - Referral link' }}
    6. Preview each branch with a real event, then set the flow live.

  4. Add the optional flows

    • Pending reward: trigger on BLOOP - Referral purchase pending. Tell the referrer their friend ordered and the reward is under review. BLOOP - Purchase amount and BLOOP - Currency are on the event.
    • Friend’s discount: trigger on BLOOP - Referee receives discount. Print {{ event|lookup:'BLOOP - Referee discount code' }}. The event has no value or expiry date, so write your offer and its deadline in the text.
    • Rejected referral: trigger on BLOOP - Referral made ineligible. Keep the wording neutral, and don’t print BLOOP - Reason, which is a label for you. See why a referral was made ineligible.
  5. Turn off the matching Bloop emails

    1. In Bloop, open your campaign, then click Emails → Referrer emails.
    2. Turn off the switch on each email your flows now replace: Welcome to referral program, Pending rewards and Successful rewards.
    3. Click Emails → Referee emails and turn off Discount claim if a flow replaces it.
    4. Repeat for every campaign. Emails belong to the campaign, so each campaign has its own switches.

Klaviyo decides who a flow email reaches, using its own consent and suppression rules. If a referrer is suppressed in Klaviyo, a flow email doesn’t reach them even though the event fired. Check a missing email on that profile’s timeline in Klaviyo before you look in Bloop.