How It Works
- You create a Message Template on your WhatsApp provider’s platform (e.g., Pragma, Meta).
- Meta approves the template (required for all business-initiated messages).
- You map the approved template in Referbro by entering its ID and parameters.
- 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: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:- Referbro looks up the referral code to find the associated campaign.
- The campaign’s Share Message (configured on the Campaign page) is retrieved.
- 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. - 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 thebuttons 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:
{{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:
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
body.2contains the referral link as a clickable text link in the message bodybutton.url.0.1powers a “Share Now” URL button that redirects to the Referbro share endpoint → opens WhatsApp with the campaign’s Share Message pre-filled
Testing Templates
Before going live, test your template configuration:- Go to Apps → Referbro → WhatsApp Settings.
- Scroll to the template you configured.
- Click Send Test Message and enter your phone number.
- Verify you receive the message with correct content and working links.