> For the complete documentation index, see [llms.txt](https://huongdan.cnvloyalty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huongdan.cnvloyalty.com/tinh-nang/apps-kho-ung-dung/referral-marketing/ma-su-kien.md).

# Mã sự kiện

## Bước 1: Thêm Referral Marketing

1. Vào Apps ➝ Sử dụng những ứng dụng để tùy biến chương trình loyalty của bạn
2. Cài đặt Referral Marketing

![](/files/NddrLnIXqwvUX4gyBKUU)

## Bước 2: Vào Referral Marketing

* Vào Apps ➝ Ứng dụng đã cài đặt ➝ Referral Marketing

![](/files/K4NBH0pdya9cid01Ndr0)

## Bước 3: Vào Mã sự kiện ➝ Thêm mã sự kiện

![](/files/bRu0CaJ2zvVSW5WM2y67)

## Bước 4: Nhập thông tin

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

<table><thead><tr><th width="150" align="center">STT</th><th width="246.70244044505225">Tên trường</th><th width="344.9540170942569">Mô tả</th></tr></thead><tbody><tr><td align="center">1</td><td>Tên chương trình mã sự kiện</td><td>Nhập tên mã sự kiện</td></tr><tr><td align="center">2</td><td>Mã sự kiện</td><td><ul><li>Nhập mã sự kiện</li><li>End-user sẽ nhập mã này để nhận ưu đãi</li></ul></td></tr><tr><td align="center">3</td><td>Ưu đãi được nhận</td><td>Ưu đãi end-user được nhận sau khi nhập mã sự kiện thành công</td></tr><tr><td align="center">4</td><td>Số ngày sử dụng</td><td>Số ngày sử dụng sau khi nhận ưu đãi</td></tr><tr><td align="center">5</td><td>Số lần được nhập của 1 khách hàng</td><td>Số lần 1 end-user được nhập mã sự kiện</td></tr><tr><td align="center">6</td><td>Số ưu đãi được nhận cho 1 lần nhập</td><td>Số ưu đãi 1 end-user được nhận sau khi nhập thành công</td></tr><tr><td align="center">7</td><td>Số lần được nhập mã trong sự kiện</td><td>Giới hạn tổng số lần trong 1 sự kiện tất cả end-user được nhập mã</td></tr><tr><td align="center">8</td><td>Ghi chú</td><td>Nhập thông tin thêm</td></tr></tbody></table>

## Bước 5: Chọn trạng thái

![](/files/XkaLkkFhyj3PDV84QtYR)

<table><thead><tr><th width="154.4" align="center">STT</th><th width="150">Tên trường</th><th>Mô tả</th></tr></thead><tbody><tr><td align="center">1</td><td>Trạng thái</td><td><ul><li>Bản nháp</li><li>Kích hoạt</li><li>Ngừng kích hoạt</li></ul></td></tr><tr><td align="center">2</td><td>Ngày bắt đầu</td><td>Ngày bắt đầu hiển thị mã sự kiện</td></tr><tr><td align="center">3</td><td>Không bao giờ kết thúc</td><td>Thời gian sử dụng mã sự kiện là vô hạn</td></tr><tr><td align="center">4</td><td>Ngày kết thúc</td><td>Ngày mã sự kiện không hiển thị</td></tr></tbody></table>

{% hint style="warning" %}
Sau khi cập nhật trạng thái tiếp theo, không thể chuyển về trạng thái trước đó
{% endhint %}

## Bước 6: Lưu

![](/files/N7WOLNll0ekYDbsQLkkV)

## User sử dụng mã sự kiện ở app user

Nhập mã sự kiện ở màn hình mã giởi thiệu (Chỉ hiển thị 1 lần khi user tiến hành đăng nhập lần đầu tiên)

![](/files/aOm7uWTU1syU8kviyQWH)

Ngoài ra, user có thể nhập mã sự kiện ở màn hình ưu đãi của tôi

![](/files/4SE7VrFmhxo2IjpWZFTe)


---

# 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, and the optional `goal` query parameter:

```
GET https://huongdan.cnvloyalty.com/tinh-nang/apps-kho-ung-dung/referral-marketing/ma-su-kien.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
