How to send order status change notifications to WhatsApp by BotSailor Webhook Workflow

blog

30 Nov 2022

3202

BotSailor recently introduced a new feature – Webhook Workflow. With the feature, you can send WhatsApp messages to your Facebook Page subscribers, WooCommerce Order Notifications, and WooCommerce order status changes notifications.

 

In this article, I will show you how to send WooCommerce order status update notifications via WhatsApp.

 

 

 

To make WhatsApp send WooCommerce order status update notifications, you have to complete the following steps.

 

First, you need to create a message template in BotSailor. And the message template will be sent to the WooCommerce customers as a WooCommerce order status update notification. 

 

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

 

After you have completed these processes, BotSailor can send WhatsApp messages to Woocommerce customers just as the WooCommerce Order status changes.

 

Read the blog below to know how to create a message template in BotSailor:

 

How to create a Message Template for WhatsApp by BotSailor

 

In the message template, you have to use a variable called message.

 

 

     

  1. Click on the Webhook Workflow menu in the left sidebar of the dashboard.
  2.  

  3. Now click on the create button to create a Webhook workflow
  4.  

  5. Provide a name in the Workflow name field.
  6.  

  7. In the WhasApp Account field, select the WhatsApp account from where you want to send the message.
  8.  

  9. In the message template field, select the message template you have created to send it as a WooCommerce order Notification.
  10.  

  11. Now click on the create workflow button.
  12.  

 

 

 

 

     

  1. Now, go to your WordPress dashboard – admin dashboard.
  2.  

  3. Then go to the WooCommerce plugin -> click on settings -> click on the Advance tab.
  4.  

  5. Then click on the Webhook option
  6.  

 

 

 

 

     

  1. Now click on the add webhook button.
  2.  

  3. In the name field, provide a name
  4.  

  5. In the status field, select active as status
  6.  

  7. Select Order Updated in the Topic field. 
  8.  

  9. In the Delivery URL field, paste the Webhook Callback URL that you have copied from the BotSailor.  
  10.  

  11. Now Click on the Save Webhook button.
  12.  

 

 

 

 

     

  • Now, click on the Capture Webhook Response button in the BotSailor. 
  •  

 

 

     

  • The Webhook Response Mapping page will appear with raw data.
  •  

 

 

 

 

 

     

  • Now go to the order page of the WooCommerce plugin -- You will see the list of the orders with status on the page.
  •  

  • Clik on a order.
  •  

 

 

 

 

Instantly, the Edit order page will appear. Now you have to change the status of the order.

 

     

  1. In the status field, select the completed option.
  2.  

  3. Now click on the update button
  4.  

 

 

     

  • Now go to the BotSailor-> click on connection details button. 
  •  

 

 

 

 

 

     

  1. In the PHONE NUMBER field, select billing->phone
  2.  

  3. In the VARIABLE: ORDERID field, select the id option. 
  4.  

  5. In the VAEIABLE: WOOCOMMERCEORDERSTATUS field, select the status: Completed option. 
  6.  

  7. Now click on the Save Workflow button.
  8.  

 

 

 

 

 

 

 

 

 

 

     

  1. Click on an order.
  2.  

  3. Then change the status of the order from processing to completed.
  4.  

  5. Then click on the update button.
  6.  

 

 

 

 

 

 

 

 

Share This Post
author
Written by

Kamrul Hasan

➢  more from this author

Comments (0)