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.
Now you need to create a webhook workflow. Follow the instructions below to create a webhook workflow:
Instantly, WhatsApp Webhook(In-bound) Workflow will appear with a create button.
- Click on theWebhook workflow menuin the WhatsApp section at the left sidebar of the dashboard.
- Click on theCreate button.
- Provide a name in theWebhook Workflow button.
- In the message template field, select themessage templateyou have created.
- Click on theCreate workflow button.
- Now you have to copy theURL.
- Now go to yourShopify Orderspage.
- Click onSettings ->Now click onNotificationsmenu.
- Scroll down to the bottom of the page.
- Now click on theCreate Webhook button.
Instantly, a modal form called add webhook will appear with some fields – Event, Format, Url, and Webhook API version.
Now you have to fill out the form:
- In theEvent field, selectorder creation.
- In theUrl field, put theWebhook callback Urlyou copied from the BotSailor.
- Then click on the Save button.
Then return toBotSailorand click on theCapture Webhook responsebutton.
Now you have to send an order.You can send an order from Shopify for testing purposes. To send an order, follow the instructions below:
- Go toShopifyand click on theordersmenu.
- Now click on theCreate Orderbutton.
- From theProduct fields, select aproduct.
- Click on theAdd 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.
- Then enable thepayment due lateroption.
- Then click on theCreate Orderbutton.
- In the Expected payment method, select the Cash on delivery option and click on the
- Click on the Create Order button
Now return toBotSailorand wait for a moment. In a moment, you will get awebhook response.
Now you have to fill out the webhook response mapping form.
- In thephone numberfield, selectbilling address phonenumber.
- In thePRODUCTLISTvariable field, you have to selectline_items.
- Now you have to select total_price in theTOTAL PRICEfield.
Then you have to create a data formatter for line_items.
To create a data formatter follow the instructions below:
- Click on thenew buttonin thedata formattersection.
- Provide anamein thename field.
- In theAction field, selectContact List Items.
- In theGluefield, provide acomma.
- In theposition field, providename.
- Then click on theSave 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.
- In theconfirm orderfield, selectShopify Confirm Orderpostback.
- Likewise, in thecancel order field, selectShopify Cancel OrderPostback.
Now you need to create acallback 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:
- Click on the New button in the Callback APIs section.
- Provide anamein theName field.
- In theAPI actionfield, selectShopify order tag updateoption.
- In theSelect Store Apifield, select an integrated Shopify store.
- In theTagfield, write atag.
- Then click on theSave Callback APIbutton.
- Select theCallback APIin theConfirm Order Button field.
- This is how you can verify Shopify cash on delivery orders by WhatsApp with BotSailor.
Related Articles:
Send WooCommerce Abandoned Cart Recovery Message to WhatsApp by BotSailor/
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
Frequently Asked Questions
Find answers to common questions about this topic
To reduce fake orders, lower return costs, and confirm buyer intent before shipping.
More control over data mapping, postbacks, and order tagging than the default automation method.
A postback triggers a Callback API that updates the Shopify order (e.g., adds a tag).
Product list (line_items via formatter)
Total price
Confirm & Cancel quick replies
Yes. Create a test COD order in Shopify and capture the webhook response in BotSailor.





(0) Comments