# Create an abandoned cart recovery campaign with Klaviyo

Open the **Personal Discount** app from your **Shopify admin panel** and click **Add automation** button. Select **Klaviyo** as your **Email Service Provider** and pick the **Campaign type**: **Recover abandoned carts.**

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F8RJSFQL7pExJOPpoChTo%2Fklaviyo-shopify-personal-discount-code-create-abandoned-carts-campaign-animated.gif?alt=media&#x26;token=4645b514-8339-4976-9916-ebc146d6135b" alt="How to create recover abandoned carts automation in Personal Discount with Klaviyo animated"><figcaption><p>Add recover abandoned carts automation</p></figcaption></figure>

In the next step, specify your automation details, including discount value, expiration date, and others. Find out more in the article [how to configure discounts in the Personal Discount app for Shopify stores](https://docs.personaldiscount.io/personal-discount-for-shopify/configure-discount).

Now you can save your automation and copy the code snippet to clipboard.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FniBsPPaRnZx4yg4aEDme%2Fklaviyo-recover-abandoned-carts-shopify-personal-discount-code-snippet.png?alt=media&#x26;token=78439a9c-25dc-4487-b2a8-3da25b65dab3" alt="Copy the code snippet from Personal Discount annotated"><figcaption><p>Copy the code snippet from Personal Discount</p></figcaption></figure>

It's time to open your **Klaviyo dashboard**. Click the **Flows** section from the left-hand sidebar. Then click the **Create Flow** button. You can also move directly to the Abandoned Cart automation creator if it is available at this site as is highlighted below.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FQk2vCXbAvD0VRknNJsMD%2Fpersonal-discount-code-shopify-klaviyo-recover-abandoned-cart.png?alt=media&#x26;token=66955cea-9110-4097-8636-cbe3970ce6b8" alt="How to create Klaviyo automation for customer who abandoned their cart annotated"><figcaption><p>Create Klaviyo automation for customer who abandoned their cart</p></figcaption></figure>

Now you can type **'abandoned'** in the search field. Then different options will appear. Select **standard abandoned cart reminder**.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F4laQeMkb4tPRsuMTWV4P%2Fklaviyo-shopify-personal-discount-code-abandoned-cart-campaign.png?alt=media&#x26;token=628bdacc-a11e-4674-a5e9-ae4f695eeb2a" alt="Klaviyo abandoned cart reminder annotated"><figcaption><p>Klaviyo abandoned cart reminder</p></figcaption></figure>

The pop-up will appear. Here you can set the name of your flow and preview the structure of that. Make sure that the Shopify integration with Klaviyo is enabled. Click the **Create Flow** button at the end.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FBbiSjyu32Wp61GbJvAsn%2Fklaviyo-shopify-campaign-name-recover-abandoned-cart.png?alt=media&#x26;token=7de5047e-7f5a-4b1b-9d7a-901753e2f3cb" alt="Configure Klaviyo abandoned cart reminder"><figcaption><p>Configure Klaviyo abandoned cart reminder</p></figcaption></figure>

By default, you may have filters set up that restrict messages to be sent to only those customers who have completed an action. You can delete conditions or set up your own. To delete the filter click the button with trash icon and save.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FeGCrntQkG5DwFvFbaeMZ%2Fklaviyo-recover-abandoned-cart-campaign-filters-shopify.png?alt=media&#x26;token=7b15994a-372e-41b5-aa48-90759262aa53" alt="Set trigger for your Klaviyo automation"><figcaption><p>Set trigger for your Klaviyo automation</p></figcaption></figure>

Now you can see the default recover abandoned cart automation structure. In our case, we want to send one message, so we will delete two last boxes.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FUggzXiF3TH9hiotSmXLN%2Fklaviyo-shopify-recover-abandoned-carts-create-flow-structure.png?alt=media&#x26;token=396de0d3-91f1-4b40-8255-6c7db7c96995" alt="Customize Klaviyo abandoned cart reminder automation"><figcaption><p>Customize Klaviyo abandoned cart reminder automation</p></figcaption></figure>

Let's customize our automation parameters. Below you can see how to set desired **time delay** after checkout has started.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FVjctqvUucDO7kh0xZFOQ%2Fcustomize-automation-klaviyo-shopify-recover-abandoned-cart-time-delay-personal-discount-code.png?alt=media&#x26;token=20777411-be1a-4fd6-975c-0c45cb8eda11" alt="Save Klaviyo automation"><figcaption><p>Save Klaviyo automation</p></figcaption></figure>

Now design your email with a discount code.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F4F4UZ8VKpH6bEBKrMmpI%2Fklaviyo-shopify-email-personal-discount-code-recover-abandoned-cart.png?alt=media&#x26;token=959f7190-0c64-448a-9fa1-574132934bdf" alt="Design email for your Klaviyo automation annotated"><figcaption><p>Design email for your Klaviyo automation</p></figcaption></figure>

In the next step, specify details of your message like the sender name or subject. Then click on **Edit Content**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FJ0e0N1H19kDz658fYvkw%2Fklaviyo-recover-abandoned-carts-shopify-personal-discount-code.png?alt=media&#x26;token=e9368540-24ff-4e33-9c4a-6eae9a0d91ba" alt="Edit email for Klaviyo automation"><figcaption><p>Edit email for Klaviyo automation</p></figcaption></figure>

We need to paste the code snippet into a text element. You can edit the existing one or drag and drop a new text element into the email content. Switch out to the **Source** and paste the code snippet. Next, **Save** text block changes and **Save Content** at the end.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FMqzI4VwvgnUWP46DGpkg%2Fklaviyo-personal-discount-code-recover-abandoned-cart-shopify-campaign.png?alt=media&#x26;token=b0975a22-b112-41bb-9ef9-0bc3807835da" alt="Paste code snippet from Personal Discount into Klaviyo email template annotated"><figcaption><p>Paste code snippet from Personal Discount into Klaviyo email template</p></figcaption></figure>

We come back to the automation graph. To start sending messages, change the email status from **'Draft'** to **'Live'**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FybA7xD8hVfDGnqL8hes3%2Fpersonal-discount-code-shopify-klaviyo-recover-abandoned-carts-start-flow.gif?alt=media&#x26;token=b3fa7a6d-1719-4eab-9acd-dd98f67ce4e5" alt="Activate Klaviyo automation annotated"><figcaption><p>Activate Klaviyo automation</p></figcaption></figure>

Congratulations! You've just increased the chances that your customer will return to the abandoned cart and complete the purchase.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FnPYWkyW1D4N7Szzqtt3T%2Fklaviyo-discount-code-email-recover-abandoned-cart-shopify.png?alt=media&#x26;token=fa1ca8a7-97b0-4e62-875c-d71d52f2a114" alt="Klaviyo abandoned cart reminder with Personal Discount code"><figcaption><p>Klaviyo abandoned cart reminder with Personal Discount code</p></figcaption></figure>

When a customer clicks the discount code, will be redirected to the Shopify checkout with a discounted purchase price.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FnOyidXgdVeYBFQuDd1qk%2Fklaviyo-shopify-personal-discount-code-recover-abandoned-cart-checkout.png?alt=media&#x26;token=183e48f0-0884-4081-9e26-89b62f7b4cb3" alt="Personal Discount code applied at Shopify store checkout"><figcaption><p>Personal Discount code applied at Shopify store checkout</p></figcaption></figure>
