# How to create Follow up on purchases campaign using Omnisend

Start by navigating to your **Shopify dashboard** > **Apps** > **Personal Discount** > **Add automation**. Select **Omnisend** as your Email Service Provider and the Campaign Type is **Follow up on purchases**.

<figure><img src="/files/E626Ehdg4SHpH5694Sj2" alt="How to add Shopify Personal Discount post-purchase automation for Omnisend annotated animated"><figcaption><p>How to add Shopify Personal Discount post-purchase automation for Omnisend</p></figcaption></figure>

In this step, you can set up details of your automation like a discount value, usage limit, or expiration date. If you want to learn more, here is a useful article on [configuring a discount](/personal-discount-for-shopify/configure-discount.md).

Save the automation when you finish and copy the code snippet to the clipboard.

<figure><img src="/files/YrM3qjmTA2mxcPxC3p1P" alt="Copy Personal Discount code snippet for Omnisend post-purchase automation animated annotated"><figcaption><p>Copy Personal Discount code snippet for Omnisend post-purchase automation</p></figcaption></figure>

Now switch over to the Omnisend dashboard. Navigate to the **Automation** section > **New workflow** > **Create custom workflow**.

<figure><img src="/files/i8G7C6uq1faCee83J9rh" alt="How to create custom workflow in Omnisend annotated animated"><figcaption><p>How to create custom workflow in Omnisend</p></figcaption></figure>

Let's set the automation trigger. Select trigger **Order placed.** Then hit **Update**.

<figure><img src="/files/IRbr1XUJpOIJSjc02yk4" alt="How to set post-purchase automation trigger in Omnisend animated"><figcaption><p>How to set post-purchase automation trigger in Omnisend</p></figcaption></figure>

In the next step, add an action that is performed when someone will enter the automation. We want to send an **Email**.

<figure><img src="/files/y1xJ7LDcjaHJaKeL4ycy" alt="How to add sending message to an Omnisend automation animated"><figcaption><p>How to add sending message to an Omnisend automation</p></figcaption></figure>

It's time for preparing an email template. In this step, you need to add the Personal Discount code snippet. To do this, click on **Quick add** from the left-hand sidebar, then drag and drop an **HTML** element into your template. Delete the existing example code snippet and paste the one from Personal Discount.

<figure><img src="/files/wxdiYc5c9VwlTqFm0lm1" alt="How to add Personal Discount code snippet into Omnisend email template animated"><figcaption><p>How to add Personal Discount code snippet into Omnisend email template</p></figcaption></figure>

When your email template is ready, hit **Finish editing**. When the entire automation is ready, click on **Start workflow**.

<figure><img src="/files/CBgNiyyNTq2yVq2X0XKk" alt="How to activate Omnisend post-purchase workflow animated"><figcaption><p>How to activate Omnisend post-purchase workflow</p></figcaption></figure>

From now on, when someone buys something in your store, they will get a discount code for their next purchase.

<figure><img src="/files/ra0XD8aeETnrvDfYo0Tw" alt=""><figcaption><p>Omnisend post-purchase message with a Personal Discount code</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/omnisend/how-to-create-follow-up-on-purchases-campaign-using-omnisend.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.
