Marketing
Minigames
What a minigame is
You attach a prize game (a wheel, a scratch card, a gift box…) to a Keyword bot. A customer messages a keyword, the bot sends an invitation with a play button; the customer taps it, plays in the browser, wins a discount code — and the code is also sent back into their chat with your shop.
Open it at: Channels & Campaigns → Minigames.
How customers play
- The customer messages a keyword (for example lucky spin). The bot sends an invitation with a card and a 🎁 Play now button.
- Tapping it opens the game page in the browser — no login, no app to install.
- The customer plays and sees the result immediately: the prize name, plus the discount code, its expiry date and a Copy code button when the prize has a code.
- If you turn on result messages, the code is also sent into the chat with your shop. Your staff see a "The customer just won …" line right in the conversation.
💡 Customers can't tell which slot is "worth" playing. Alochat's server draws the prize at random using the chances you set; the game page only animates to the slot that was drawn. The game page does not contain the winning chances or how many prizes are left.
The six games
| Game | What the customer does | Prizes |
|---|---|---|
| Lucky wheel | Taps spin; the pointer stops on the winning slot | 2–12 |
| Lucky grid | A light runs around 8 tiles and stops on a prize | 2–8 |
| Slot machine | Three reels spin; three matching symbols means a win | 2–8 |
| Flip card | Picks 1 of 6 face-down cards and flips it | 2–12 |
| Gift box | Picks 1 of 3 boxes — three looks: Gift box, Lucky envelope, Golden egg | 2–12 |
| Scratch card | Scratches off the silver layer to reveal the prize (has a Scratch it for me button) | 2–12 |
Which channels can send the game card
| Channel | What the customer receives |
|---|---|
| Facebook Messenger, Website chat widget, Telegram Bot | A card with the cover image (if any), a title and a button |
| Zalo OA | The cover image (if any), then a message with a button |
| Personal Zalo, Personal Telegram, WhatsApp | The cover image (if any), then a text message with the game link |
⚠️ The game link is each customer's own ticket — whoever holds the link plays with that customer's turns. That is why Alochat never sends a game card in public comment replies or in group conversations. There the card is dropped and the rest of the block is sent as usual.
The card is only sent while the promotion is Running and within its time window. If the promotion is a Draft, Paused, not started yet or past its end time, the bot drops just the game card and the rest of the block still goes out.
Quick create in 3 steps
On the Minigames page, click New promotion.
Step 1 — Pick a game
Click one of the six games. The next step has ready-made templates and you can try the game straight away.
Step 2 — Prizes & rules
- Start from a template: Thank loyal customers, Grand opening / Big sale, New Year lucky money, Thank-you after purchase (always win) or Start blank. A template fills in the promotion name, prizes, turns and duration — change anything you like.
- Prizes: name, type, chance (%), quantity and an image for each prize. The Balance to 100% button puts any shortfall or excess into the Better luck next time slot (or the last prize if there is none).
- Plays per customer: 1, 3, 5 or a number you type (up to 100). Turn on At most 1 play per day if you want customers to come back daily.
- Runs for: 7 days, 30 days or Until I stop it. The promotion starts as soon as it is created.
On the right is the real game board — click Try it as often as you like: test plays run in your browser with the chances you are editing, give no prizes and use nobody's turns.
The promotion rules (terms) are generated from the details above. Click Create and start to activate it right away, or Save draft to edit more. If it cannot be activated (for example your plan already has the maximum number of games running), it is kept as a draft — nothing to re-enter. For finer settings (cover image, colour, how codes are issued, result messages, invite friends…), click Edit promotion details.
Step 3 — Send to customers
Choose a Keyword bot, type the keywords customers will message (comma-separated; messages typed without Vietnamese accents still match) and the Invitation sent with the card, then click Create keyword. Alochat creates a new block in that bot for you.
⚠️ The bot must be assigned to a channel before anyone gets a reply. If you have no keyword bot yet, create one first — see Build a keyword bot and Assign the bot to a channel.
Adding it to an existing block
Open the keyword bot → pick a block → the Add object panel → Game → choose the promotion. You can change the Card title, Description line and Button text; leave them empty to use the promotion's own. Messenger shows at most 20 characters on a button. For how blocks work, see Write reply scripts.
Prizes
| Type | What the customer gets |
|---|---|
| Discount code | A discount code (see below) |
| Gift | A gift you hand over — with or without a code |
| Extra turn | 1 more play |
| Better luck next time | A losing slot, no prize |
- Chance (%) is the probability of winning on each play. All prizes must add up to exactly 100% before you can activate.
- Leave Quantity empty for unlimited.
- When a prize runs out, its share goes to the "Better luck next time" slot. If there is no such slot, the draw is repeated among the prizes still in stock. Once every prize is gone, the customer sees "All prizes have been given away" and does not lose a turn.
An image for each prize
Click the image box on a prize row to choose:
- Built-in images — 86 3D images in 8 groups: Deals · Gifts · Food & drink · Fashion & beauty · Tech · Holidays · Good luck · Extra turn.
- Your images — Upload from device (JPG, PNG, WebP, GIF; square images with a transparent background look best) or pick one already in your Media library.
- Use default image — the image changes with the prize type.
Prize image size — Medium, Large or Extra large — applies to the whole promotion and can be changed even while it is running. At Extra large, the Lucky wheel and Slot machine show images only; the prize name appears in the result box when the customer wins.
Discount codes
Discount code and Gift prizes can issue codes in one of four ways:
| Option | How it works |
|---|---|
| No code | Only the prize name is shown |
| Unique code per win | Alochat generates a different code for every win, like PREFIX-XXXXXXXX (8 random characters, leaving out the easily confused 0/O/1/I). The prefix is optional, up to 10 characters |
| Shared code | Everyone who wins this prize gets the same code you entered |
| Your own code list | You import codes from a marketplace or another sales system. Each code goes to exactly one customer; the prize quantity = the number of codes imported |
For a code list: save the promotion first, then click Import codes — paste one code per line or Choose CSV/TXT file (the first column is used). Up to 5,000 codes per import; duplicates are skipped. Valid (days) for a code: 1 to 365 days, counted from the moment the customer wins.
⚠️ Alochat does not apply codes to orders or marketplaces by itself. A code is proof that the customer won; your staff accept it and mark it redeemed as described below.
Where customers get their code
- The result box on the game page, with a Copy code button.
- Reopening the game link — the Prizes you have won section lists the prizes and codes again.
- The chat with your shop, if Send the result to the conversation is on (it is on by default). Leave When they win empty to use the default message in the customer's language, with the code and expiry date. If you write your own, you can insert
{prize_name},{prize_code},{prize_expires_at},{turns_left},{game_url}. Losing plays are only messaged if you write a message in When they miss / get an extra turn.
Looking up a code and marking it redeemed
- In the conversation: the line "🎁 The customer just won … — code …" is visible only to staff (it is not sent to the customer) and has a Mark as redeemed button. This line appears even when result messages are turned off.
- At the counter: on the list page click Look up code and type the code the customer gives you — the whole code or any 3+ characters of it (not case-sensitive); an exact match is listed first. You see which promotion and which customer it belongs to, and whether it is Valid, Expired or Redeemed.
- Clicked Mark as redeemed by mistake? Click it again to undo. If the code was already marked earlier, Alochat tells you the date it was redeemed instead of marking it a second time.
- The Play log at the bottom of the promotion screen: one row per play, a Wins only filter, a Result message column showing whether the message reached the customer (Sent, Failed, Message quota reached…), and an Export CSV button.
- Optionally Tag customers who win so you can filter them later in the CRM.
Invite friends for extra plays
This feature is off by default. Turn it on in the Invite friends for extra plays section of the promotion screen. Once on, each customer's game page shows a personal invite link — the link opens a chat with your Facebook Page or Telegram bot.
The inviter only gets extra plays when all four conditions are met:
- The friend actually messages your shop through the link — just tapping Share earns nothing.
- The friend is a new customer: their customer profile in your shop was created less than 24 hours ago.
- Each friend counts once per promotion; inviting yourself does not count.
- The cap has not been reached: Extra plays per friend is 1 to 5 (default 1), Max friends counted per customer is 1 to 50 (default 5).
Only customers who came from Facebook Messenger or a Telegram Bot see the invite panel; other channels don't show it. When extra plays are added, the inviter gets a message in the chat (if result messages are on).
⚠️ Facebook has banned "share to get more plays" since 2013. Alochat only adds plays when the invited friend actually messages you, but your Page can still be reported and restricted. Think it over before enabling it for a Facebook Page.
Limits to know
| Item | Rule |
|---|---|
| Turns per customer | 1–100 for the whole promotion, plus turns won from Extra turn prizes and from inviting friends. The daily limit (if on) follows Vietnam time |
| Messaging the keyword again | Each customer has one ticket per promotion: messaging again returns the same link, no extra turns |
| Double taps, flaky network | One tap on play uses exactly one turn, even if the browser resends the request |
| Editing while running | To edit prizes or change the game type you must Pause first. Everything else can be edited right away |
| Ending | Customers can no longer play, it cannot be reopened and cannot be edited. Prizes already given stay as they are |
| Deleting a promotion | Links already sent say "ended"; the play log is kept |
| Activating | Needs terms, at least 2 prizes, chances adding up to exactly 100%, a code for every Shared code prize, at least one imported code for every Your own code list prize, and an end time not yet passed. The Before activating panel lists what is missing |
| Free plan | 1 game running at a time, 300 plays per month (every play in every game counts, losing plays included). Once the month's plays are used up, customers see "This promotion is not accepting plays right now" and do not lose a turn |
| Paid plans | Follow your plan's limits. If your plan has limits, the Current plan: … line at the top of the page shows how much you have used — see Plans and AI credit |
💡 Terms and the law. Terms are required and customers can read them on the game page. The editor has a Legal note reminding you that chance-based promotions in Vietnam must be registered with the Industry and Trade authorities — Alochat does not register on your behalf. If you have a registration number, enter it in Promotion registration number (if any); the play log serves as your record.
Frequently asked questions
Does a customer get more turns by messaging the keyword again? No. Each customer has one ticket per promotion; the bot sends the same link again.
If a customer closes the game page, is the code lost? No. Reopening the link shows the Prizes you have won section; if result messages are on, the code is already in the chat too.
Why did a customer message the keyword and get no game card? Usually one of these: the promotion is not running, has ended or is paused; the channel is not supported (see the channel table above); it is a group conversation; or the bot is not assigned to the channel.