List Building


How to create a Klaviyo abandoned cart flow for your Cart Saver Bot

In this article we show you how to create an automated flow in Klaviyo that will enable you to automatically send abandoned cart emails to all people who opt-in via your Maisie Cart Saver Bot.

Before we start:

To recap, the Maisie Abandoned Cart (Cart Saver) Bot is triggered when a visitor on your website has items in their shopping cart and starts to leave your website without completing their purchase. Maisie starts a conversation with the visitor and offers to save their shopping cart and send them a link so they can view it again later. If the person opts-in by providing their email address, Maisie will capture the email address and sync the email address and other data to your Klaviyo account. You can use this synced data from Maisie to trigger abandoned cart emails directly from Klaviyo.

How is this different to Klaviyo's abandoned cart flow?

If you have integrated Klaviyo into your Shopify or BigCommerce store, you can set up a flow in Klaviyo to send an abandoned cart email to subscribers who have added items to their cart but not purchased. However, Klaviyo can only do this for known subscribers i.e. people who have bought from you previously or have otherwise provided an email address on your site.

Maisie's Cart Saver Bot gives you a chance to capture emails from all your other website visitors who have not previously purchased from you or provided an email address. So not only does it increase the number of email addresses you collect, it also allows you to send more abandoned cart emails and convert more sales.

What data is synced from Maisie to Klaviyo?

When a person provides their email address to the Cart Saver Bot, it will be synced to your connected Klaviyo account with the following additional information:

  • IP address
  • Cart URL
  • Cart image URL
  • Cart value
  • Product title
  • Time stamp
  • Opt-in page URL
  • Maisie bot name

You can view the data captured for any subscriber via your Klaviyo Profiles screen - simply click the Maisie event in that subscriber's event feed to expand and view all the data collected. These event details can be used in any emails you send from within Klaviyo.

Step 1 - Create an Abandoned Cart email template in Klaviyo

You may already have an abandoned cart template so you can use that and skip a few of the steps outlined below.

We'll walk through building a basic email template from scratch.

First, go to the Email Templates section in your Klaviyo dashboard. Click the Create Template button in the top right corner of your screen.

Next, you are asked to choose between the classic or new editor. We will choose the classic editor.

Next you will see a range of Themed email templates. We're going to click on the Basic section and select a simple 1 column email template.

When you click on this template, Klaviyo asks you to name the template. We'll call ours Maisie Cart Saver. Click the Create Template button to the right to save it.

Next, the email template editor will open so you can edit the email. To start, we have clicked on the image block at the top of the email.

As this is an abandoned cart email, we want to include a product image from each customer's shopping cart in the email. Click the Browse button on the left.

The Browse for Image screen will pop up. Select the Placeholder option then enter the {{ event.Cart_images }} variable into the input box and click the Save button.

Using an image variable means that Klaviyo can automatically show different product images for each customer based upon which items they added to their cart before opting into the Maisie Cart Saver Bot.

Next, you need to enter variables into the Image Settings.

In the Alt Text field we have entered {{ event.Cart_items }}, which will auto-populate the product title relating to the image shown.

In the Link field we have entered {{ event.Cart_url }}, which will insert the link to the shopping cart Maisie saved for each customer.

You can also change the image width and alignment on this screen.

Once you're done, click the Save button above the Settings on the left of your screen.

Next, we dragged the button element from the right of screen to a position under the image.

On the Block settings on the left of screen we entered "View Your Shopping Cart" as the Button Text and {{ event.Cart_url }} as the Link URL, which will insert the link to the shopping cart Maisie saved for each customer.

Next we dragged the Text Block beneath the button to the top of the email and edited the text using the Text Block editor on the left of screen.

Now we've completed our basic abandoned cart email template, click the Save & Return to Templates button in the top right of your screen.

You'll be taken back to your Email Templates main screen, where you should be able to see your newly added email template at the top of the table.

This is what our new email will look like when sent.

Step 2 - Set up your Klaviyo abandoned cart flow

Now you've finished creating your abandoned cart email template, let's get started setting up your abandoned cart bot flow in Klaviyo.

First, go to the Flows main screen in Klaviyo. Now click the Create Flow button at the top right of your screen.

Now you will be taken to the Create Flow main screen. Click the Create From Scratch button at the top right of your screen, unless you have an existing flow you'd like to use.

A pop-up will appear, asking you to name your new flow and add any tags you wish. I have named my flow "Abandoned Cart - Maisie Cart Saver". You can also add any tags you wish. Once you're happy, click the Create Flow button at the bottom right of the pop-up.

Next, you will be asked to set up a trigger for this new flow. Choose the Metric option on the left.

On the left, you are asked to choose from the dropdown the metric that will trigger your new flow. Scroll down and select "Maisie: Subscribed to cart saver via Email".

You also have the option to set Trigger Filters and Flow Filters if you wish. Once you've finished, click the Done button in the bottom left corner of your screen.

Next, you will be asked to add an action to follow the trigger you set.

Select Email on the left and drag it beneath the trigger in the middle of the screen. You will now see an email step added beneath the trigger.

Now click the three dots to the right of the email box to see a dropdown, then select Edit.

This will take you to the email editor screen where you can create your own email from scratch or use existing templates.

First, check and update the sender name, email subject and preview text as appropriate. Then click the Save Changes button.

As we want to use the Maisie Cart Saver email template we created earlier, click the Select Template button.

Next you'll see your email template library. Under the My Templates section we select the Maisie Cart Saver template.

Next, the email editor opens up so you can review and make any final changes you like.

Once you're happy with your email, click the Save & Return button in the top right of your screen.

Now we're back on the Flows screen. In the email box click the dropdown in the bottom left corner and click LIVE to make this email live.

You can add additional steps to your flow if you wish. Once you're happy with your Klaviyo flow, click the Update Action Statuses button in the top right corner of your screen.

On the pop-up, select the Live option in the Action Status dropdown. Then click the Update Statuses button in the bottom right of the pop-up.

Congratulations! Your new Klaviyo abandoned cart flow is now ready to automatically send emails to anyone who opts-in via Maisie Cart Saver Bot to receive an email with their saved shopping cart.

Now that your Klaviyo flow is ready, the final step is to disable Maisie from sending emails to people opting-in via your Cart Saver Bot.

Go to the Convo Modules screen on your Maisie dashboard and click edit (pencil icon) next to the Cart Saver module.

Next, click the Email tab and scroll down to Send emails and toggle the switch to off.

Click the Save button at the top right to save your changes.

Now Maisie won't send any emails to people opting in to abandoned cart emails. Instead, the emails will be sent directly from your Klaviyo account.

You might also like to read: