Overview
This recipe sets up the full referral loop — a chain of automated WhatsApp messages that guide both the referrer and their friend through the entire referral journey, from initial share to reward payout. The complete loop: Time to complete: ~20 minutesPrerequisites
Before starting, ensure you have:- An active campaign (see Campaign Management)
- A WhatsApp provider connected (see Provider Setup)
- 4 approved WhatsApp templates on your provider’s platform (you’ll create these below)
Steps
Prepare Your WhatsApp Templates
Create these 4 templates on your provider’s platform (e.g., Pragma, Meta). All should be in the Marketing category.Submit all 4 templates for Meta approval. Approval usually takes minutes to a few hours.
Map Templates in Referbro
Go to Apps → Referbro → WhatsApp Settings and configure each template slot:Post-Purchase Nudge (Post-Referral Confirmation (Reward Notification (Nudge Reminder (Toggle each template to Enabled.
orderConfig):postReferralWhatsappConfig):rewardWhatsappConfig):nudgeConfig):Enable the Storefront Widgets
- Go to Shopify Admin → Online Store → Themes → Customize.
- Enable both App Embeds:
- Refer & Earn — the floating share button
- Referral Received — the discount popup for referred friends
- Go to Settings → Checkout → Customize and add the Referbro Widget to the Thank You page.
- Click Save in both editors.
Test the Complete Loop
Walk through the full referral cycle:
- Place a test order → Check that you receive the Post-Purchase Nudge on WhatsApp.
- Click the referral link from the message → Verify the store loads and the Referral Received popup appears with the discount.
- Place a second order using the referral discount → Check that the original referrer receives the Post-Referral Confirmation on WhatsApp.
- Verify in Analytics → Go to Apps → Referbro → Analytics and confirm events:
LINK_GENERATED,WHATSAPP_SENT,LINK_CLICKED,ORDER_PLACED.
Best Practices
- Start with 2 templates, not 4 — Begin with Post-Purchase Nudge and Referral Share. Add the others once these are working.
- Track UTM sources — The
&source=parameters in the template configs let you see in Analytics which touchpoint drives the most referrals. - Use the Nudge feature weekly — Go to Apps → Referbro → Nudge Users and send reminders to dormant referrers every 7–14 days.
- Monitor delivery rates — If WhatsApp delivery rates drop, check that your templates haven’t been paused by Meta (common if too many users report them as spam).
Related Pages
- WhatsApp Integration — Template parameters reference
- WhatsApp Touchpoints — Full list of 8 trigger points
- Provider Setup — Getting API credentials
- Nudges — Manual re-engagement messaging