# 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FBvW5vSmjoUyFkwAVaDSW%2Fshopify-personal-discount-create-post-purchase-automation-omnisend-annotated-animated.gif?alt=media&#x26;token=03f61d99-3130-4713-9c6e-48ad0b7a8b59" 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](https://docs.personaldiscount.io/personal-discount-for-shopify/configure-discount).

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

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2Fzurc8kweZGHBF9BYQlmh%2Fshopify-personal-discount-code-snippet-post-purchase-automation-omnisend-annotated-animated.gif?alt=media&#x26;token=92fd3fb7-f02b-48ec-b24d-0fbc735e03a1" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FAUWeYNi1ub821cHJfqJF%2Fomnisend-create-new-workflow-from-scratch-animated.gif?alt=media&#x26;token=ec086e8f-ff0c-45f2-ab7e-decac76c3c85" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FUSvdxpTwLdxbRam3HjK5%2Fomnisend-set-post-purchase-automation-trigger-animated.gif?alt=media&#x26;token=bf46ec64-a9e8-4228-90a9-010b305f25ec" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F2vZjY88qDsKDn2boLhfx%2Fomnisend-set-an-action-post-purchase-automation-animated.gif?alt=media&#x26;token=96f98e1f-5ef1-46f0-b3bc-a90ddbc92691" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F93uIqepCbmxJUUEOyCtl%2Fomnisend-add-shopify-personal-discouint-code-snippet-animated.gif?alt=media&#x26;token=2dc66736-7c9c-4ba2-b3a9-78b927d39be9" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FfNtpz9wJitJBbQ37Q5O2%2Fomnisend-activate-post-purchase-workflow-animated.gif?alt=media&#x26;token=4af1dbf4-7b20-4136-9d2b-b194ac0753a8" 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="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F3urs9pX58pm3XMAnECrv%2Fomnisend-shopify-personal-discount-code-post-purchase-message.png?alt=media&#x26;token=02c87207-c480-4aab-88e4-b94b450e0d14" alt=""><figcaption><p>Omnisend post-purchase message with a Personal Discount code</p></figcaption></figure>
