Missions, tournaments and levels give players clear goals. Lootboxes add a moment of surprise on top of them: players collect keys as they play, then spend those keys to open a box and win a random prize.
With Lootboxes and Keys in Optimove Loyalty, you create keys that players earn like any other reward, then build lootboxes filled with weighted prizes. You decide what each box costs in keys, which prizes it holds, how likely each prize is, how many prizes a single open draws, and how many of a rare prize can ever be won. Players see every prize and its chance before they open, so the odds stay transparent.
This guide will walk you through how to set up Lootboxes and Keys, from creating your first key to activating a lootbox and seeing what players see in the widget.
How to Set Up Lootboxes and Keys
Create a Lootbox Key
A lootbox key is a reward type in Optimove Loyalty. Players collect keys like any other reward and spend them to open lootboxes. Create every key you plan to use before you build a lootbox, because the lootbox builder only lists existing keys.
- Navigate to Rewards → Lootbox Keys and click Add Lootbox Key.
- Enter a Name. For example, Silver Key.
- Optionally, upload an image. Players see the key's name and image in the widget.
- Click Save. The key is now available as a reward everywhere you configure rewards.
Give Keys to Players
A lootbox key is a regular Optimove Loyalty reward, so you add it wherever you pick rewards by clicking Add Lootbox Key.
| Where | How to set it up | Example |
|---|---|---|
| Missions | Add the key as a mission reward | Deposit 3 days in a row, earn 1 Silver Key |
| Tournaments and leaderboards | Add the key to a rank tier's rewards | Top 10 finishers each earn 1 Gold Key |
| Levels | Add the key to a level's rewards | Reach Level 5, earn 2 Silver Keys |
| Store | Create a store item that sells the key for a Virtual Currency | 1 Gold Key for 500 Coins |
Create a Lootbox and Set the Cost to Open
A lootbox is set up on one page with five sections: Details, Cost to open, Prizes, Automatic disable and Segmentation.
- Navigate to Rewards → Lootboxes and click Add Lootbox.
- In Details, enter the Name players will see (for example, Silver Box), an optional Description shown above the prize list, and an image.
- In Cost to open, select one or more keys and set Keys per open for each. For example, 1 Gold Key and 3 Silver Keys.
- Set Prizes per open (1 or higher). This is how many prizes are drawn each time a player opens the box.
Add Prizes and Set the Odds
Each prize row sets what the player wins, how likely it is, and optionally how many times it can be won in total.
| Field | What it does | Rules |
|---|---|---|
| Reward | The reward the player receives | Any reward except a lootbox key: Virtual Currency, Experience Points, Badge, External Reward or minigame ticket |
| Amount | How much of the reward one win grants | 1 or higher |
| Weight | The prize's relative chance. The percentage is calculated live as you type. | 1 or higher |
| Limit Stock / Total Stock | Caps how many times this prize can be won across all players | Optional; when on, 1 or higher |
- In Prizes, add a prize and select the Reward.
- Enter the Amount and the Weight. Weights are relative and do not need to add up to 100.
- To cap a prize, turn on Limit Stock and enter the Total Stock.
- Repeat for each prize. The same reward can appear more than once at different amounts, for example 50 Coins at weight 70 and 500 Coins at weight 5.
Set Automatic Disable and Segmentation
These two optional sections control when the box closes and who can see it.
- In Automatic disable, turn on Disable Lootbox if any item available quantity reaches 0 to close the box as soon as a stock-limited prize runs out. This needs at least one prize with Limit Stock set.
- In Segmentation, select Optimove target groups to limit who can see and open the box. A player in any of the selected groups gets access. Leave it empty to make the box available to every player.
Save and Activate
- Click Save to keep the lootbox as a draft.
- Click Save and Activate to publish it to the widget.
Lootbox Statuses
| Status | What it means | What you can do |
|---|---|---|
| Draft | Not visible to players | Edit, duplicate, activate, delete |
| Active | Visible and openable in the widget | Archive, duplicate |
| Disabled | Closed automatically because a prize ran out of stock, or remaining stock can no longer cover a full open | Archive, duplicate |
| Archived | No longer visible; players cannot open it | Duplicate |
To see why a box was disabled, hover over the Disabled status on the Lootboxes list.
What Players See in the Widget
Players open lootboxes from the Lootboxes page of the loyalty widget. Each active box the player has access to shows:
- The box name, image and description
- The price, with several keys joined by "+" (for example, 1 Diamond Key + 5 Silver Key)
- The player's current balance of each key, and how many more of which key they still need
- Every prize in the box with its current chance per draw. Prizes that are out of stock stay on the list, marked as no longer available. Players do not see how much stock is left.
Clicking a box opens its preview. The open button names the full price (for example, Open for 1 Diamond Key + 5 Silver Key) and is enabled only when the player holds enough of every key. On open, a reel animation spins through the prizes and stops on the prize won, which is added to the player's balance right away. If the player still has enough keys, they can click Open again.
You can restyle the Lootboxes page (cards, cost, prizes and reel) in the widget theme settings.
How the Lootbox Draw Works
Each open draws the number of prizes set in Prizes per open. Every draw is independent, so the same prize can be won more than once in one open. A prize's chance per draw is its weight divided by the total weight of all prizes still in stock.
| Prize | Weight | Chance per draw |
|---|---|---|
| 50 Coins | 70 | 70% |
| 200 Coins | 25 | 25% |
| Free spins voucher | 5 | 5% |
If a stock-limited prize runs out, it is removed from the draw and the chances of the remaining prizes go up accordingly. Turn on Automatic disable if the box should close instead.
The result is decided on the server before the widget animation starts, so the player cannot influence it, and a double-click or a retry never opens the box twice.
Use Case Examples
- Gold Box for engaged players: Players earn Silver Keys from daily missions and Gold Keys from tournaments. A Gold Box costs 1 Gold Key + 3 Silver Keys and draws prizes by weight, with a stock cap on the rare prize to control cost.
- Level-up surprise: Each new loyalty level awards a key that opens a one-prize box, so every level-up ends with a small surprise.
- VIP-only box: Use Segmentation to show a premium box only to a VIP target group, while every player sees the standard boxes.
FAQ
Can I edit a lootbox after activating it?
No. Duplicate it, edit the draft, activate the new box and archive the old one.
Can a lootbox give a key as a prize?
No. Prizes can be any reward type except lootbox keys.
Can a player win the same prize twice in one open?
Yes. When Prizes per open is more than 1, each draw is independent.
Why did my lootbox switch to Disabled?
Either Automatic disable is on and a stock-limited prize ran out, or every prize is stock-limited and the remaining stock can no longer cover a full open. Hover over the Disabled status on the Lootboxes list to see which of the two it was.
Can I sell lootboxes in the store?
Not directly. Sell the key in the store and charge that key on the box.
Can I delete a key that a lootbox uses?
No. Remove the key from the lootbox first. Optimove Loyalty blocks the delete and tells you the key is in use.
Do players see how much stock is left?
No. Players see each prize's chance and whether it is out of stock, but not the remaining quantity.