Chat with us
Up to 60% OFF with Recurring Discounts on Premium Upgrades & Whitelabel FlexUp to 60% OFF on Premium Upgrade & Whitelabel03:00:00:00Claim
Knowledgebase/Automation/Article

How to Set Up the WhatsApp Abandoned Cart Webhook Plugin for WooCommerce in BotSailor

  • 11 Nov 2026
  • 9 min read
  • 0 views
TL;DR:

QUICK OVERVIEW

Recover unfinished checkouts on WhatsApp

Send a WhatsApp reminder when a customer leaves WooCommerce checkout unfinished. Install BotSailor’s Abandoned Cart Webhook plugin and connect it to a Webhook Workflow that uses an approved template.

  1. Connect WordPress

    Copy the workflow’s callback URL into the WordPress plugin settings, save it, and send a sample webhook.

  2. Map and activate

    Capture the sample in BotSailor, map the checkout phone and template variables, and save and activate the workflow.

  3. Test and verify

    Test a real unfinished checkout with your own WhatsApp number. Check the delivered message, its checkout link, and the matching order. If you use CartFlows, check recovery reporting separately.

START HERE

Use the WooCommerce Abandoned Cart Webhook plugin to send WhatsApp reminders through BotSailor when customers leave checkout unfinished. The WordPress plugin sends the customer and cart data to a BotSailor Webhook Workflow. The workflow uses that data to send an approved WhatsApp template with a link back to checkout.

Before You Begin

  • A working WooCommerce store and WordPress administrator access to upload and activate the plugin.
  • A BotSailor account with a connected WhatsApp number and access to Webhook Workflows.
  • An approved WhatsApp abandoned-cart reminder template for that number.
  • A product and a WhatsApp-enabled test number you control.

How Does WooCommerce WhatsApp Cart Recovery Work?

When the plugin detects an abandoned checkout, it sends the event to the workflow’s unique Webhook Callback URL. BotSailor uses the mapped phone number to select the recipient and fills the approved message with the mapped values.

Unfinished WooCommerce checkoutAbandoned Cart Webhook pluginBotSailor Webhook WorkflowWhatsApp reminder

Setup tip

Prepare the WhatsApp reminder

The walkthrough uses the approved Marketing template abandoned_cart. If you need a template, open Chatbot Manager → select your WhatsApp account → Automation → Message Templates, create a cart reminder, and confirm its Meta approval before creating the workflow. Include a checkout link and only the cart details you intend to map. See the BotSailor WhatsApp template guide.

Part 01Download and Install the Abandoned Cart Webhook Plugin

Get the ZIP from BotSailor and activate the plugin in WordPress.

Download the Plugin ZIP from BotSailor

From the BotSailor dashboard, open Control Panel → Settings & Integration → API Integration → E-commerce API.

Control PanelSettings & IntegrationAPI IntegrationE-commerce API

Click Download WC Abandoned Cart Webhook Plugin and save the ZIP file. You can also download the ZIP from the official plugin page.

BotSailor E-commerce API page with the Download WC Abandoned Cart Webhook Plugin button highlighted.
Screenshot In E-commerce API, click Download WC Abandoned Cart Webhook Plugin.

Open the WordPress Plugin Installer

In your WordPress dashboard, open Plugins → Add Plugin. Plugins is a main WordPress menu item.

WordPress dashboard showing the Plugins menu and the Add Plugin button.
Screenshot In the WordPress Plugins screen, click Add Plugin.

Upload, Install, and Activate the Plugin

Click Upload Plugin → Choose File. Select the downloaded ZIP, then click Install Now and Activate Plugin.

Return to Plugins → Installed Plugins and find Abandoned Cart Webhook. The Deactivate link confirms it is active. Leave the plugin active for the recovery workflow.

WordPress ZIP upload form and the active Abandoned Cart Webhook plugin in Installed Plugins.
Screenshot Upload the plugin ZIP and confirm that Abandoned Cart Webhook is active.

Part 02Connect WordPress to a BotSailor Webhook Workflow

Save the workflow’s callback URL in WordPress and send a sample event.

Open the Abandoned Cart Webhook Settings

In the main WordPress menu, open Settings → Abandoned Cart Webhook. Keep this tab open. It contains the Webhook URL field and the Save Changes and Send Sample Webhook buttons.

WordPressSettingsAbandoned Cart Webhook
WordPress Settings menu leading to the Abandoned Cart Webhook settings form.
Screenshot Open the plugin settings where you will enter the BotSailor callback URL.

Create the Workflow and Copy Its Callback URL

In BotSailor, open Chatbot Manager, select your WhatsApp account, then go to Automation → Webhook Workflows and click Create.

Chatbot ManagerSelect Your WhatsApp AccountAutomationWebhook Workflows

Enter a descriptive Workflow Name. This example uses WC Abandoned Cart Webhook. Under Message Template, select the prepared abandoned_cart template, check the preview, and click Create Workflow.

Under Configure Webhook Data, copy the entire Webhook Callback URL, including its unique workflow identifier. Keep that URL private.

BotSailor workflow setup with the abandoned_cart template selected and the callback URL concealed.
Screenshot Create the abandoned-cart workflow and copy its Webhook Callback URL. The example endpoint is concealed.

Save the Callback URL and Send Sample Data

Return to WordPress → Settings → Abandoned Cart Webhook. Paste the full callback URL into Webhook URL and click Save Changes.

Click Send Sample Webhook. The plugin sends sample customer and cart information to the saved URL so you can see the fields in BotSailor before a real cart is abandoned.

WordPress plugin settings with Webhook URL, Save Changes, and Send Sample Webhook highlighted.
Screenshot Save the callback URL and send a sample webhook to BotSailor.

Part 03Capture the Webhook Response, Map the Fields, and Save

Connect the sample fields to the WhatsApp template and confirm the workflow is active.

Capture the Sample Response

Return to your BotSailor workflow. Under Configure Webhook Data → Real-time Response, click the green Capture Webhook Response button. Look for the sample under Raw Data. If capture is waiting for a new event, keep it open and click Send Sample Webhook again in WordPress.

Review the Mapping for the Approved Template

Scroll to Webhook Response Mapping and review the populated fields. The sample shows the phone number and the customer’s first name. Choose the matching fields from your own captured response for every template variable.

BotSailor field
What to map
Phone Number
Use the checkout number that should receive the reminder. The screenshot uses billing_address > phone. Check the country code and the number format.
Customer name
Map the name variable to the captured first name, shown as billing_address > first_name in this example.
Product list
Use the captured cart items if your template displays them. If the payload supplies an item list, use a Data Formatter when needed to display readable product names.
Total price
Map the cart total. Check that the amount and currency in the received message match the test checkout.
Checkout link
Use the captured cart recovery link if your setup supplies one. If you use a fixed checkout URL, test it in a fresh browser session because it may depend on the original cart session.

Common mistake

Leaving cart fields set to Static Value

The mapping screenshot shows the product list, total price, and checkout link still set to Static Value. Select the correct incoming fields for cart-specific values. Configure the intended action for any quick-reply button in your selected template.

Save the Workflow and Confirm It Is Active

Set any additional Message Delay you need. 0 minutes adds no delay after BotSailor receives an eligible webhook. Click Save Workflow. The saved mapping applies from the next webhook call.

BotSailor capture button, sample Raw Data, Webhook Response Mapping, and the Save Workflow success confirmation.
Screenshot Look for Raw Data, review the mapping, and check for the save confirmation.

Success check

Workflow saved and active

Check for the success confirmation after saving. Then return to Webhook Workflows and verify the workflow is active.

Setup tip

Verify two different events

The sample verifies that WordPress can send data to BotSailor and gives you fields to map. A real unfinished checkout verifies cart detection, delivery to your WhatsApp test number, and the checkout link.

Part 04Test a Real Abandoned WooCommerce Checkout

Leave a test checkout unfinished, then verify the WhatsApp message and its checkout link.

Prepare an Unfinished Checkout

Open your WooCommerce storefront and add a product to the cart. Go to checkout, enter the customer details and a WhatsApp-enabled phone number you control, then leave checkout before clicking Place Order.

BotSailor documents a one-hour abandonment threshold and checks scheduled every five minutes. Allow time for WordPress to run the scheduled check and for any additional BotSailor delay. See the plugin timing and testing instructions.

Check the WhatsApp Recovery Reminder

Open WhatsApp on the phone used during checkout. Check that the reminder arrives, addresses the customer correctly, and shows the expected cart information and checkout link.

Open the link and confirm that it reaches the intended checkout with the expected cart. Test in a fresh session if customers will open the reminder on another device. If you complete the test purchase, verify the corresponding order under WooCommerce → Orders.

Part 05Check WhatsApp Delivery and Recovered Revenue

Review delivery in BotSailor and recovery in WooCommerce if CartFlows tracking is enabled.

Check Message Delivery in BotSailor

In the Webhook Workflows list, check Last Called At for the incoming event. Open the Workflow Report, find the test recipient, and check whether the message was delivered, skipped, or failed. Use the delivery result to decide what to investigate. See the Webhook Workflow reporting details.

Review the Cart and Recovery Report

For the reporting setup shown in this walkthrough, open WordPress → WooCommerce → Cart Abandonment. This screen comes from the separate CartFlows Cart Abandonment Recovery plugin when tracking is enabled.

Find the customer’s cart in Recent Follow Up Reports and check its status. After a tracked purchase is recovered, check Overview → Recovered Revenue for the relevant date range.

The screenshot shows a ৳15 Normal entry and a separate ৳45 Successful entry. The ৳45 entry contributes to the displayed recovered revenue. CartFlows can also count customers who return independently.

CartFlows dashboard showing a ৳15 Normal cart, a separate ৳45 Successful recovery, and ৳45 in Recovered Revenue.
Screenshot Review cart records and recovered revenue for the selected date range.

Part 06Review the End-user Notifications

See how the reminder and checkout link appear in the customer’s WhatsApp conversation.

The abandoned-cart reminder appears below the earlier COD exchange in the supplied WhatsApp conversation. The reminder shows the cart total and the link back to checkout. Compare the reminder with its own checkout record.

Image
WhatsApp conversation showing the WooCommerce abandoned-cart reminder, cart total of BDT 15.00, and a checkout link below an earlier COD exchange.
Image
Scroll inside the phone to see the full reminder. The reminder appears below a separate COD exchange. Customer names are concealed.

How Do You Know the Workflow Is Working?

  • The sample appears under Raw Data, and the correct phone and template fields are mapped and saved.
  • A real unfinished checkout produces a new workflow call and a delivered reminder to the test number.
  • The link opens the intended checkout with the expected cart. If you complete the purchase, the corresponding WooCommerce order exists.

Common Troubleshooting

What you see
What to check
The plugin settings are missing
Confirm that Abandoned Cart Webhook is active in Installed Plugins. Open Abandoned Cart Webhook under the main WordPress Settings menu.
Raw Data is empty
Check the complete callback URL, save it in WordPress, and send a fresh sample while Capture Webhook Response is open.
The sample arrives but the real checkout does not trigger
Confirm that checkout captured a valid phone number, the test order was left unfinished, and WordPress has had time to run the scheduled abandonment check.
The workflow receives data but no reminder arrives
Check the active workflow, approved template, mapped phone number, any conditions, and message delay. Review the recipient’s delivery status in the Workflow Report.
The message shows the wrong cart details
Compare the received webhook fields with the mappings. Check any Static Value selections and formatters before repeating the test.
The link opens an empty cart
Check which URL the template uses. Test in a fresh session and use a cart-specific recovery link when your setup provides one.

Key Takeaways for WooCommerce Abandoned Cart Recovery

  • WordPress detects the abandoned checkout and sends the data. BotSailor maps the payload and sends the WhatsApp reminder.
  • Use the sample webhook to configure the workflow, then use a real unfinished checkout to verify delivery and the link.
  • Use BotSailor to verify message delivery and WooCommerce to verify the order. CartFlows provides separate recovery reporting when enabled.

Next Steps

After a successful test, apply your store’s WhatsApp opt-in process before sending reminders to customers. For order notifications, status updates, and COD verification, see the complete WooCommerce WhatsApp automation guide.

To see how another app can send data to the same type of workflow, follow the BotSailor Webhook Workflow guide using Google Sheets.

Siddhartha Ghosh

Siddhartha Ghosh

FAQ

Frequently Asked Questions

Find answers to common questions about this topic

Install and activate BotSailor’s Abandoned Cart Webhook plugin in WordPress. Create a BotSailor Webhook Workflow with an approved WhatsApp template, save its callback URL in the plugin, capture sample data, map the fields, and test a real unfinished checkout.

In BotSailor, open Control Panel → Settings & Integration → API Integration → E-commerce API and click Download WC Abandoned Cart Webhook Plugin. Upload the ZIP through Plugins → Add Plugin → Upload Plugin in WordPress.

Copy the complete Webhook Callback URL from Configure Webhook Data in BotSailor. In the main WordPress menu, open Settings → Abandoned Cart Webhook, paste it into Webhook URL, and click Save Changes.

Yes. Select a Meta-approved cart reminder template for the connected WhatsApp account. The walkthrough uses the Marketing template named abandoned_cart. Map every variable used by the template before testing.

It sends example customer and cart data to the saved callback URL. In BotSailor, click Capture Webhook Response and check Raw Data. Use the sample to configure mapping, then run a separate unfinished checkout to verify automatic detection and message delivery.

It sends example customer and cart data to the saved callback URL. In BotSailor, click Capture Webhook Response and check Raw Data. Use the sample to configure mapping, then run a separate unfinished checkout to verify automatic detection and message delivery.

Map the customer’s checkout phone number and each variable in your approved template. In the sample, the name and phone come from billing_address. Select the relevant captured values for cart items, total, and checkout link when your template uses them.

BotSailor documents a one-hour abandonment threshold and checks scheduled every five minutes. WordPress must run the scheduled check, then BotSailor applies any workflow delay. Setting the delay to zero removes the additional wait in BotSailor.

A generic checkout URL may rely on the customer’s original browser session. Use a cart-specific recovery URL if the payload provides one. Test the link from WhatsApp in a fresh browser session or on the device your customers will use.

Check Last Called At and the Workflow Report in BotSailor for the webhook event and message outcome. Verify the corresponding purchase under WooCommerce → Orders. If CartFlows tracking is enabled, check the matching record and Recovered Revenue under WooCommerce → Cart Abandonment.