WooCommerce X AiSensy (2): How to integrate WooCommerce with AiSensy

9 min. readlast update: 10.24.2024

Want to connect your WooCommerce store with AiSensy to automate useful notifications like Order confirmation, Abandoned Cart Reminders, Delivery updates, Payment reminders & more?

You're at the right place!

However, to connect your WooCommerce store with AiSensy, you first need to generate secret API keys from WooCommerce. Refer this doc to create your API keys👇

Done? Let's help you connect your WooCommerce store with AiSensy.

In this doc, we'll help you connect your WooCommerce store in AiSensy as well as setup messages for your store.

How to integrate your WooCommerce store with AiSensy?

1. In AiSensy Dashboard, go to Ecomm+

To connect your WooCommerce store with AiSensy, go to the all-new Ecomm+ & click Store setup.

2. Enter credentials of your WooCommerce Store

Next, copy-paste your WooCommerce Shop Name, Shop URL, Consumer Key & Consumer Secret Key generated through WooCommerce & click Connect.

Kindly ensure that you enter the Shop name & shop URL in the below mentioned format only:

WooCommerce Shop Name format: Your Shop Name (e.g. Flipkart)

WooCommerce Shop URL format: https://yourshopname.com (e.g. https://flipkart.com)

3. WooCommerce store is successfully connected

If the details you entered are correct, you'll see the WooCommerce store status as Connected.

 

Next up, let's setup messages for your WooCommerce store.

How to set Ecomm+ messages for your WooCommerce Store

You can setup 2 automation flows for your WooCommerce store with AiSensy, including:

  • Abandoned Cart Flow

  • Order Flow

Setting up Abandoned Cart Flow for WooCommerce Store

In WooCommerce, you can send only 1 abandoned cart message.

There are two parts to setting up the abandoned cart message for your WooCommerce store:

  • First, you have to install & setup the WooCommerce Cart Abandoned Recovery Plugin in WooCommerce

  • Second, you need to setup the message in AiSensy

 

Steps to setup Abandoned Cart plugin in woocommerce

 

Step 1 Install WooCommerce Cart Abandonment Recovery Plugin

 

1. Download the WooCommerce Cart Abandonment Recovery Plugin

Download the WooCommerce Abandonment Recovery Plugin by clicking this link: https://wordpress.org/plugins/woo-cart-abandonment-recovery/

 

 

2. Copy the WooCommerce Webhook URL from AiSensy

Login to your AiSensy Dashboard 👉 Go to Ecomm+ 👉 WooCommerce Store👉 Copy the Webhook code.

 

 

3. In WooCommerce Dashboard, go to Cart Abandonment

Hover above the WooCommerce section & click on Cart Abandonment.

Note: If you don't see Cart Abandonment, try to reinstall the plugin.

 
 

4. Go to Settings

Next, go to Settings inside your WooCommerce store.

 

5. Disable Tracking & Exclude Email sending, as shown in the image

In the settings section, untick all the options under the Disable Tracking for section & enable all of the options under the Exclude email sending for section.

 

 

6. Paste the Webhook URL

Next, scroll down 👉 enable the Webhook 👉 Paste the Webhook URL you copied from AiSensy Dashboard.

 
 

 

7. Save Changes. That's it!

Your WooCommerce Abandoned Cart flow is all set.

 

 

Step 2 Approve an Abandoned Cart Template message in AiSensy

To setup your abandoned cart messages, you can access our message library in the "Setup Messages" section (as shown in the image below).

 

Or

You can create a new abandoned cart message by Submitting a New Template.

If you don't know how, check out this WhatsApp Template message guide

Here is a sample message you can use:

Still thinking about it, {{1}}?

Can't get the Headway Bassheads 225 out of your head?🤔

Here's a 10% off code just for you: GROOVE10.

Make the Bassheads 225 yours now at just Rs {{2}}

Use it at checkout and make those Bassheads yours today!

CTA: Button title: Purchase now

Button Url: https://storeurl/{{3}}

The parameters {{1}}, {{2}} & {{3}} are $FirstName, $WOOCOMMERCE_OrderAmount & $WOOCOMMERCE_CheckoutUrl

The store URL can be found on the WooCommerce store or website

Once the message is created and approved, go to the abandoned cart flow, select the message, choose the duration after which the message should be triggered, and enter the values of the dynamic parameters mentioned above.

You can choose to create or add any other content in the message. Here's the list of WooCommerce attributes you can use in the message:

 

Step 2 Setup Abandoned Cart Flow

Once you've setup the Abandoned Cart Templates, go to Abandoned Cart Flow in Ecomm+ and click the pencil icon against the Abandoned Cart 1 message flow.

Step 3 Edit the message if required and enable the template

After clicking the pencil icon, you'll see an already-set abandoned cart template.

Here, choose the Abandoned Cart template you approved in the previous step.

 

Step 4: Enable the Abandoned Cart Flow

If you follow all the above-mentioned steps accurately, your abandoned cart automation flow will successfully activate and help you recover 25–40% of abandoned carts for your WooCommerce store.

______________________________________________________________________________________________

 

Setting up the Order Flow (For prepaid orders)

In WooCommerce, you get 4 events under the order flow, including:

Order Confirmed, Order Cancelled, Order fulfilled & Order delivered

 

Setting up Order Confirmed message

The Order Confirmed message will trigger when the user makes an online payment for the order and the payment is captured successfully.

Follow the below-mentioned steps to enable the Order Confirmed flow:

Step 1. Go to the Order Flow and edit the Order Confirmed Flow

 

 

Step 2. Submit New Order Confirmed message/ select existing Template

Here's a sample Order Confirmed message

Order Confirmation: Payment Successful

Hello {{1}},

Thank you for your purchase from [Store Name]! We're thrilled to let you know that your payment has been successfully received, and your order is now being processed. Here's a summary of your order details:

Order ID: {{2}}
​Items: {{3}}
​Total Amount Paid: {{4}}
​Payment Method: Online Payment

We're working to get your order to you as quickly as possible.

Thank you for choosing [Store Name]

 

The parameters {{1}}, {{2}}, {{3}}, & {{4}} values are $FirstName, $WOOCOMMERCE_OrderId, $WOOCOMMERCE_LineItems & $WOOCOMMERCE_OrderAmount

You can choose to create or add any other content to the message. Here is the list of WooCommerce Attributes you can use in the message

Note: This message will be triggered only when the orders are marked as Order Confirmed. If you do not have a status as an order confirmed, kindly create a manual status in your WooCommerce store.

 

Step 3. Enable Order Confirmed message

 
 

 

Setting up an Order Cancelled message

Step 1. Go to Confirmation Flow and edit the Order Cancelled Status Flow

 

Step 2. Submit New Order Cancelled Status message/ select existing Template

Here's a sample order cancelled message:

🚫 Order Cancelled 🚫

Hello {{1}},

We've processed the cancellation for your order. Here are the details for your records:

  • Order ID: {{2}}

  • Items: {{3}}

  • Total Amount: {{4}}

Refund: Expect a refund within our standard processing time.

Thank you for considering [Store Name]. We hope to serve you in the future.

 

Once the message is created and approved, go to the Order flow 👉 Select the message and enter the values of the dynamic parameters as below.

The parameters {{1}}, {{2}}, {{3}}, & {{4}} values are $FirstName, $WOOCOMMERCE_OrderId, $WOOCOMMERCE_LineItems & $WOOCOMMERCE_OrderAmount

You can choose to create or add any other content to the message, here's the list of WooCommerce Attributes you can use in the message

Note: To trigger this message, mark the order as cancelled in the WooCommerce store. The message will be sent once the order is marked as cancelled in the WooCommerce store.

Step 3. Enable Order Cancel Status message

Setting up an Order Fulfilled message

Step 1. Go to Confirmation Flow and edit the Order Fulfilled Flow

Step 2. Submit New Order Fulfilled message/ select existing Template

Here's a sample Order Fulfilled message:

📦 Order On Its Way! 📦

Hello {{1}},

Great news! Your order has been packed with care and is now on its way to you. Here’s what you need to know:

  • Order ID: {{2}}

  • Items: {{3}}

  • Total Amount Paid: {{4}}

  • Tracking URL: {{5}}

Thank you for shopping with [Store Name].

CTA: Button title: Track order

Once the message is created and approved, go to the Order flow 👉 Select the message and enter the values of the dynamic parameters as below.

The parameters {{1}}, {{2}}, {{3}}, {{4}} & {{5}} values are $FirstName, $WOOCOMMERCE_OrderId, $WOOCOMMERCE_LineItems, $WOOCOMMERCE_OrderAmount & $WOOCOMMERCE_PartialTrackingLink

You can choose to create or add any other content in the message, here is the list of WooCommerce Attributes you can use in the message

Note this message will be triggered only when the orders are marked as Shipped

If you do not have a status as Shipped please create a manual status

 

Step 3. Enable Order Fulfilled message

 

Setting up Order Delivered messages

Step 1. Go to Confirmation Flow and edit the Order Delivered Flow

 

Step 2. Submit Order Delivered message/ select existing Template

Here's a sample Order delivered message:

Hey *{{1}}*,

Great news🤩!

Your order is here.

 

Hope it is everything you wanted.

We look forward to serving you again.

Regards, *Your BrandName*

Once the message is created and approved, go to the order flow, select the message, choose the duration after which the message should be triggered, and enter the values of the dynamic parameters as below.

Once the message is created and approved, go to the order flow, select the message, choose the duration after which the message should be triggered, and enter the values of the dynamic parameters as below.

The parameters {{1}} value is $FirstName

You can choose to create or add any other content to the message, here's the list of WooCommerce Attributes you can use in the message.

Once the message is created and approved, go to the flow, select the message, choose the duration after which the message should be triggered and enter the values of the dynamic parameters as below.

Note that this message will be triggered only when the orders are marked as Delivered

If you do not have a status as delivered, please create a manual status

 
 

 

Step 3. Enable Order Delivered message

 

WooCommerce Exclusive AiSensy Attributes

Here are the exclusive WooCommerce attributes you'll find in AiSensy.

1. $WOOCOMMERCE_Email

This attribute captures a user's email. E.g. shivam@gmail.com.

 

2. $WOOCOMMERCE_OrderId

This attribute captures the unique Order ID of a new order placed by the user.

 

3. $WOOCOMMERCE_LineItems

This attribute captures the list of items purchased (If multiple products are purchased) with comma separation. E.g. Soap, bodywash, toothpaste, etc.

 

4. $WOOCOMMERCE_OrderAmount

This attribute captures the amount paid by the user for an order.

 

5. $WOOCOMMERCE_OrderStatus

This attribute captures the order status, meaning whether the order is confirmed, delivered, refunded etc.

 

6. $WOOCOMMERCE_OrderDate

This attribute captures the date & time on which the order was created by the user.

 

7. $WOOCOMMERCE_PaymentMethod

This attribute captures the mode of payment of the user, meaning whether the order is COD or prepaid.

 

8. $WOOCOMMERCE_PartialTrackingLink

This attribute captures the unique pathway of the tracking URL. Combining this with your WooCommerce domain will give you the full tracking URL. E.g. WooCommerce Domain + Partial Tracking URL = Complete Tracking URL

 

9. WOOCOMMERCE_CheckoutUrl

This attribute captures the complete Abandoned Checkout URL.

 

10. WOOCOMMERCE_OrderKey

This attribute captures the Order key which acts as a unique identifier.

 

11. WOOCOMMERCE_CouponCode

This attribute captures the Unique coupon code of an order.

That's all you need to successfully connect your WooCommerce store with AiSensy. For any queries, connect with us now

Was this article helpful?