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.
- 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.
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.
- 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 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.
- 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:
(0) Comments