Limit a reactor an audience
Introduction
Creating a reactor which can only be triggered when a user is in a particular audience is a popular way to offer bonus rewards to your end-users.
It can also be used to ensure that the end-user has met certain requirements, such as age verification, before they can earn points.
Configuration
Ensure that the event you want to reactor to be listening for has the 'Audience' enhancer enabled. See the Event enhancers page for more information.
Navigate to Events > Reactors. Click 'Create in the top right corner.
Give the reactor a name and choose the event you want to reactor the listen for from the 'Event type' list.
Move to the 'Payload Constraints' tab. Click the 'In Audience' button in the Audiences section and select the audience the user must be part of for the reaction to trigger.
Configure the reaction and effectivity. Click save.

Tips
Limiting a reactor to only trigger for users NOT in a particular audience
It's possible to create a reaction which only triggers if a user is not in a particular audience by editing the JSON schema produced in step 3 of the configuration guide. After completing step 3, click 'JSON' in the BLOCK/JSON switcher to begin editing the JSON schema. Make the following adjustments to the schema.
Add the line
"not": {
below the"audiences": {
line (line 6 in the sample schema).Add an additional closing bracket
}
below the closing square bracket (line 13 in the sample schema).
{
"type": "object",
"$schema": "http://json-schema.org/draft-06/schema#",
"properties": {
"audiences": {
"not": {
"type": "array",
"contains": {
"enum": [
"8807dc2d-8aa5-4d00-842b-1da4ae95f902"
]
}
}
}
},
"required": []
}
Last updated
Was this helpful?