# Reward a customer on their birthday

> Rewarding our customers on their birthday is a good way to increase customer loyalty and retention.

> For the complete documentation index, see [llms.txt](https://docs.talon.one/llms.txt).

Let's imagine that we are a fashion brand and want to give our customers a 30% discount
if they are shopping on their birthday, or the day before or after it. To do this, we
[create a standard campaign](/docs/product/campaigns/create-and-manage-campaigns.md#create-a-campaign-from-scratch)
with one rule.

:::tip
Another way to reward our customers on their birthday is to award them [loyalty points](/docs/product/loyalty-programs/overview.md).
:::

Let's create:

1. A [customer profile attribute](/docs/product/account/dev-tools/manage-attributes.md) to
   store our customer's birthday.
1. A [profile budget](/docs/product/campaigns/settings/manage-campaign-budgets.md) to limit
   the discount to once a year per customer.
1. A [promotion rule](/docs/product/rules/overview.md#promotion-rules) to give a 30% discount
   on the customer's birthday, or the day before or after it.

## Store the customer's birthday

:::note
To create a custom attribute, you need **Admin** permissions.
:::

Let's start by storing the customer's birthday so we can use it in the Rule Builder. To do
this, we [create a custom attribute](/docs/product/account/dev-tools/manage-attributes.md#create-a-custom-attribute).

- Associated entity: `customer profile`
- Attribute type: `time`
- API name: `CustomerBirthday`
- Rule Builder name: `Customer Birthday`
- Rule Builder description: `Represents the customer's birthday.`
- Available in our Application

## Limit the discount to once a year per customer

In the campaign you created, in <Settings className="icon"/> **Settings** > **Budgets**,
let's add a [profile budget](/docs/product/campaigns/settings/manage-campaign-budgets.md#budget-types)
to limit the discount to once a year per customer:

- Limit: `Discount Effects`
- Value: `1`
- Recurrence: `Every year`

## Offer a 30% discount on the customer's birthday

Let's [build a rule](/docs/product/rules/create-and-manage-rules.md#create-a-promotion-rule)
to give a 30% discount on the session total on the customer's birthday, or one day before
or after it.

Let's name the rule: `30% birthday discount`. It has one condition and one effect.

### Condition

**Check attribute anniversary**:

- Attribute is <Attribute name="Customer Birthday (Customer Profile)" type="builtin"/>
- Days prior to the session: `1`
- Days after the session: `1`

### Effect

**Discount session total**:

- Name: `30% off`
- Discount value: `[Session.Total]*30%`

## Related pages

- [Use conditions](/docs/product/rules/conditions/use-conditions.md)
- [Use effects](/docs/product/rules/effects/use-effects.md)
