# How to create a birthday campaign with a discount code using Mailchimp

Personal Discount does not support a dedicated trigger to generate discount codes on a birthday with Mailchimp. Nevertheless, there is a clever workaround. With this approach, the discount code displays as a clickable image that will redirect a customer to your store with a discount applied.

Start by creating new automation in Personal Discount. Click on **Add automation**. Select **Other** as your Email Service Provider and **Happy Birthday** as the campaign type.&#x20;

<figure><img src="/files/ldyV9nLuirHd3qMAeGk2" alt="How to create Happy Birthday automation in Personal Discount animated"><figcaption><p>Create Happy Birthday automation in Personal Discount</p></figcaption></figure>

Set the parameters of discount codes that will be created by this automation. Find more in the article on [how to configure discount](/personal-discount-for-shopify/configure-discount.md) to make the most of the options provided by the app.

Once you have completed this stage, **save** your automation and **copy** the code snippet.&#x20;

<figure><img src="/files/ERV0oUtGkoDKCigRaBWE" alt="Personal Discount: copy the code snippet animated"><figcaption><p>Personal Discount: copy the code snippet</p></figcaption></figure>

The next step is creating a birthday campaign in Mailchimp. You can do this using **Journey** or **Classic Automations**. Navigate to the **Mailchimp dashboard**  > **Automations** > **Build from scratch**. Type your Journey name and hit **Start Building**.

<figure><img src="/files/lSQiPSqNV5cXxPOeHlkC" alt="How to create a new Journey from scratch in Mailchimp animated"><figcaption><p>Create a new Journey from scratch in Mailchimp</p></figcaption></figure>

Set **Birthday** as the starting point of your automation. Decide how many days before the subscriber's Birthday date you want to send a message to them and indicate the name of the field where this date is stored in Mailchimp.

<figure><img src="/files/9PIDfNOpXDFO798cvJqg" alt="Mailchimp: how to set the starting point of Birthday automation animated annotated"><figcaption><p>Mailchimp: set the starting point of Birthday automation</p></figcaption></figure>

**Add a Journey point**. We want to **send email**. Next, design your message. You can choose from the themes or build an email from scratch.&#x20;

<figure><img src="/files/XfDPXaef1tP2Kr67s49H" alt="Mailchimp add a Journey point: send email animated"><figcaption><p>Mailchimp - add a Journey point: send email</p></figcaption></figure>

Customize your email template. Next, drag and drop a code element into the place where you want a discount code to be displayed. Delete the placeholder div and paste the code snippet from Personal Discount. Then replace both occurrences of **{{ email }}** with **\*|EMAIL|\*** in the code snippet. **Save & close** the code element. You will see an example discount code in your email template.&#x20;

<figure><img src="/files/8l3SBGyO20akT36DZz3r" alt="How to insert discount code into Mailchimp birthday campaign email animated"><figcaption><p>Insert discount code into Mailchimp birthday campaign email</p></figcaption></figure>

When your email template is ready, hit **Save and Return to Journey**. Then click on **Continue** and **Turn On** to activate the automation. Your automation will appear on the list in **Overview** of the **Automations** section.&#x20;

<figure><img src="/files/FuZFsZjZWwlCpoYmgVIk" alt="How to activate a Birthday Journey in Mailchimp animated"><figcaption><p>Activate Birthday Journey in Mailchimp</p></figcaption></figure>

From now on, your subscribers will receive a message with a discount code the day before their birthday.

<figure><img src="/files/sIODYSuOXxB2EXC0oDlZ" alt="Personal Discount code in Mailchimp Birthday campaign annotated"><figcaption><p>Personal Discount code in Mailchimp Birthday campaign</p></figcaption></figure>


---

# Agent Instructions: 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://docs.personaldiscount.io/personal-discount-for-shopify/integrate-personal-discount-with-your-email-service-provider/mailchimp/how-to-create-a-birthday-campaign-with-a-discount-code-using-mailchimp.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.
