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.
What you’ll set up
Section titled “What you’ll set up”- 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
Which Bloop email each flow replaces
Section titled “Which Bloop email each flow replaces”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 |
How to build the flows
Section titled “How to build the flows”-
Check the events reach Klaviyo
- In Bloop, open Settings → Store-wide → Integrations → Klaviyo and confirm the Referral program section is on and connected.
- Join your own program from your storefront with a test email address.
- 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.
-
Build the welcome flow
-
In Klaviyo, create a flow from scratch and choose a metric trigger with
BLOOP - Join program. -
To limit the flow to one campaign, add a trigger filter where
BLOOP - Campaign idequals that campaign’s id. See where to find a campaign’s id. -
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' }} -
Add the hub link, so they can track rewards later:
{{ person|lookup:'BLOOP Hub Portal' }} -
Preview the email with your test event, then set the flow live.
-
-
Build the reward flow
-
Create a flow with the metric trigger
BLOOP - Successful referral. -
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,CASHorCUSTOM. -
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' }} -
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' }}. -
End every branch with the referrer’s link, so they can share again:
{{ event|lookup:'BLOOP - Referral link' }} -
Preview each branch with a real event, then set the flow live.
-
-
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 amountandBLOOP - Currencyare 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 printBLOOP - Reason, which is a label for you. See why a referral was made ineligible.
- Pending reward: trigger on
-
Turn off the matching Bloop emails
- In Bloop, open your campaign, then click Emails → Referrer emails.
- Turn off the switch on each email your flows now replace: Welcome to referral program, Pending rewards and Successful rewards.
- Click Emails → Referee emails and turn off Discount claim if a flow replaces it.
- Repeat for every campaign. Emails belong to the campaign, so each campaign has its own switches.
Who can receive a flow email
Section titled “Who can receive a flow email”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.
Related
Section titled “Related”- Understanding Klaviyo events and properties - every event and the data it carries
- How to connect Klaviyo - the connection, profile properties and segments
- How to configure referral email notifications - the emails Bloop sends itself
- How to test your referral program before launch - place a referred test order

