# How to create a recover abandoned carts campaign with a unique discount code via ActiveCampaign?

Personal Discount is a highly rated Shopify app for creating discount codes. You can integrate it with a lot of email marketing services such as ActiveCampaign.

Here is the complete guide on how to integrate them. If you need to create a different campaign type, check our article on [How to create a welcome new subscribers campaign in Personal Discount with ActiveCampaign.](/personal-discount-for-shopify/integrate-personal-discount-with-your-email-service-provider/activecampaign/how-to-add-a-unique-discount-code-to-welcome-emails-in-activecampaign.md)

Open the Personal Discount app in your Shopify dashboard. Then click **Add automation** button. Select **ActiveCampaign** from the Email Service Providers list. Then pick the desired Campaign Type: **Recover abandoned carts.**

<figure><img src="/files/Dn1h1iRmjidtqYwBr735" alt="Add recover abandoned carts automation with ActiveCampaign animated"><figcaption><p>Add recover abandoned carts automation with ActiveCampaign</p></figcaption></figure>

In the next step fill out the form with automation details. If you need more information about that, here is a useful article on [how to configure discount in the Personal Discount app](/personal-discount-for-shopify/configure-discount.md).

Save your automation and copy the code snippet to the clipboard.

<figure><img src="/files/BVIAQQP3DzVwfp5SgWSI" alt=""><figcaption><p>Copy Personal Discount code snippet</p></figcaption></figure>

Now switch over to the **ActiveCampaign dashboard**. Go to **Campaigns** > **Create your campaign**.

<figure><img src="/files/p15LxwlxI46W1YBaqhLw" alt="How to create new ActiveCampaign automation annotated"><figcaption><p>Create new ActiveCampaign automation</p></figcaption></figure>

Name your campaign and select the proper type – **Automated** in our case.

<figure><img src="/files/RFjkrMZQ10OO7aWwR1Pf" alt="Select campaign type annotated"><figcaption><p>Select campaign type</p></figcaption></figure>

Now **Select a Trigger**.

<figure><img src="/files/ENje1HpJTxkNSo3QV26M" alt="Select trigger for your automation annotated"><figcaption><p>Select trigger for your automation</p></figcaption></figure>

Set **options** for your automation.

<figure><img src="/files/7bZuyiOJss2Nz6wIBk6c" alt="Set action options for your automations"><figcaption><p>Set action options for your automations</p></figcaption></figure>

Now you will be asked which action to take. We would like to **send an email**.

<figure><img src="/files/blT6pLMnZn5JZf8RgMpt" alt="Select action for your ActiveCmapign automation annotated"><figcaption><p>Select action for your automation</p></figcaption></figure>

In the next step create **an email template** if you haven't already.

<figure><img src="/files/qbL31TvyBjC7vC7J1KWM" alt="Design your ActiveCampaign message template"><figcaption><p>Design your message template</p></figcaption></figure>

Insert an **HTML Block**.

<figure><img src="/files/gqYCsuBPKVUWJOceWhFc" alt="Insert HTML block into your ActiveCmpaign automation annotated"><figcaption><p>Insert HTML block into your automation</p></figcaption></figure>

Now paste the Personal Discount code snippet which you've copied to the clipboard.

<figure><img src="/files/jHiHYANQfvf7FHMczR4q" alt="Paste code snippet from Personal Discount into ActiveCampaign email template"><figcaption><p>Paste code snippet from Personal Discount</p></figcaption></figure>

After preparing an email template save all changes. Check campaign summary settings. Then click\
**Save and exit**.

<figure><img src="/files/b1yuxOXo0ExjLf58n3Lp" alt="ActiveCampaign automation summary"><figcaption><p>ActiveCampaign automation summary</p></figcaption></figure>

Now we are coming back to our automation. Select your **email to send**.

<figure><img src="/files/acAy2GYyXH2mWWaW8QW8" alt="ActiveCampaign: select email to send"><figcaption><p>ActiveCampaign: select email to send</p></figcaption></figure>

Take a look at your automation graph. If everything is OK, you can **activate** it.

<figure><img src="/files/ZBJhsNAvEBD9nYtPNa08" alt="Activate ActiveCampaign automation"><figcaption><p>Activate ActiveCampaign automation</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/activecampaign/how-to-create-a-recover-abandoned-carts-campaign-with-a-unique-discount-code-via-activecampaign.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.
