Appearance
Replaceable fields
A replaceable field is a #...# token in a text you type, such as #user_details-username#. When the player gets the reward, Rewards swaps the token for that player's value. Type # in a field that supports it and the back office opens a picker, so you can choose the field rather than remember its name.
The token syntax is the same one the CRM uses in messages. Telling players about a reward has the full placeholder reference; this page covers where Rewards accepts the tokens and when their values are taken.
Values are taken when the reward is credited
The token is resolved when the reward is credited to the player, and the result is stored in the player's copy along with the rest of the snapshot. It is not looked up again when the player opens My Rewards or claims.
So if the player's value changes after the credit, the reward keeps the old one. A bonus whose title carries the player's tier from a segment field still shows the tier they had on the day it was credited, even after they move up. Credit a new reward if the text has to reflect the new value.
Some texts are shown without anything being credited to the player. Their values are taken each time the player views them:
- The titles of the bonuses a Challenge awards, in the list of rewards the player sees while the Challenge is running.
- Tournament texts: the title, terms, games information and prize titles on the tournament's detail view, and the titles in the tournament list.
Tokens in more of these texts are being rolled out — some brands already have the # picker on them in the editor. Where it is there, these are filled in when the player views them too:
- Shop pages: the shop title, and each Shop Item's name, descriptions and terms.
- Promotional Calendars: the calendar title, the Prize Drop texts, and the bonus behind a door the player has not opened yet. An opened door's bonus was filled in when it was credited.
- The titles of the My Rewards menu items.
- Levels: the level system's name, and each level's title and description.
- Mini Game texts: a Wheel's title and button text, and a Pick & Win's plain texts. The Pick & Win game rules are not filled in.
- The names of a Quest's tasks.
- The banner titles on Custom Pages.
These values are cached for five minutes per player and token, so a change to the player's value can take up to five minutes to show. See How long things stay cached.
Once a Challenge completes, the bonuses it awards are credited and their values are fixed like any other.
Where you can use them
Bonuses, every type
| Where | Fields |
|---|---|
| Bonus Appearance | Title, Description, Call to Action, Optional Close CTA and the redirect URL |
| Terms and conditions | Bonus Terms and Conditions |
| Bonus Settings | The custom fields on Generic and Funds bonuses, and the text fields of each bonus type |
The custom fields are what reach your platform on claim, so a token there is how one bonus sends each player their own value. See Custom fields, and what reaches your platform.
Challenges
| Where | Fields |
|---|---|
| Challenge Appearance (Before Claim) | The same fields as Bonus Appearance above |
| Challenge Appearance (Active) | Title, Description, the Call to Action label, its URL and Challenge Terms and Conditions |
| Expire Existing Challenges | Player Message |
A Challenge built inline in an Activity with the CRM's Credit Challenge action accepts tokens in the same appearance fields.
Mini Game prizes
The bonus behind a Wheel or Pick & Win prize is a normal bonus, so its texts accept tokens: the title, the call to action, the description, the terms, the redirect URL and the close button text. They are resolved when the prize is credited.
Links that start with a token
A redirect URL or a Challenge's CTA URL can start with a token, for example #<table>-<field>#/promo, and still be saved with Open URL in new tab switched on. That is how you send each player to their own site.
Use URL-shaped fields in links
The value goes into the link exactly as it is, without URL encoding, so a value containing a space, & or # breaks the link. In a URL field, use a field that already holds a full, valid URL or path, such as a calculated segment field like brand_url.
Which tokens resolve
Segment fields resolve, including calculated segment fields. These are the #<table>-<field># tokens, named the way the segment names them.
Content variables resolve too. The value is picked for the player's origin and communication profile, the way the CRM picks it for a message.
Player features and player-origin variables do not resolve in Rewards. The Rewards pickers offer only segment fields and content variables, so you only meet the others if you type them by hand.
When a token does not resolve
| What the player sees | Why |
|---|---|
The token exactly as you typed it, #user_detials-username# | The token is mistyped, so nothing matches it. Rewards leaves it alone |
| A blank where the value should be | The token is valid but the player has no value for that field |
Neither case shows an error when you save. Credit the reward to a test player and read it in My Rewards before the campaign goes out.
Keep stray # characters out of the same text
A # earlier in the same text — "Bonus #1", or a URL fragment such as /page#promo — can stop the tokens after it from resolving. Put the token before the stray #, or reword so the text has no loose # at all.
Where tokens are not supported
These do not accept replaceable fields:
- Virtual Currencies
- Custom Pages and their sections, apart from banner titles
- The Pick & Win game rules
Images are not typed, so they cannot carry a token either. You pick them from the Media library.