# Send unique coupons to new email subscribers using Mailchimp

### &#x20;How does it work?

We are gonna use the native functionalities of Mailchimp, such as automated campaigns and merge tags. More precisely, the workflow will look as such :

1. A user subscribe to your Mailchimp list.
2. Mailchimp notifies Personal Discount.
3. Personal Discount generates a coupon in your shop and pushes it to Mailchimp, using [merge tags](https://mailchimp.com/help/getting-started-with-merge-tags/).
4. Mailchimp sends an email, using the merge tag value to display the coupon.

Now, let's dig in the configuration steps!

### 1. Configuring Personal Discount

First of all, we will configure Personal Discount to generate a new coupon for each new subscriber. It will allow us to define the characteristics of the coupons, the discount value or the expiration date for example.

For this, visit your Dashboard (<https://app.personaldiscount.io/>) and click on the **CREATE  AUTOMATION** button.&#x20;

![Configuration example](/files/-LZeSr5wa75gjKbFDAzd)

### 2. Create a welcome campaign in Mailchimp

The next step is to create an **automated welcome campaign** in Mailchimp. If you're not sure how to do it, you can follow [the excellent tutorial provided by Mailchimp on the subject.](<https://mailchimp.com/help/create-an-automated-welcome-email/ >)

### 3. Include the discount code in the email template

To include the discount code, we use the **\*|COUPON|\*** merge tag. Here is an example :&#x20;

![Example of email campaign](/files/-LZeXCUxpYiBpeTU_TyA)

### 4. Wait for the coupon before sending the email

The coupons generated by Personal Discount will often be available a few seconds after a new subscription. Still, to be sure to not send an email without a coupon code, we need to ask Mailchimp to wait for the coupon to arrive.

This can be achieved by editing the campaign to filter by segment :

![Welcome email settings - Filter by segment or tag](/files/-M7Tnrf_98H5FV6oQ6zo)

Then, add a segment rule telling that the COUPON merge tag is not blank:

![Segment Email - COUPON is not blank](/files/-M7ToRJMhxOVMSDjpz5Q)

### Conclusion

Sending a discount to new subscribers is a good way to welcome potential clients!

We hope this article has been useful. If you have any other question, don't hesitate to contact us at[ contact@personaldiscount.io](mailto:contact@personaldiscount.io)


---

# 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/woocommerce-and-magento/send-unique-coupons-to-new-subscribers-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.
