> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/advocate-program-rules-explained.md).

# Set Up Program Rules in Advocate

<a href="https://pxa.impact.com/student/activity/2345886?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=&#x26;utm_campaign=help-center" class="button primary">Take the PXA course</a>

Referral programs depend on pairings of rules and actions to appropriately reward participants or trigger actions (such as sending an email). Together, these rules and actions form program rules. A rule is what you want your target user to do. In referral programs, users can apply to both customer advocates and the friends they refer. An action is triggered when the participant achieves a rule.

<details>

<summary>Rules</summary>

The rules you set will depend on your program and the outcomes you want to drive. At least one conversion rule is required for every referral program. Examples of rules include:

* Referred friend makes a purchase
* Customer advocate makes 5 referrals
* Referred friend becomes a qualified lead

**Rule triggers**

impact.com relies on the events you send to us to act as triggers for the rule. During [program setup](/brand/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/configure-your-advocate-program.md), select your rule’s trigger and an event key.

| Trigger                               | Description                                                                              |
| ------------------------------------- | ---------------------------------------------------------------------------------------- |
| Referral starts                       | When a referral is started.                                                              |
| Friend makes a purchase               | When the referred friend makes a purchase tracked by an event.                           |
| Friend refunds a purchase             | When a referred friend returns a product made on a purchase that's tracked by an event.  |
| Friend performs an action             | When the referred friend performs an action tracked by an event, like making a purchase. |
| Friend's segment and/or field changes | When a referred friend has a field or segment that updates or changes.                   |

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-52c2fb38ab99941f251d244ee053c56842fd1c2d%2Fc0a9e0fd245d4c823bf495b51eb1f0b15b33d8eb416d9fcd8bd41fa224f93041.jpg?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>

**Rule conditions**

You can place conditions on a rule if you only want it to be triggered in specific situations. Here are a few conditions that can be applied to a rule.

* A referred friend makes a purchase, and the total of the purchase is at least $100.
* The customer advocate makes 5 referrals who remain active subscribers for at least six months.
* A referred friend starts a subscription, and the advocate must also be an active subscriber.

Rule conditions can be based on several different types of data from our databases:

| Data                                                      | Description                                                                                                                                                                                                                                                                               |
| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| User object (either customer advocate or referred friend) | Includes their core details, like email and first name, as well as custom fields.                                                                                                                                                                                                         |
| Event                                                     | Includes any fields inside of the event that can trigger a rule, like revenue, product name or plan.                                                                                                                                                                                      |
| Rules                                                     | A count of rules and referrals is made accessible in the program logic, as well as whether this is the first time the rule is being triggered. This is useful for running programs that issue rewards every X number of referrals, or ensuring that a rule/action is only triggered once. |
| Time                                                      | The system can reference the current time and compare it against key dates of the referral (like when the referral was started) or the user (like when the user was created).                                                                                                             |

</details>

Complete the following sections to set up your program rules and select **Next** after completing each section.

{% stepper %}
{% step %}

### Access program rules&#x20;

1. From the left navigation menu, select ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[Engage]** <i class="fa-arrow-right">:arrow-right:</i> **Program Rules** <i class="fa-arrow-right">:arrow-right:</i> **Program Rules**.
2. In the *Program rules* section, select **Add Rule**.
   {% endstep %}

{% step %}

### Choose & configure a program rule

3. Below *What triggers this rule?*, from the ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[Drop-down menu]**, select a trigger. Some of the configurations differ based on your rule selection.

<details>

<summary>Trigger reference</summary>

| Trigger                               | Description                                                                              |
| ------------------------------------- | ---------------------------------------------------------------------------------------- |
| Referral starts                       | When a referral is started.                                                              |
| Friend makes a purchase               | When the referred friend makes a purchase tracked by an event.                           |
| Friend refunds a purchase             | When a referred friend returns a product made on a purchase that's tracked by an event.  |
| Friend performs an action             | When the referred friend performs an action tracked by an event, like making a purchase. |
| Friend's segment and/or field changes | When a referred friend has a field or segment that updates or changes.                   |

</details>

4. If applicable, select the purchase or action event that will trigger the rule, or specify a field or segment.
5. &#x20;![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[Toggle on]** **Date-based actions** to run different actions based on when referral activity occurs. Once enabled, under *Evaluate timing* *using*, choose which event is used to evaluate the rule: the referral's start date, its conversion date, or the purchase date.&#x20;
6. ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FwXho9QKP3e4iU4ZKUSJ5%2F167ebb8cc30303.svg?alt=media\&token=a046e9f0-63aa-46f6-8a35-f73973fd326c) **\[Check box]** **Trigger on first time only** to trigger the rule only the first time the event happens for a given referral.
7. ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FwXho9QKP3e4iU4ZKUSJ5%2F167ebb8cc30303.svg?alt=media\&token=a046e9f0-63aa-46f6-8a35-f73973fd326c) **\[Check box]** **Convert the referral** to mark it as converted when the rule is triggered.
8. Enter a **Rule name**. Once saved, this cannot be changed.
   {% endstep %}

{% step %}

### Add advanced settings (optional)&#x20;

9. Select **Advanced Settings** to add rule limits or conditions.
10. ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[Toggle on]** **Limit the number of rewards** to define the maximum number of rewards an advocate can earn when a rule is triggered.
11. Below the *If* section, place conditions on a rule if you only want it to be triggered in specific situations. Here are a few conditions that can be applied to a rule.
    * A friend makes a purchase, and the total of the purchase is at least $100.
    * The customer advocate makes 5 referrals who remain active subscribers for at least six months.
    * A referred friend starts a subscription, and the advocate must also be an active subscriber.

<details>

<summary>Condition reference</summary>

Rule conditions can be based on several different types of data from our databases:

| Data                                                      | Description                                                                                                                                                                                                                                                                               |
| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| User object (either customer advocate or referred friend) | Includes their core details, like email and first name, as well as custom fields.                                                                                                                                                                                                         |
| Event                                                     | Includes any fields inside of the event that can trigger a rule, like revenue, product name or plan.                                                                                                                                                                                      |
| Rules                                                     | A count of rules and referrals is made accessible in the program logic, as well as whether this is the first time the rule is being triggered. This is useful for running programs that issue rewards every X number of referrals, or ensuring that a rule/action is only triggered once. |
| Time                                                      | The system can reference the current time and compare it against key dates of the referral, like when the referral was started, or the user, like when the user was created.                                                                                                              |

</details>
{% endstep %}

{% step %}

### Add an action

{% hint style="info" %}
**Limited**: If you need to add multiple actions for your program, you may need to upgrade your account. [Contact support](https://app.impact.com/support/portal.ihtml?createTicket=true&) to upgrade your advocate program.
{% endhint %}

It is possible to add criteria to both rules and actions, since multiple rules can apply to the same action. Although the conditions for a rule have been met, you might want to set action conditions to control which reward is issued, or which email is sent. This is only possible at certain program levels; reach out to [support](https://app.impact.com/support/portal.ihtml) for more information.

12. Select one of the action tiles. Actions include:

* **Reward and Email:** Give a reward and notify the participant with an email.
* **Email Only:** Send an email to the participant.
* **Tiered Rewards and Email:** Offer different rewards based on a participant's segment, purchase value, and more.

13. Choose who the action applies to:
    * **Advocate**: The participant who shares their referral link or code to invite a friend to your brand.
    * **Friend**: The participant who uses the referral link or code to sign up or make a purchase.
14. Give the action a name.
15. (Conditional) If you've enabled date-based actions, ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[Toggle on]** **Limit action to a date range** and choose a period in which the rule must be triggered.
16. Optionally, select **Advanced Settings** to add conditions on an action if you only want it to be triggered in specific situations.

{% hint style="info" %}
**Example:** You could set a purchase-made rule with the associated action Reward and Email. With this rule and action pair, your customer advocate is notified by email and issued a reward whenever a friend they’ve referred makes a purchase.
{% endhint %}

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FRJnDay3QTI9kGA02BlLJ%2FScreenshot%202026-08-25%20at%2008.21.15.png?alt=media&amp;token=fc9ab230-f10c-496d-8d25-70e6175e16f9" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Add a reward (conditional)

If you've selected **Reward and Email** or **Tiered Reward and Email**, you'll need to configure the reward. For setup instructions, review the *Create a reward section* in [Configure Your Advocate Program](/brand/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/configure-your-advocate-program.md).
{% endstep %}

{% step %}

### Review your rule

Before saving, the *Review* screen summarizes the rule.&#x20;

17. Optionally, update the rule:
    1. Select ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fut4jbWXPGIqKlOpfrxol%2Fadvocate_edit.svg?alt=media\&token=3a645b22-237b-429e-be28-5a4d92fab66c) **\[Edit]** next to any line to change it
    2. Select ![](broken://files/NyzCHCEdll8K4GUqF1KX) **\[Add Action]** to attach another action without going back through the earlier steps.
18. Select **Save** when you're done.

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FYW2FIPxQ7QjzZegAfE4B%2FScreenshot%202026-05-15%20at%2011.31.37.png?alt=media&amp;token=bfa99c0a-4c10-49e8-894d-8182801d6e34" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

## Rule & action examples

You can think of rules and actions as a series of if-then statements. Let’s take a look at a few examples.

| Desired Outcome                                                                                                                                                       | If (Rule)                                | Then (Action)                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------- |
| Reward the customer advocate with a $20 gift card for every 5 qualified leads they refer                                                                              | Referred friend becomes a qualified lead | Reward and Email                                                                                  |
| Reward the referred friend with a $100 credit on initial signup and the customer advocate with a $500 credit if the opportunity in Salesforce is set to “Closed Won.” | Referred friend completes initial signup | <ul><li>Reward and Email (customer advocate)</li><li>Reward and Email (referred friend)</li></ul> |
| Send the customer advocate a notification email when the person they referred successfully completes a demo.                                                          | Referred friend completes a demo         | Email Only                                                                                        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/advocate-program-rules-explained.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
