---
title: "Add Attribute Automations"
slug: "add-attribute-automations"
updated: 2026-06-10T15:03:45Z
published: 2026-06-10T15:03:45Z
canonical: "docs.xtremepush.com/add-attribute-automations"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xtremepush.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Attribute Automations

Configure automation rules to update numeric attribute values automatically using specific event triggers.

To create an attribute automation, select any numeric attribute in under **Users**> **Attributes** and then select **Add Automation**.

Attribute automations allow you to update the value of any number type attribute when an event is triggered. You specify the event that triggers the automation and the `math.js` expression that specifies the attribute change.

These attribute value changes are reflected for all users and can be viewed in the **All Users** tab in the Loyalty Hub or under **Data**> **User Profiles**.

These automations are best suited to use with scheduled events. See *Scheduled Events* under [Manage Loyalty Events](/documentation/docs/manage-loyalty-events-1) for more information. Some example use cases include:

- Your user’s *weekly_bets* attribute is reset to `0`. The example configuration would be:
  - **Event**: A weekly scheduled event.
  - **Expression**: `0`
- Your user’s *total_token_amount* attribute is increased by `1` every day they open your loyalty widget. The example configuration would be:
  - **Event**: *daily_login*
  - **Expression**: `attribute_value + 1`

## Configure Attribute Automation

To configure an automation for an attribute, do the following:

1. Select the attribute under **Loyalty Hub** > **Users** > **Attributes**
2. Click **Add Automation**
3. Under **Choose Target**, specify the event that triggers the automation.
4. Under **Advanced Configurations**, add your `math.js` expression
5. (Optional) under **Advanced Configurations** choose the internal title and description of this automation.

> [!TIP]
> If you’re adding an automation rule for the attributes imported from the Xtremepush CDP, the attribute value changes also reflect under **Data** > **User Profiles** for each user.
