Skip to content
FlexiPedia logo

Use Case: Abandoned Checkout

Boost your ecommerce sales by minimising cart abandonment with Flexito OmniAI. By integrating this powerful tool with your Shopify store, you can automate targeted notifications and recover lost sales more effectively than traditional methods. Let's explore how to set up this sea

Flexito OmniAI
Beginnerv4
Read in:

Listen to an audio overview

A short, AI-generated podcast-style summary of this article.

Boost your ecommerce sales by minimising cart abandonment with Flexito OmniAI. By integrating this powerful tool with your Shopify store, you can automate targeted notifications and recover lost sales more effectively than traditional methods. Let's explore how to set up this seamless integration and create an efficient abandoned cart recovery flow.

If you're managing an ecommerce store, cart abandonment might be a major reason for missing out on potential sales. Studies show that most stores experience a cart abandonment rate between 30% and 45%. For small to medium-sized businesses, this can be the difference between merely surviving and turning a profit.

Many businesses employ automations like email marketing to recover abandoned carts. However, in 2023, more targeted and often cost-effective methods have emerged, surpassing traditional email marketing.

Today, we'll learn how to set up such automation for your Shopify store using Flexito OmniAI.

Connecting Your Shopify Store with Flexito OmniAI

To begin setting up this automation, you need to connect your Shopify store to Flexito OmniAI. This involves creating a custom app in your Shopify store, which will serve as the bridge between your store and Flexito OmniAI.

To create a custom app, click on the 'Settings' tab located at the bottom-left of your Shopify admin panel.

Scroll down a bit and click on the 'Apps and sales channels' tab.

Click on 'Develop Apps'.

Click on 'Create App'.

Enter the necessary details, such as the custom app's name and select the account for which the app is being developed. Note that you need developer privileges to create an app if you're not the store owner.

Next, configure the admin scopes to grant the necessary permissions for setting up the abandoned cart flows. Click on 'Configure Admin API Scopes'.

Select the required permissions for products, product listings, and product fulfilment from the options below.

After selecting the permissions, click 'Save' and then proceed to 'API Credentials' to install the app.

Once the app is installed, capture the details provided. These are essential for establishing a connection between Flexito OmniAI and your store. Save all the data as described below.

Finally, obtain the store domain by clicking on the store's name in the admin dashboard.

In the Flexito OmniAI dashboard, click on 'Integrations' from the left-scroll menu and select 'Shopify' from the dropdown list.

Enter all the relevant information you copied earlier and click 'Save' to establish the connection.

Congratulations! Your store is now integrated with Flexito OmniAI. Let's proceed to set up a basic ecommerce flow.

You can customise the timing for the abandoned cart trigger according to your specific needs.

Creating A WhatsApp Template

Navigate to your flow builder and click on 'Content' at the bottom left of your screen. Then go to 'Message Templates' and click '+ New Template'.

Start filling in the template details as instructed below:

Provide a sample image for Meta to approve your template. Click on the 'Image' tab and paste the sample URL.

Click 'Save' and begin filling in the body of the template as shown.

For the URL button, choose a dynamic button as follows:

Click 'Submit for review' and wait for your template to be approved.

Building Abandoned Cart Flow

As the final step, create a new subflow. Once created, click on the 'Start' node within the subflow.

From the dropdown menu, scroll down and select 'Shopify Webhooks'.

Choose 'Cart Abandoned' from the dropdown menu and map the variables as follows:

Create another action flow, select 'Shopify' from the integrations tab, and then choose 'Product Images'.

Enter the JSON variable where you saved the trigger payload and select the correct attribute for the product ID field.

Click 'Test Request' to preview the sample data.

We need to dynamically shorten the URL for use in our template. Create a JS Node from the action block.

Use the JSON variable where you saved the trigger payload again and utilise the 'abandoned_checkout_url' attribute.

Paste the following code in the body and save the result to a variable as shown:

let a = url.split("/");
let b = a.splice(3,a.length)
let c = b.join("/")

return c

Save the output of the code in a CUF as follows:

We now have everything needed to send a template to the customer.

Create another action block and select 'WhatsApp Template Notification' from the Notifications tab.

Select the phone number to send the WhatsApp template to and choose the template you want to send.

Fill in the template with the CUFs we saved and fetched earlier.

After saving all the CUFs in the template, click 'Save' to complete the flow.

Conclusion

In this article, we explored how to integrate your Shopify store with Flexito OmniAI. We then created a basic ecommerce flow using the features and native actions Flexito OmniAI offers with Shopify.

Next, we used triggers for abandoned carts and set up a cart recovery flow.