> For the complete documentation index, see [llms.txt](https://tailieu.smax.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailieu.smax.ai/extend-modules/gift-opening-game.md).

# Gift Opening Game

{% hint style="warning" %}
Module Gift Opening Game dùng để tạo minigame mở hộp quà trên Messenger
{% endhint %}

## Kích hoạt module

Để kích hoạt module Lucky Wheel, truy cập Extend Modules, sau đó tìm kiếm module Lucky Wheel và chọn Active. Sau khi active thành công, module sẽ hiển thị ở phần danh sách phía bên trái

<figure><img src="/files/Nkpwl5s7mOsS6ZapICKi" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/EQTXXUe6aRWkJdCxXgbT" alt=""><figcaption></figcaption></figure>

## Tổng quan module

Module Gift Opening Game gồm 2 cửa sổ chính:

* My webview: Quản lý các minigame mở quà mà bạn đã tạo tại đây, bạn có thể sao chép, chỉnh sửa hoặc xóa các minigame này

<figure><img src="/files/KPBw2Zj8T6WQvVOWJ9Ww" alt=""><figcaption></figcaption></figure>

* Templates: Các mẫu minigame vòng quay may mắn có sẵn trên hệ thống, bạn có thể xem trước hoặc kích hoạt các mẫu này để sử dụng

<figure><img src="/files/qBbTYfS9h0YnFbtatqIf" alt=""><figcaption></figcaption></figure>

## Tạo mới minigame

Để tạo mới minigame mở quà, bạn có thể làm theo 2 cách sau:

* Sử dụng mẫu có sẵn trong cửa sổ Templates: Bạn có thể kích hoạt các mẫu minigame có sẵn trên hệ thống bằng cách mở cửa sổ Templates và chọn Active lại minigame muốn dùng

<figure><img src="/files/zYSbqIehKWYnBWIUggmw" alt=""><figcaption></figcaption></figure>

* Tạo minigame trống để tự custom: Nếu bạn không muốn sử dụng các mẫu có sẵn, bạn có thể chọn cửa sổ My webview, sau đó chọn Thêm mới

<figure><img src="/files/HfYqkF2ELJj32GTN9HvH" alt=""><figcaption></figcaption></figure>

Minigame tạo theo cách này sẽ không có nội dung gì, bạn có thể tự custom theo ý muốn

<figure><img src="/files/8UA4nGhsatJ8FpfVaEFt" alt=""><figcaption></figcaption></figure>

## Giao diện chỉnh sửa

Cửa sổ giao diện chỉnh sửa của mỗi minigame sẽ gồm 3 phần:

* Các menu cài đặt:
  * Cấu hình thông báo: Cài đặt các phần cơ bản của minigame như nội dung các nút bấm, thông báo, màu sắc, lưu thông tin của các lượt chơi vào thuộc tính trên chatbot
  * Thiết kế game: Các hình ảnh thiết kế cho vòng quay, âm thanh khi quay, số lượng quà
  * Chỉnh sửa quà: Cài đặt số lượng quà, tỉ lệ trúng của mỗi phần quà cho vòng quay
  * Cấu hình nội dung: Thêm nội dung cho 2 nút bấm luật chơi và phần quà
  * Địa chỉ URL: URL để chơi minigame (nếu bạn tích hợp vào chatbot có thể bỏ qua cài đặt này)
  * Bản ghi dữ liệu: Lịch sử chơi game và trúng quà của từng khách hàng&#x20;
* Các tùy chọn cho từng menu
* Bản xem trước của minigame&#x20;

Xem chi tiết hướng dẫn của các menu cài đặt

{% content-ref url="/pages/8HinfT9weThKe7zSxe7r" %}
[Cấu hình thông báo](/extend-modules/gift-opening-game/cau-hinh-thong-bao.md)
{% endcontent-ref %}

{% content-ref url="/pages/noMvsVZssC8jcbajeMqu" %}
[Thiết kế game](/extend-modules/gift-opening-game/thiet-ke-game.md)
{% endcontent-ref %}

{% content-ref url="/pages/cjow8iAsE1QxXfIwhnce" %}
[Chỉnh sửa quà](/extend-modules/gift-opening-game/chinh-sua-qua.md)
{% endcontent-ref %}

{% content-ref url="/pages/2zXWAkEnUoRkgdSioevc" %}
[Cấu hình nội dung](/extend-modules/gift-opening-game/cau-hinh-noi-dung.md)
{% endcontent-ref %}

<figure><img src="/files/HoSCSvbFtDHrr3TCvMjc" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tailieu.smax.ai/extend-modules/gift-opening-game.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
