> For the complete documentation index, see [llms.txt](https://docs.personaldiscount.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.personaldiscount.io/personal-discount-for-shopify/integrate-personal-discount-with-your-email-service-provider/mailchimp/send-unique-coupons-from-mailchimp-to-customers-who-bought-a-specific-product.md).

# Send unique coupons from Mailchimp to customers who bought a specific product

One of the most common (and one of the most successful!) ways to do so is awarding your customer base with a discount for future shopping. It can help your business with a cross-selling as well - offering a special offer for products related to what’s been bought already.

Learn how to generate unique discounts for a customer who just made a purchase of a specific item from your shop with us!

How does it work?

1. Personal Discount generates a discount code after every purchase of a  specific product.
2. Mailchimp sends a follow-up message with a discount code -  only to customers who had purchased a specific (chosen) product from a store

**How to do it?**

Configuring Personal Discount

For starters, you will need to configure Personal Discount to generate coupons for New Order.

1. Start from visiting your Dashboard and clicking on the **Add automation** button;
2. Connect to your Mailchimp account;
3. Select **New Order** as a trigger to generate discounts;
4. Now, you can set up the discount settings according to your needs.

<figure><img src="/files/K9SczdcGAgXZBvVX8aRw" alt="Personal Discount settings in automation for customers who bought a specific product"><figcaption><p>Personal Discount settings in automation for customers who bought a specific product</p></figcaption></figure>

#### Configuring Mailchimp

First of all, to enable e-commerce campaigns on MailChimp, you will need to install [Mailchimp: Email Marketing](https://apps.shopify.com/mailchimp) app.

The next step is creating a Mailchimp campaign - to do so, you will need to visit your Mailchimp dashboard, open the **Automations** section and hit **Build from scratch**. Enter your automation name and click on **Start building**.

<figure><img src="/files/temTgCq4LjWJGkJpzguw" alt="How to add new Mailchimp Customer Journey animated"><figcaption><p>Add new Mailchimp Customer Journey</p></figcaption></figure>

Now **Choose A Starting point**. We want a customer to enter the automation when they **Buys a specific product**. Then select this product from the list. &#x20;

<figure><img src="/files/oG2KDLzo97U347dZcC2q" alt="How to set a starting point for Mailchimp automation animated"><figcaption><p>Set a starting point for Mailchimp automation</p></figcaption></figure>

The flow trigger is set up, so now **Add a journey point**. Select the **Send email** action from the available options and choose a method how to prepare a message template.

<figure><img src="/files/XiDYAhw9zmxagOjUxm5e" alt="Configure a journey point in Mailchimp automation animated"><figcaption><p>Configure a journey point in Mailchimp automation</p></figcaption></figure>

While fine-tuning the email template, insert Shopify Discount Code merge tag into one of the merge text elements. It can be modified in the same way as other text. **Save & Close** the text element and if your template is ready, hit **Save and Return to Journey**.

<figure><img src="/files/dHpXHZIqj7l5ZoiPuVtn" alt="Insert a discount code merge tag into Mailchimp email template animated"><figcaption><p>Insert the discount code merge tag into Mailchimp email template</p></figcaption></figure>

When the automation is ready, it's high time to activate it. You can also decide if contacts should repeat Journey by checking a proper box. Hit **Continue** and **Turn On**. Then the Journey will appear on the automations list with the status Active.

<figure><img src="/files/WfUcYuyl3BGx1YifuMaF" alt="How to activate Mailchimp automation annotated animated"><figcaption><p>Activate Mailchimp automation</p></figcaption></figure>

From now on, your customers will receive a follow-up message with a discount code when they buy a specific product.

<figure><img src="/files/b44cStuB1wRv6sTYVMnL" alt="Example message with a discount code for the purchase of a specific product annotated"><figcaption><p>Example message with a discount code for the purchase of a specific product</p></figcaption></figure>
