# How does Personal Discount work?

Personal Discount generates unique discount codes that you can include in automated emails. The app does not send emails on its own, but instead, Personal Discount integrates with your email marketing provider and with email notifications sent by Shopify.

**How does Personal Discount work with Mailchimp?**

Personal Discount creates unique discount codes on specific events. It may be a new subscriber joining your audience in Mailchimp, a customer making a purchase, or a person abandoning their cart. The app saves the generated codes in your Shopify store back-end so they can be used at checkout. Discount codes are also being assigned to the members profiles in MailChimp. You can find them in subscriber profile information as *Shopify Discount Code* and include a discount code in your email template using a merge tag \*|DSCNT\_CODE|\*.&#x20;

**Pull or push?**

The key fact to understand how Personal Discount works is that it's the app pushing the codes to Mailchimp rather than Mailchimp pulling them from Personal Discount. That's why it's crucial to choose a right trigger, to point out the moment when a discount code should be created and pushed to Mailchimp.

**Example: discount code for a new subscriber**

<figure><img src="/files/DZptKZHYWCXB2S7HdCw6" alt="How does Personal Discount connect with Mailchimp scheme"><figcaption><p>How does Personal Discount connect with Mailchimp</p></figcaption></figure>

1. Jane fills out your email subscription form.
2. Jane's data are being saved in MailChimp.
3. MailChimp notifies Personal Discount about a new subscriber.
4. Personal Discount generates a unique discount code `HELLO-GR8DL` and adds it to your Shopify store discounts.
5. Personal Discount assigns the generated code to Jane's profile in MailChimp under a merge tag `*|DSCNT_CODE|*`.
6. MailChimp sends a welcome email to Jane including the unique discount code `HELLO-GR8DL`.\
   To make this happen you need to [set up an Automated Campaign](https://kb.mailchimp.com/automation/create-an-automated-welcome-email) in MailChimp.

**How does Personal Discount with other email marketing providers?**

Personal Discount can also work with ActiveCampaign, Jilt, Klaviyo, MailerLite, Omnisend, Privy or nearly any other email marketing service. You can include a unique discount code as an image. The discount image is also a link that redirects to your website, and applies the discount code automatically at checkout. The discount is created individually for each recipient at the moment when they open the email.

**Demo**

You can see the app in action on the [Personal Discount Demo](https://personal-discount.myshopify.com/) store. When you subscribe to the mailing list you will receive a welcome email with the discount code created by the application.

Once you receive the discount code you will be able to use it at the checkout of the demo store.

<figure><img src="/files/uR1uM5b8aDrcZfuXLEsj" alt="Personal Discount code applied at the Shopify store&#x27;s checkout annotated"><figcaption><p>Personal Discount code applied at the Shopify store's checkout</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/how-does-personal-discount-work.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.
