image
4109
blog

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

Webhook workflow is an advanced feature of BotSailor, and you will get greater control of your campaign. However, there is another straightforward way to verify Shopify cash on delivery orders via WhatsApp. This is BotSailor's 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. Click on the Create button.
  3. Provide a name in the Webhook Workflow button.
  4.  In the message template field, select the message template you have created. 
  5. Click on the Create workflow button.

 


  • Now you have to copy the URL

 

  1. Now go to your Shopify Orders page.
  2. Click on Settings -> Now click on Notifications menu.
  3. Scroll down to the bottom of the page.
  4. Now click on the Create Webhook button.

 

 

Now you have to fill out the form:

  1. In the Event field, select order creation.
  2.  In the Url field, put the Webhook callback Url you copied from the BotSailor. 
  3. Then click on the Save button.

  1. Go to Shopify and click on the orders menu.
  2. Now click on the Create Order button.
  3. From the Product fields, select a product.
  4. Click on the Add button.

 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. Then click on the Create Order button. 

 

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

 


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

  1. In the phone number field, select billing address phone number.
  2. In the PRODUCTLIST variable field, you have to select line_items.
  3. Now you have to select total_price in the TOTAL PRICE field.

Then you have to create a data formatter for line_items. 

  1. Click on the new button in the data formatter section. 
  2. Provide a name in the name field.
  3.  In the Action field, select Contact List Items.
  4.  In the Glue field, provide a comma
  5. In the position field, provide name
  6. Then click on the Save Formatter button.

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. Likewise, in the cancel order field, select Shopify Cancel Order Postback.

 

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. Provide a name in the Name field.
  3. In the API action field, select Shopify order tag update option. 
  4. In the Select Store Api field, select an integrated Shopify store.
  5. In the Tag field, write a tag.
  6. Then click on the Save Callback API button.   

     

 

 

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

 

 

 

Related Articles:

Send WooCommerce Abandoned Cart Recovery Message to WhatsApp by BotSailor/</h3

Send Automated WhatsApp message from Google Sheets by Using BotSailor

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

 

 

image

Kamrul Hasan

3 Jan 2023
  • Categories :

  • Uncategorized

(0) Comments

Related Articles

Stay ahead of the curve with BotSailor`s latest articles. Dive into expert analyses, industry trends, and actionable tips to optimize your experience. Explore our articles now and unlock the full potential of your business.

blog

How to set up the WhatsApp Cloud API with BotSailor

BotSailor is a complete WhatsApp marketing automation; it has chatbot, live chat, broadcasting, Shopify & WooCommerc...

READ MORE
blog

Send WooCommerce Order Notifications to WhatsApp by BotSailor Webhook Workflow

You can send Woocommerce Order Notifications to customers via WhatsApp by BotSailor in a very easy and straightforward w...

READ MORE
blog

BotSailor’s Affiliate Program

We're delighted to announce the opening of the BotSailor Affiliate Program today! We developed it as a way to thank the ...

READ MORE