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 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
1every 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:
- Select the attribute under Loyalty Hub > Users > Attributes
- Click Add Automation
- Under Choose Target, specify the event that triggers the automation.
- Under Advanced Configurations, add your
math.jsexpression - (Optional) under Advanced Configurations choose the internal title and description of this automation.
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.
Updated about 5 hours ago