> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/cdp-365-user-guide-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/cdp-365-user-guide-en/marketing-hub/media-template/settings/blocks-and-settings/lucky-gift-box.md).

# Lucky gift box

Click on the gift box or item and receive a random reward

After inserting a block in Live Preview, you can configure the settings:

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FIswsRAsp14UL6zrTCRQU%2F2024-09-18_14-18-09.png?alt=media&amp;token=7f9cd461-7fc5-4e5d-8a16-f80aa52964d7" alt=""><figcaption></figcaption></figure>

## Content

There are 3 section in Content tab:

1. [Gift box](#gift-box): General setting for block
2. [Cells](#cells): Configure individually for each gift box
3. [Coupon setting](#coupon-setting): Setting for coupon code

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdVNztWUj2Fh8dY_XU9F6qXc2Hdo2Tuf1Ru7Yn9x_cxMOBXXcOS_VL8XgUgyllYY_pf9p0M-XpC9VDVquJ0coDCBba0OyqCQVTt7y27Sm3HNGuXCyUsyZb9nBz0EB0YZ9zdJlJb3gTAqCmyCI3kFBB2j0rL?key=McWN_Lv9ZK-QuQzVrY3nVw" alt=""><figcaption></figcaption></figure>

### 1. Gift box

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc4eaIZlz9TBw8tLSoH7cbUmzEYui-wbFOUh67-RyUWvmk2ApXXcO44skjedLFWMFwBqTyhBhZ9tiKvMXBIyObotSt7Le2hAvDpidMTzqXhvz6VmgRxiy6xGerMdtJuQ_dD9ZcILnXjOU0tLg9diyfYk3g?key=McWN_Lv9ZK-QuQzVrY3nVw" alt=""><figcaption></figcaption></figure>

#### Customize Rewards

Click on Customize Reward button will show Customize Gift Box

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcVH7PJPUJvTI-49gkgrZj_FNM-nrcQmkV41TGo6l2froQG5AFYnPcCIa9Wb6rObmoRABbuyyL1RoTlxieIECoS4RFb-2rjlvEjv1Z_jyf2-VOLNxhnHJFD7RXqLN9n5Vni3ULMEXVwPG97TPIzdw82eUgO?key=McWN_Lv9ZK-QuQzVrY3nVw" alt=""><figcaption></figcaption></figure>

The settings have

* <img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FqHWj3bE0ewOqXUzkNh3E%2Fimage.png?alt=media&amp;token=ddaaa980-acfc-49f9-9cd5-5c5c6a7332cd" alt="" data-size="original"> or ![](https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FxN4efrUw7KNfZHQj3BmV%2Fimage.png?alt=media\&token=766eb6ab-d442-4d2d-851f-704fa2c4a1c2): adding or deleting reward.
* Rewards: naming Rewards.
* Internal code: is the name managed by the system of CDP 365 which is automatically generated by Rewards
* Win Chance (%): Managing the win probability of each reward.
* Pool and Coupon code: Managing the promotion pool is used by each reward. Pool must turn on if the reward uses a promotion pool to send out prizes.
* Limit Random: Managing the number of win times of each reward. It includes:
  * Out of code is available if Pool is on. The setting means audiences stop winning the section when the codes in the selected promotion run out.
  * Set value means audiences stop winning the reward when reaching the number of winning times set. For example, if the set value is 1, then all audiences click on the gift box can win the reward only one time. If selecting Set value, then set
    * Capping level: has Journey, Campaign, and Variant.&#x20;
    * Frequency: includes This Hour, This Day, This Week, This Month, and Lifetime. Lifetime means the whole time that a journey is active.
    * The requirement of the campaign is the section can win 2 times in the journey. Then Limit Spinning selects Set value - 2, Capping Level selects Journey, and Frequency selects Lifetime.
  * Unlimited means audiences can win the reward unlimitedly.

#### Number of rows & Number of columns

Set the number of gift boxes

#### Width

You can set width of block

#### Align

You can set align of block. There are 3 option: Left, Center, Right.

### Cells

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe3Vmlf6H0_XtMiiN4k-F4YH8dcJTGKgk36l19rc0E4l2GyNdggSAORjFXhmVnwDd6hUZPnSztjgbuTJ7LiiKVd1R3fOJxtGZpKHUK0MIycUIxwLXbJhZblZ6o2c4xWDJXgmmde4GYVABFs8lQWLaGfm6tR?key=McWN_Lv9ZK-QuQzVrY3nVw" alt=""><figcaption></figcaption></figure>

#### Cell Image

Click on Cell Image Button will display Cell Image pop up:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdE28QxKFUW8yUZEnPtvgfsI_QZLp-xy2uW9aXD0yRFs5AglYJbuoOTB9Ar1EqS73s9hQLkQhLG6-_RkE3Ix7nygRhE4QHXiwZfG5luQhiouQ72EUobf8GrMukdgZ640ff7im5_pg-ah_kcmU-ND8R1r08?key=McWN_Lv9ZK-QuQzVrY3nVw" alt=""><figcaption></figcaption></figure>

Need to upload image before clicking on gift box. You can use 1 image for all gift boxes or 1 image for each gift box by turning on or off the Apply image all feature.

#### Cell Gap

Adjust the distance between gift boxes

#### Align

Align the position of the gift boxes relative to the entire block.

#### Animation when hover

Effect when hovering over the gift box. There are 2 options: Highlight the gift box or shake the gift box

#### Animation when click

Effect when clicking on the gift box. There are 3 options:

* Shake the gift box
* Replace the clicked gift box image with another gift box. Use the image uploaded in the Cell Image - Image after open section.
* Replace the entire block with another image. The user will upload the image they want to replace

#### Translation time

Waiting time to switch from optin view to success view after clicking on the gift box.

### Coupon Setting

Similar to the Coupon Setting section of the Coupon Wheel block

## Advanced

There are 3 section in Content tab:

1. Gift box Styling: Adjust colors,... for the entire block
2. Cells Styling: Adjust color,... for 1 gift box
3. Container Styling: Similar to other blocks

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd9tXYzJYa_YofjyXLeJNBN6M_6lp2ktQcGbGc1Z5Wnlp_m49z_obFkXMwePQy2Y1qI_LoW4sQHadMNCasP53OknaqxqniuZYd3PUOS0WB9woMBQlPW4dHVrmMLM7pjzmaANjArU-DGid-wIrgDaFjxjUk?key=McWN_Lv9ZK-QuQzVrY3nVw" alt=""><figcaption></figcaption></figure>

### Gift box Styling

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfSzRtsc9raifKLhV92P-cEHvm2yPY8nZz_dIzBfLKphQ67HKhKHo2KBDUCTdzF-D2KFgsGAP0q_DOBKZDyDPkIpvIahlm8S_HoHZmcfNNMwfZu-yRBsspzf87Fa2P827Z8I8CvvYnlVvAlN6hHeQnpxbM?key=McWN_Lv9ZK-QuQzVrY3nVw" alt=""><figcaption></figcaption></figure>

#### Style

Choose the background color style for the block

#### Background Image

Upload background image for block

#### Box Shadow

Design shading for blocks

#### Border

Set border color for block

#### Rounded Corners

Set rounded corners for the block

#### Spacing

Adjust the distances between the block and each gift box and between the block and the column containing the block


---

# 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://docs.antsomi.com/cdp-365-user-guide-en/marketing-hub/media-template/settings/blocks-and-settings/lucky-gift-box.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.
