> For the complete documentation index, see [llms.txt](https://docs.rafflex.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rafflex.io/standards/standards/player-protections/behaviour-interventions.md).

# Behaviour Interventions

Set your own activity limits, email customers who go over them, show them a reality check page, and review every intervention from the Interventions screen.

***

{% hint style="warning" %}
**This is not legal advice.** Rafflex provides features that can help you support good practice, but this documentation does not tell you what you must do to comply with anything. The code is voluntary and open to interpretation. You are responsible for your own compliance. Please read the [official code](https://www.gov.uk/government/publications/voluntary-code-of-good-practice-for-prize-draw-operators/voluntary-code-of-good-practice-for-prize-draw-operators) in full and take your own professional advice before relying on any feature described here.
{% endhint %}

***

The voluntary code asks operators to consider monitoring activity to identify possible harm, and to step in with a tailored and proportionate response. Behaviour interventions are the Rafflex feature that can help you do this.

You decide how many orders, and how much spending, you think is a sign that a customer may need to pause and think. If a customer goes over one of your limits, Rafflex steps in for you:

1. The customer is sent an email reminding them about their activity.
2. They are asked to read a **reality check** page and choose how they want to continue before they carry on playing.
3. If you have entered an admin email address, you are emailed so you know it has happened.
4. The intervention is recorded on the **Interventions** screen in your admin panel, so you can follow up.

***

### Turning on behaviour interventions

{% stepper %}
{% step %}

### Open the Standards page

In your admin panel, open **Settings** in the left-hand menu, then click **Standards**.
{% endstep %}

{% step %}

### Switch on interventions

In the **Behaviour Interventions** section, switch on **Enable Behaviour Interventions**. As soon as you do, your limit fields and the **Admin Notification Email** field appear below it, along with two new sections: **Intervention Email** and **Intervention Page**.
{% endstep %}

{% step %}

### Set your limits

Fill in the limits you want to use (see [Choosing your limits](#choosing-your-limits) below). Leave any limit blank if you do not want to use it.
{% endstep %}

{% step %}

### Add your admin email (optional)

Enter the address you want notifications sent to in **Admin Notification Email**, or leave it blank if you do not want to be emailed.
{% endstep %}

{% step %}

### Customise the email and reality check page

Edit the wording in the **Intervention Email** and **Intervention Page** sections, or leave them blank to use the default wording.
{% endstep %}

{% step %}

### Save

Click **Save Settings**. You will see a **Standards settings saved successfully** message, and a new **Interventions** item appears under **Customers** in the left-hand menu.
{% endstep %}
{% endstepper %}

***

### Choosing your limits

The **Behaviour Interventions** section has six limits. Each one is a value **you** choose. There is no right or wrong number built in.

| Field                    | What it measures                                         |
| ------------------------ | -------------------------------------------------------- |
| **Max Orders Per Day**   | How many orders a customer completes in a rolling day.   |
| **Max Orders Per Week**  | How many orders a customer completes in a rolling week.  |
| **Max Orders Per Month** | How many orders a customer completes in a rolling month. |
| **Max Spend Per Day**    | How much a customer spends in a rolling day.             |
| **Max Spend Per Week**   | How much a customer spends in a rolling week.            |
| **Max Spend Per Month**  | How much a customer spends in a rolling month.           |

An intervention is triggered when a customer goes **over** one of the limits you have set.

A few things to know:

* **Leave a field blank to switch that check off.** You do not have to use all six. For example, you might only use the three spend limits.
* **Order limits count completed paid orders.** Free entries are not counted. Orders paid for with wallet credit do count towards the order limits.
* **Spend limits count card payments only.** Orders paid for with wallet credit are not included in the spend total.
* **"Rolling" means the period moves with time.** It looks back over the most recent day, week or month from the moment of each order, rather than resetting on a set day of the week or date in the month.

{% hint style="info" %}
**How do I choose a number?** Think about what normal play looks like on your site, then set your limits at a level that would be unusual for a typical customer. Start with levels you are comfortable with, keep an eye on the **Interventions** screen, and review your limits over time. If almost nobody ever reaches them, or a large share of your customers do, that is a sign to adjust.
{% endhint %}

{% hint style="info" %}
**Behaviour interventions are separate from spending limits.** A [spending limit](https://docs.rafflex.io/additional-settings/settings/safe-play-setting.md) is something a customer chooses for themselves, and it stops purchases that would go over it. A behaviour intervention is something you set up for everyone, and it does not stop the order that triggered it. Instead it prompts the customer to pause and think before they carry on.
{% endhint %}

#### Admin Notification Email

**Admin Notification Email** is an email address field, not an on and off switch. Enter the address you want to be told at, for example your support inbox, and Rafflex emails it every time an intervention is triggered. Leave it blank if you do not want these emails.

The notification email has the subject "*Your site name* Behaviour Intervention Triggered for *customer's first name*". It shows the customer's name and email address, which limit they went over, the limit you set, the customer's activity, and the order number that triggered it. It also confirms that the customer has been emailed and will be shown the reality check page on their next visit.

***

### Customising the email

The **Intervention Email** section controls the email your customer receives.

| Field             | What it does                                                                                                          |
| ----------------- | --------------------------------------------------------------------------------------------------------------------- |
| **Email Subject** | The subject line. Leave it blank to use the default: "Important: A reminder about your activity on *your site name*". |
| **Email Content** | The main message of the email, written in a rich text editor. Leave it blank to use the default message.              |

The default message tells the customer that you care about their wellbeing, that their recent activity has gone over one of your activity thresholds, that they will be shown a summary and asked to confirm they want to continue the next time they visit, and that they can set spending limits or take a break from their account settings at any time. It ends by inviting them to contact you with any questions.

The email is sent from your site's email address and name, with your email logo (or your site logo) at the top.

{% hint style="info" %}
If you write your own **Email Content**, it replaces the default message completely, so make sure it covers everything you want the customer to know. Keep the tone warm and supportive rather than accusing, and consider including how to contact you and links to support organisations.
{% endhint %}

***

### Customising the reality check page

The **Intervention Page** section controls the reality check page the customer is asked to respond to.

| Field                          | What it does                                                                                                  |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| **Reality Check Page Heading** | The heading at the top of the page. Leave it blank to use the default heading, "Please review your activity". |
| **Reality Check Page Content** | The main message on the page, written in a rich text editor. Leave it blank to use the default message.       |

The default message reads: "We care about your wellbeing and want to make sure you're playing responsibly. Please take a moment to review the options below before continuing."

{% hint style="success" %}
**A great place for support links.** The reality check page is seen at exactly the moment a customer may need help, so it is a good place to add links to recognised support organisations, along with how to contact you.
{% endhint %}

***

### What your customer experiences

When a customer goes over one of your limits, the order they were placing still goes through as normal. Then:

1. **They receive the intervention email** described above.
2. **They see the reality check page.** The next time they try to view a competition, their basket, the checkout or most pages in their account, they are taken to the reality check page instead. It shows your logo (if you have uploaded one), your heading and your message. Their **Play Safe** and **Timeout** pages stay open to them, so they can always reach those tools.
3. **They choose how to continue.** The page explains that selecting any option acknowledges the notice, and gives them these choices:
   * **set spending limits**, which takes them to their **Play Safe** page,
   * **take a break**, which takes them to their **Timeout** page,
   * **Log out**, which logs them out of your site, or
   * **I understand, continue**, which returns them to your homepage so they can carry on.

Until they choose one of these options, they keep being taken back to the reality check page.

{% hint style="info" %}
We recommend keeping **Enable Safe Playing** and **Enable Timeout** switched on (you will find both on the **User Experience** settings page) so these options are useful to your customers. If **Enable Safe Playing** is switched off, the **set spending limits** link takes the customer to their **My Account** page instead of a spending limit form. See [Safe Play Setting](https://docs.rafflex.io/additional-settings/settings/safe-play-setting.md).
{% endhint %}

***

### Reviewing interventions

Once behaviour interventions are switched on, an **Interventions** screen appears under **Customers** in the left-hand menu of your admin panel. It lists every intervention that has been triggered, newest first.

#### The summary at the top

| Card                    | What it shows                                                                                                                        |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **Total Interventions** | Every intervention ever triggered, with how many were triggered this week underneath.                                                |
| **Unacknowledged**      | Interventions the customer has not yet responded to (**Awaiting response**). It turns red when there are any.                        |
| **Triggered Today**     | How many interventions have been triggered today.                                                                                    |
| **Unique Customers**    | How many different customers have had an intervention, with how many have had more than one underneath (**with multiple triggers**). |

#### The columns

| Column           | What it shows                                                                              |
| ---------------- | ------------------------------------------------------------------------------------------ |
| **#**            | The intervention's reference number.                                                       |
| **Customer**     | The customer's name, with their email address underneath. You can search by name or email. |
| **Threshold**    | Which limit they went over, for example **Spend Per Week** or **Orders Per Day**.          |
| **Limit**        | The limit you had set at the time.                                                         |
| **Actual**       | The customer's figure when the intervention was triggered.                                 |
| **Order**        | The order that triggered it. Click it to open the order.                                   |
| **Emailed**      | A tick when the customer has been sent the intervention email.                             |
| **Response**     | What the customer chose on the reality check page (see below).                             |
| **Acknowledged** | When they responded. It shows **Pending** in red until they do.                            |
| **Triggered**    | When the intervention was triggered.                                                       |

The **Response** column shows one of these:

| Response         | Meaning                                  |
| ---------------- | ---------------------------------------- |
| **Acknowledged** | They clicked **I understand, continue**. |
| **Safe playing** | They chose to set a spending limit.      |
| **Timeout**      | They chose to take a break.              |
| **Logged out**   | They chose to log out.                   |

#### Filtering the list

Click the filter icon above the table to narrow the list down:

* **Threshold** shows only interventions for one type of limit, such as **Spend Per Month**.
* **Acknowledged** lets you choose **Yes** to see interventions that have been responded to, or **No** to see the ones still awaiting a response.
* **From** and **To** dates show only interventions triggered within a date range.

{% hint style="info" %}
**Following up.** To see customers who have not yet responded to a reality check, set the **Acknowledged** filter to **No**. Click **View User** on any row to open that customer's page, where you can see their orders, spending limit and full intervention history, and decide whether to get in touch.
{% endhint %}

***

### Interventions on a customer's page

Each customer's page (under **Customers**) has two things related to interventions:

* **A Behaviour Interventions tab** at the bottom of the page, listing every intervention that customer has had, with the same details as the main screen and filters for threshold and acknowledgement.
* **An Exempt from Interventions toggle**, in the **Behaviour Interventions** area of the customer's details. It only appears while **Enable Behaviour Interventions** is switched on. When it is on, that customer does not receive behaviour interventions, and they are no longer asked to respond to a reality check. Use it only when a customer has asked you directly to stop them. Click **Save changes** after switching it on.

{% hint style="warning" %}
Exempting a customer removes a protection that applies to everyone else on your site. Only do it when the customer has asked you to, and keep a note of the request in line with your responsible play policy.
{% endhint %}

{% content-ref url="/pages/TIQk4RRDr2seu2jnYbJm" %}
[Customers](https://docs.rafflex.io/managing-your-site/customers.md)
{% endcontent-ref %}

***

### Exporting interventions

You can download a full record of interventions for your own records or for reviewing your practices over time:

{% content-ref url="/pages/NDKn9qQH5Ubly1NnGsbc" %}
[Behaviour Interventions Export](https://docs.rafflex.io/managing-your-site/downloads/behaviour-interventions-export.md)
{% endcontent-ref %}

***

### Switching interventions off

To stop using behaviour interventions, switch off **Enable Behaviour Interventions** on the **Standards** page and click **Save Settings**. No new interventions are triggered, customers are no longer asked to respond to a reality check, and the **Interventions** screen is hidden from the menu. Your existing intervention records are kept, so they are still there if you switch the feature back on.
