image
4081
blog

In this article, I will show you how to verify a cash-on-delivery order from the customer.

We have also created a video tutorial on how to verify a cash-on-delivery order from the customer. 

You can watch the video tutorial:

It will be very helpful to protect fake orders on WooCommerce Store.

You can now confirm a cash-on-delivery order by sending a WhatsApp message to the buyer. The buyer will get a message on WhatsApp asking them to confirm the order by saying yes or no.

It will send a message to customers, asking them to confirm the order.

Let’s see how to do that by using the BotSailor. 

First, you need to create a message template in BotSailor, the message template that will be sent to customers as soon as they create a Cash on Delivery order.

Second, you have to create a new Webhook workflow and add the Webhook to the WooCommerce store. Then, you have to map data.

To create a message template, follow the instructions step by step:

  1. , Go to the Dashboard of BotSailor -> Click on the Bot Manager menu in the left sidebar of the Dashboard -> click on the message template option.

Before creating the message template, you have to create variables. At the bottom of the page, you will see the Template variable section.

To create a variable follow the below instructions: 

  1. Click on the create button -> provide a name for the variable in the Name field -> Click on the Save button.
  2. In this way, create two variables – Product list and Total price. 

To create a message template, follow the instructions below:

  1. Click on the create button -> provide a name in the template name field -> write a message in the message body -> use the two variables -- total price and product list.
  2. Click on the Quick Reply option -> write confirm order in the first Button Text field -> write cancel order in the second Button Text field -> click on the save button. 
  3. Click on the Check status button to see the status of the message template. 

Read the blog to know more on how to create message template by BotSailor:

How to create a Message Template for WhatsApp by BotSailor

You need to create postbacks for those quick replies. 

To create postback follow the instructions:

  1. Click on the Postback option -> Click on Create button.
  2. Configure the Start Bot Flow component. Double-click on the Start Bot Flow component.
  3. Provide a title in the Title field. Choosing a Label and choosing a sequence is optional. 
  4. Click on the Save button.
  5. Add a Text element to the Start Bot Flow component.
  6. Configure the Text element.
  7. Double-click on the Text element -> writes a message in the field -> click on ok button.
  8. Click on the Save button.   

In this way, you have to create two postback -- Confirm Order and Cancel Order. You have to use the two postback for the two quick replies. 

Now you have to create a Webhook workflow. To create a webhook workflow, follow the instructions below:

  1. Click on the Webhook Workflow menu in the left sidebar of the dashboard. 
  2. Click on the create button
  3. Scroll down to the bottom of the page to the Workflow details section. 
  4. Provide a name in the Workflow name field -> Then select the message template you have created to verify woocommerce order.  
  5.  Click on the create workflow button.

  • Now copy the Webhook URL.


  1. Go to your WordPress dashboard admin dashboard ->the WooCommerce plugin-> click on settings -> click on the Advance tab.
  2. Click on the Webhooks option on the advanced settings page.
  3. Click on the Add Webhook button.