Verify Shopify cash on delivery orders by WhatsApp with BotSailor Webhook Workflow.

blog

3 Jan 2023

3486

In this article, I will show you how to verify Shopify cash on delivery orders by WhatsApp with BotSailor webhook workflow. 

 

 

Webhook workflow is a advanced feature of BotSailor from you will get greater control of your campaign. However there is another straightforward way to verify shopify cash on deliver order by WhatsApp. This is BotSailor default system to integrate Shopify Automation. Read details here about easy method to setup Shopify cash on delivery order confirmation campaign.

 

 

 

We have also created a video tutorial on How to verify Shopify cash on delivery orders by WhatsApp with BotSailor. 

 

You can watch the video tutorial.

 

 

First, you have to create a message template in BotSailor. 

 

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

 

How to create a Message Template for WhatsApp by BotSailor

 

In the message template, you have to use two templates -- ProductList and totalPrice.

 

 

Also, in the message template, you have to configure two postbacks -- Confirm Order and Cancel Order.

 

You have created two quick reply buttons. Therefore, you have to create two postbacks for two quick reply buttons -- one for confirming the order and the other for canceling the order. 

 

 

Instantly, WhatsApp Webhook(In-bound) Workflow will appear with a create button. 

 

     

  1. Click on the Webhook workflow menu in the WhatsApp section at the left sidebar of the Dashboard.
  2.  

  3. Click on the Create button.
  4.  

  5. Provide a name in the Webhook Workflow button.
  6.  

  7.  In the message template field, select the message template you have created. 
  8.  

  9. Click on the Create workflow button.
  10.  

 

 

 

 

 

 

     

  • Now you have to copy the URL
  •  

 

 

 

 

     

  1. Now go to your Shopify Orders page.
  2.  

  3. Click on Settings -> Now click on Notifications menu.
  4.  

  5. Scroll down to the bottom of the page.
  6.  

  7. Now click on the Create Webhook button.
  8.  

 

 

 

 

 

 

 

 

 

Now you have to fill out the form:

 

     

  1. In the Event field, select order creation.
  2.  

  3.  In the Url field, put the Webhook callback Url you copied from the BotSailor. 
  4.  

  5. Then click on the Save button.
  6.  

 

 

 

 

     

  1. Go to Shopify and click on the orders menu.
  2.  

  3. Now click on the Create Order button.
  4.  

  5. From the Product fields, select a product.
  6.  

  7. Click on the Add button.
  8.  

 

 

 Instantly, a create order page will appear with the Products field.

 

 

 

 

 

     

  • Then create a customer or select a customer from a predefined customers list.
  •  

 

 

 

 

     

  1. Then enable the payment due later option.
  2.  

  3. Then click on the Create Order button. 
  4.  

 

 

 

 

     

  1. In the Expected payment method, select the Cash on delivery option and click on the
  2.  

  3. Click on the Create Order button
  4.  

 

 

 

 

 

 

Now you have to fill out the webhook response mapping form. 

 

     

  1. In the phone number field, select billing address phone number.
  2.  

  3. In the PRODUCTLIST variable field, you have to select line_items.
  4.  

  5. Now you have to select total_price in the TOTAL PRICE field.
  6.  

 

 

Then you have to create a data formatter for line_items. 

 

 

     

  1. Click on the new button in the data formatter section. 
  2.  

  3. Provide a name in the name field.
  4.  

  5.  In the Action field, select Contact List Items.
  6.  

  7.  In the Glue field, provide a comma
  8.  

  9. In the position field, provide name
  10.  

  11. Then click on the Save Formatter button.
  12.  

 

 

Now you have to select the formatter for the product list.

 

 

 

 

Now you have to fill out Confirm order and Cancel order field with two postbacks -- one for confirming the order and other for canceling the order. 

 

 

 

     

  • Now create a postback for confirming the order on Shopify. 
  •  

 

 

 

 

     

  • Likewise, create another postback for canceling the order on Shopify. 
  •  

 

 

 

 

 

 

     

  1. In the confirm order field, select Shopify Confirm Order postback. 
  2.  

  3. Likewise, in the cancel order field, select Shopify Cancel Order Postback.
  4.  

 

 

 

 

Now you need to create a callback API. When a user clicks on Confirm Order or Cancel Order button, what will  happen will be defined in the callback API. 

 

Now you have to create callback API. 

 

To create a callback API, follow the instructions bellow: 

 

     

  1. Click on the New button in the Callback APIs section.
  2.  

  3. Provide a name in the Name field.
  4.  

  5. In the API action field, select Shopify order tag update option. 
  6.  

  7. In the Select Store Api field, select an integrated Shopify store.
  8.  

  9. In the Tag field, write a tag.
  10.  

  11. Then click on the Save Callback API button.   

     

     

     

  12.  

 

 

 

 

 

 

 

     

  • Select the Callback API in the Confirm Order Button field.
  •  

 

 

 

 

 

 

     

     

 

 

 

Related Articles:

 

How to Integrate Shopify for WhatsApp Automation in BotSailor

 

How to Send Shopify Order Notification to WhatsApp with BotSailor

 

How to Verify a Shopify Cash on Delivery Order by WhatsApp with BotSailor

 

How to Recover Shopify Abandoned Cart by WhatsApp with BotSailor

 

How to Send Shopify Order Notifications to WhatsApp by BotSailor Webhook Workflow

 

 

 

 

Share This Post
author
Written by

Kamrul Hasan

➢  more from this author

Comments (0)