# Automations

Automations are our built-in, behaviour-triggered messages — sent via **email/SMS** — that keep subscribers informed, engaged, and rewarded throughout your referral campaign. ReferralHero offers **14 powerful automations out of the box** (the most in the industry), with more coming soon.

### Welcome Automations

Sent to new subscribers based on their referral status and your campaign’s conversion goal.

| Message                          | Subscriber Type                              | Description                                                                                                                                     |
| -------------------------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **Verification Message**         | Non-referrals & referrals (based on setting) | Sent to subscribers to **verify** their email or phone number.                                                                                  |
| **Welcome Message**              | Non-referrals Only                           | Sent to subscribers who have not been referred when they are **added to your campaign**.                                                        |
| **Referral Welcome Message**     | Referrals Only                               | Sent to referrals if your campaign tracks only one conversion event, or when they complete the final conversion event in a multi-step campaign. |
| **Pending Welcome Message**      | Referrals Only                               | Sent to referrals after completing the **first** conversion event in a campaign that tracks two or three events.                                |
| **Follow-Up Message**            | Non-referrals & referrals                    | Sent to subscribers **after a set amount of time** (e.g., 6 hours) after signup.                                                                |
| **Activation Message**           | Non-referrals & referrals                    | Sent to subscribers **who haven’t referred anyone** after a set time (e.g., every 30 days).                                                     |
| **Quick Add Invitation Message** | Referrals Only                               | Sent to referrals added through the **Quick Add** feature.                                                                                      |

### Participation Automations

Triggered when advocates actively participate by referring others.

| Message                      | Subscriber Type | Description                                                                                                        |
| ---------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------ |
| **First Referral Message**   | Any             | Sent to advocates when they refer their **first** friend.                                                          |
| **Referral Message**         | Any             | Sent to advocates when they **generate a referral**, except the first (which triggers the First Referral Message). |
| **Referral Visitor Message** | Any             | Sent to advocates when a **unique referred visitor clicks their referral link**.                                   |
| **Milestone Message**        | Any             | Sent to advocates when they **reach a specific number of referrals** (e.g., 5 referrals).                          |
| **Reminder Message**         | Any             | Sent to advocates who **haven’t referred anyone in a while** (e.g., 30 days since last referral).                  |

### Reward Automations

Triggered when a subscriber qualifies for or is manually given a reward.

| Message                     | Subscriber Type | Discription                                                                                                                       |
| --------------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| **Reward Message**          | Any             | Sent when a subscriber **unlocks a reward**. One message per reward, unless rewards are grouped (then one message for the group). |
| **Promoted Reward Message** | Any             | Sent when a subscriber is manually **promoted via the dashboard or API**.                                                         |

### Email Builder

ReferralHero uses an email builder that supports both simple editing and advanced customization.

You can edit emails using the visual editor, which supports text editing, personalization using merge tags, and full layout control.

For advanced customization, you can also use custom HTML.

#### **Custom HTML**

If you want full control over design and styling, you can insert your own HTML.

To use custom HTML:

**Step 1:** Click the **Source code** button (second from the right in the toolbar)

<figure><img src="/files/CSngiKstarOOeakVjaoZ" alt=""><figcaption></figcaption></figure>

**Step 2**: Paste your HTML code into the popup and save your changes

### Merge Tags

A merge tag looks like a snippet of text. ReferralHero replaces that text with the dynamic content the merge tag refers to, like the person name or email.

This is the complete list of available merge tags:

<table><thead><tr><th width="348">Merge tag</th><th>Description</th></tr></thead><tbody><tr><td><strong>%name%</strong></td><td>Subscriber's name</td></tr><tr><td><strong>%email%</strong></td><td>Subscriber's email address</td></tr><tr><td><strong>%crypto_wallet_address%</strong></td><td>Subscriber's Crypto wallet address</td></tr><tr><td><strong>%phone_number%</strong></td><td>Subscriber's phone number</td></tr><tr><td><strong>%confirmation_link%</strong></td><td>Quick add invitiation email confirmation link</td></tr><tr><td><strong>%referrer%</strong></td><td>Referrer's name if present otherwise Referrer's email address</td></tr><tr><td><strong>%reward_value%</strong></td><td>Reward value</td></tr><tr><td><strong>%referral_code%</strong></td><td>Subscriber's unique referral code</td></tr><tr><td><strong>%position%</strong></td><td>Subscriber's position in list (Eg: 5)</td></tr><tr><td><strong>%position_ordinal%</strong></td><td>Subscriber's position in list in ordinal number (Eg: 5th)</td></tr><tr><td><strong>%people_ahead%</strong></td><td>Number of people ahead in the queue</td></tr><tr><td><strong>%referral_link%</strong></td><td>Subscriber's referral link</td></tr><tr><td><strong>%total_referred%</strong></td><td>Subscriber's total number of referrals</td></tr><tr><td><strong>%subscriber_id%</strong></td><td>Subscriber's id.</td></tr><tr><td><strong>%coupon%</strong></td><td>A unique random coupon code from a Coupon Group of your choice</td></tr><tr><td><strong>%group_payout_reward_value%</strong></td><td>Group payout reward value</td></tr><tr><td><strong>%tremendous_reward_link%</strong></td><td>A unique Tremendous reward link.</td></tr><tr><td><strong>%facebook_link%</strong></td><td>Referral link with source set to "Facebook"</td></tr><tr><td><strong>%facebook_icon%</strong></td><td>Facebook icon with a link to share on Facebook.</td></tr><tr><td><strong>%facebook_share_link%</strong></td><td>Facebook link to share via Facebook.</td></tr><tr><td><strong>%twitter_link%</strong></td><td>Referral link with source set to "Twitter"</td></tr><tr><td><strong>%twitter_icon%</strong></td><td>Twitter icon with a link to share on Twitter.</td></tr><tr><td><strong>%twitter_share_link%</strong></td><td>Twitter link to share via Twitter.</td></tr><tr><td><strong>%email_link%</strong></td><td>Referral link with source set to "Email"</td></tr><tr><td><strong>%email_icon%</strong></td><td>Email icon with a link to share via email.</td></tr><tr><td><strong>%email_share_link%</strong></td><td>Email link to share via email.</td></tr><tr><td><strong>%whatsapp_link%</strong></td><td>Referral link with source set to "Whatsapp"</td></tr><tr><td><strong>%whatsapp_icon%</strong></td><td>Whatsapp icon with a link to share on Whatsapp.</td></tr><tr><td><strong>%whatsapp_share_link%</strong></td><td>Whatsapp link to share via Whatsapp.</td></tr><tr><td><strong>%facebook_messenger_link%</strong></td><td>Referral link with source set to "Facebook Messenger"</td></tr><tr><td><strong>%facebook_messenger_icon%</strong></td><td>Facebook Messenger icon with a link to share on Facebook Messenger.</td></tr><tr><td><strong>%facebook_messenger_share_link%</strong></td><td>Facebook Messenger link to share via Facebook Messenger.</td></tr><tr><td><strong>%linkedin_link%</strong></td><td>Referral link with source set to "Linkedin"</td></tr><tr><td><strong>%linkedin_icon%</strong></td><td>Linkedin icon with a link to share on Linkedin.</td></tr><tr><td><strong>%linkedin_share_link%</strong></td><td>Linkedin link to share via Linkedin.</td></tr><tr><td><strong>%reddit_link%</strong></td><td>Referral link with source set to "Reddit"</td></tr><tr><td><strong>%reddit_icon%</strong></td><td>Reddit icon with a link to share on Reddit.</td></tr><tr><td><strong>%reddit_share_link%</strong></td><td>Reddit link to share via Reddit.</td></tr><tr><td><strong>%telegram_link%</strong></td><td>Referral link with source set to "Telegram"</td></tr><tr><td><strong>%telegram_icon%</strong></td><td>Telegram icon with a link to share on Telegram.</td></tr><tr><td><strong>%telegram_share_link%</strong></td><td>Telegram link to share via Telegram.</td></tr><tr><td><strong>%line_link%</strong></td><td>Referral link with source set to "Line"</td></tr><tr><td><strong>%line_icon%</strong></td><td>Line icon with a link to share on Line.</td></tr><tr><td><strong>%line_share_link%</strong></td><td>Line link to share via Line.</td></tr><tr><td><strong>%advocate_dashboard%</strong></td><td>Link to the advocate's dashboard</td></tr><tr><td><strong>%advocate_first_name%</strong></td><td>Advocate's first name</td></tr><tr><td><strong>%advocate_last_name%</strong></td><td>Advocate's last name</td></tr><tr><td><strong>%extra_field%</strong></td><td>Subscriber's extra field 1</td></tr><tr><td><strong>%extra_field_2%</strong></td><td>Subscriber's extra field 2</td></tr><tr><td><strong>%extra_field_3%</strong></td><td>Subscriber's extra field 3</td></tr><tr><td><strong>%extra_field_4%</strong></td><td>Subscriber's extra field 4</td></tr><tr><td><strong>%first_name%</strong></td><td>Subscriber's first name</td></tr><tr><td><strong>%last_name%</strong></td><td>Subscriber's last name</td></tr><tr><td><strong>%last_referral_name%</strong></td><td>Name of last referral</td></tr><tr><td><strong>%referral%</strong></td><td>Referrals for which reward/automation is unlocked</td></tr><tr><td><strong>%total_positions%</strong></td><td>Total positions in the list</td></tr></tbody></table>

### Test Message

ReferralHero allows you to send test messages — for both email/SMS — before launching your automation.

To send a test:

* Scroll to the bottom of the automation editor.
* Enter an email address or phone number.
* Click Send Test Email/SMS.

{% hint style="warning" %}
ReferralHero will send the latest saved version of your message, so make sure to save your work before sending a test.
{% endhint %}

<figure><img src="/files/bnjNprOTsKFC9zMh9YCl" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.referralhero.com/campaign-builder/automations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
