# Recover abandoned carts using Omnisend with Personal Discount

Firstly, navigate to your **Shopify dashboard** ➜ **Apps** ➜ **Personal Discount** and hit **Add automation.** Then, select **Omnisend** as your Email Service Provider and **Recover abandoned carts** as the campaign type.

<figure><img src="/files/JHzlmDCylAbMgYbLDRxM" alt=""><figcaption><p>Create recover abandoned carts campaign for Omnisend</p></figcaption></figure>

You will be redirected to a form, where you can set up details of your automation such as a discount value, usage limit, or expiration date. If you would like to learn more about the discount settings provided by our app, please look at the article on [how to configure a discount](/personal-discount-for-shopify/configure-discount.md).

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

<figure><img src="/files/xFLwSakiK0et3M1W0SN9" alt="Copy the Personal Discount code snippet for Omnisend abandoned carts campaign animated"><figcaption><p>Copy the Personal Discount code snippet</p></figcaption></figure>

Now switch over to the Omnisend dashboard and click on **Automation** ➜ **New workflow** ➜ **Create custom workflow**. You can also use the built-in abandoned cart automation.

<figure><img src="/files/FxoUTp4f5BBSouGHlDIl" alt="How to create Omnisend new workflow animated"><figcaption><p>Create Omnisend new automation</p></figcaption></figure>

Select a trigger to set who will enter this automation. In this case, it should be **Abandoned Cart**. You can also use additional filters such as Product or Cart Sum if you need them.

<figure><img src="/files/onuu6ocrUtW9aoVQRVxi" alt="How to set Abandoned carts automation trigger in Omnisend animated"><figcaption><p>Set a trigger in Omnisend Abandoned Carts workflow</p></figcaption></figure>

Select an action that will be taken when a customer abandons their cart. Drag and drop an **email** element to your workflow. Then you can edit your email template content.

<figure><img src="/files/6jQUZlOo1Zv8iuqGyMBh" alt="How to add emailing in Omnisend workflow animated"><figcaption><p>Add emailing to the Omnisend workflow</p></figcaption></figure>

Let's include a discount code in your email template. To do this, drag and drop an HTML element. Delete the default content and paste the code snippet from Personal Discount.

<figure><img src="/files/WGq4oWgZFPXeUUE5OdDD" alt="How to add a unique discount code in Omnisend email animated"><figcaption><p>Insert a discount code into your Omnisend email template</p></figcaption></figure>

Set a proper **delay**. To do this, drag and drop an element with the same name and provide the desired value.&#x20;

<figure><img src="/files/EyOO301yu39CNf8edINm" alt="How to set a delay emailing in Omnisend workflow animated"><figcaption><p>Set a delay emailing in Omnisend workflow</p></figcaption></figure>

Now it's time to activate your workflow.

<figure><img src="/files/12mnQDVhKx8SV5xqOz9c" alt="How to activate Omnisend workflow animated"><figcaption><p>Start Omnisend workflow</p></figcaption></figure>

From now on your customers who abandon their carts will get a message with a discount code to encourage them to complete their order.&#x20;

<figure><img src="/files/v5IgmIZupNsZ5NDsy0bI" alt="Shopify with Omnisend: abandoned cart recovery message"><figcaption><p>Abandoned cart recovery message</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/recover-abandoned-carts-using-omnisend-with-personal-discount.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.
