Skip to main content
Referbro connects to the WhatsApp Business API to send automated referral messages at key moments in the customer journey. This page covers how templates work and how to configure them. For the in-app setup flow, follow How to Configure WhatsApp Templates in Referbro.

How It Works

  1. You create a Message Template on your WhatsApp provider’s platform (e.g., Pragma, Meta).
  2. Meta approves the template (required for all business-initiated messages).
  3. You map the approved template in Referbro by entering its ID and parameters.
  4. Referbro sends messages using your template whenever a trigger fires (e.g., customer shares, order placed).

Template Types

Referbro supports 8 template slots by default, plus a Cashback Payout Link slot when Razorpay Payouts is enabled. You can find ready-to-use examples in our Template Library:
You don’t need to configure all templates to get started. Begin with Referral Invitation and Order Confirmation — these are the highest-impact touchpoints. For automated cashback, add Cashback Payout Link after Razorpay Payouts is enabled.

Template Parameters

When mapping a template in Referbro, you provide a JSON object with parameter keys and values.

Parameter Key Format

For Pragma users: Button parameters use the format button.url.<index>.value instead of button.url.<index>.<paramIndex>. See the Pragma section for details.

Available Placeholders

Use these placeholders in your parameter values. Referbro only resolves variables that are available in the current trigger context.
If a placeholder is not available for a trigger, it is sent as-is (not replaced). In Send Test Message, you can still provide manual values for any placeholder from the modal.

Full Example


Share Button URL

Referbro provides a Share Button URL endpoint that you can use as a URL button in your WhatsApp templates. When a customer taps this button, it opens WhatsApp with a pre-filled share message — making it easy for them to refer friends with a single tap.

URL Syntax

Example URL:

How It Works

When a customer taps a button configured with this URL:
  1. Referbro looks up the referral code to find the associated campaign.
  2. The campaign’s Share Message (configured on the Campaign page) is retrieved.
  3. Placeholders {{REFERRAL_LINK}} and {{FRIEND_REWARD}} in the Share Message are replaced with the customer’s actual referral link and the friend’s discount text.
  4. The customer is redirected to https://api.whatsapp.com/send?text=... with the fully resolved message — opening WhatsApp with the share message pre-filled and ready to send.

Using It in Template Buttons

To add a share button to your WhatsApp template, configure the buttons section in your Referbro template mapping. The button URL on your WhatsApp provider should use the Referbro share endpoint as the base URL, with the referral code appended as a dynamic parameter. Step 1: When creating the template on your provider’s platform (e.g., Meta, Pragma), add a URL button with a base URL like:
Where {{1}} is the dynamic parameter placeholder that Referbro will fill in. Step 2: In Referbro’s template parameter mapping, map the button parameter to include the referral code and source:
The button.url.0.1 value is appended to the base URL you set on the provider, resulting in a final URL like:
For Pragma users: Use button.url.0.value instead of button.url.0.1. See the Pragma section for the correct format.

Button Key Format Reference

Full Example with Share Button

In this example:
  • body.2 contains the referral link as a clickable text link in the message body
  • button.url.0.1 powers a “Share Now” URL button that redirects to the Referbro share endpoint → opens WhatsApp with the campaign’s Share Message pre-filled
Use different source values for body links vs. button taps (e.g., source=order vs. source=order_cta) to distinguish them in Analytics.

Testing Templates

Before going live, test your template configuration:
  1. Go to Apps → Referbro → WhatsApp Settings.
  2. Scroll to the template you configured.
  3. Click Send Test Message and enter your phone number.
  4. Verify you receive the message with correct content and working links.
Test messages use the placeholder code TEST123. Make sure your template doesn’t have strict validation that would reject test codes.