Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Go to Haptik Website
  • Contact Us
  • Home

How to Implement WhatsApp Commerce(PLM) in the Bot

Written by Soham Amburle

Updated on August 26th, 2022

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Build Deploy Analyse Manage Account Bot Deactivation
  • Bot Building
    Essentials Smart Skills Steps User Messages Bot Responses Entities Connections Customisations User feedback collection Testing Whatsapp Bots NLU Bot Maintenance
  • Smart Agent Chat
    Set up Admin Settings MyChats Section (Agent Inbox) Live Traffic Section Teams Section Archives Section Analytics Plans on Smart Agent Chat
  • Conversation Design
    Design Basics Design Guides Designing for Platforms Designing WhatsApp Bots
  • Developer Guides
    Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
  • Deployment
    Web SDK WhatsApp Facebook Instagram Sunshine Conversation LINE Google Business Messages Telegram MS Teams Bot as an API iOS SDK Android SDK
  • External Agent Tool Setup
    Zendesk Chat Salesforce Service Cloud Freshchat Zoho NICE CXOne Gorgias
  • Analytics & Reporting
    Intelligent Analytics
  • Notifications
    SMS Notifications Success Measurement
  • Commerce Plus
    Catalog Integration Bot Building Guide Channel Deployments Unified ML Pipeline Documentation
  • Troubleshooting Guides
    Error Messages FAQs
  • Release Notes
+ More

Table of Contents

Getting Started Running PLM(Product List Message) Connecting Product Catalog to WhatsApp account

This document will explain how to implement WhatsApp Commerce (PLM) in the bot.

Getting Started

  1. The Business needs to have an active WhatsApp business number.
  2. The Business needs to create a Facebook catalog in the Facebook Business Manager account. You can read more about it here. 
  3. The Business needs to link the WhatsApp Business account with the Facebook catalog. 
  4. Connect the business's bot with their WhatsApp business number. You can read more about this here. 
  5. Next, you need to try triggering a test Step with a test response on WhatsApp, in order to check if step 4 has been successful or not. 
  6. Now, you need to ask the business for the catalog ID, that was set up in step 2, along with 4-5 product retailer id. 

Running PLM(Product List Message)

  1. You need to update the webhook URL in the WhatsApp container. You can read more about it here.
  2. Now you need to use the catalog ID and product-retailer-ID to test run the PLM through the below-mentioned HSLstructure using a Code Step:
    hsl = {          
            "type": "WHATSAPP_INTERACTIVE_PRODUCT_LIST",
              "text": "Here are the relevant products I found for you",
              "header": "Welcome to test",
              "footer": "",
              "catalog_id": "309168714477583",
              "sections": [
                {
                  "title": ‘Test_title’,
                  "product_items":[
                            {"product_retailer_id": "<product_retailer_id_1>"},
                            {"product_retailer_id": "<product_retailer_id_2>"}
                        ]
                }
              ]
           }
  3. You can have more titles with its product items, as the "sections" part is in the form of lists. 
  4. If the product list is visible on WhatsApp, that means the PLM has been set up correctly and it is working fine. 
  5. If PLM is not being displayed on WhatsApp, then you need to check the logs in Kibana(log lake or elastic search) and then move to logstash-* and type "Facebook" and "bot_business_id", after which you will be able to see the logs. For example:
  6. Next, check the error code and title of the error. Most of the time, the issue arises because of the compliance, if some value is missing in the data feed, or if some product might need an extra-legal clearance from Facebook. These issues need to be resolved by the business. 
  7. Once the issues have been resolved, you can try triggering PLM again. 
  8. Now, assuming that the PLM is working fine, we would need a list of all the product-retailer-ids from the catalog that we want to show in the PLM. We can get this from the business's API. 
  9. The business will have to map the Product IDs of the API to the product-retailer-ids of the catalog and to make it easy, both of these values need to be the same. 
  10. You need to pass all the IDs in the above-provided HSL in order to get all the products.
  11. At a given point of time, at the most 30 products can be shown in the Product List Message.
  12. Also, once the PLM is shown to the user, all the control(from showing the product to adding the product or changing the quantity of the product in the cart) is with WhatsApp, and Haptik does not have any control until the user clicks on the Send message button.
  13. Once the user clicks on the Send message button, Haptik gets the control back and all the products along with their quantity and price are made available in the user_details entity, under the key "WA_PRODUCT_CART"
  14. For the connection between the PLM HSL Output Step, to the next Static Step, you can use "I want to check out my WhatsApp cart" as the User Message.

Now since the PLM is working properly, you can move to the further processes as per the design.

Connecting Product Catalog to WhatsApp account

Delete

This section is only needed if the PLM is not working, and also if the catalog is set up but you are getting the error as "catalog not present or catalog does not belong to this account"

Step 1: Navigate to your Facebook Business Settings Page, and look for your WhatsApp Account and then click on “WhatsApp Manager” as shown. 

Step 2: Next, you need to click on the Catalog from the left navigation bar, as shown.

Step 3: Under Catalog, you need to click on “Choose Catalog”

Step 4: Now, you need to click on Connect Catalog, as shown. 

Step 5: Once the Catalog is connected, you will see the following on the screen. 

That's it. You are done.


Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How to copy a Skill?
  • What is Bot Versioning? How does it work?
  • How does NPS feedback flow work?
  • What are FAQs? How to configure FAQ section?
  • What is NICE CXone Integration? How to Set Up Haptik and NICE CXone Integration

Platform

  • Conversation Studio
  • Smart Skills
  • Advanced NLU
  • Intelligent Analytics
  • Omnichannel
  • Smart Agent Chat
  • Enterprise Security
  • Integrations

Solutions

  • Conversational Commerce
  • Lead Generation
  • Customer Care
  • WhatsApp
  • Conversational IVR
  • Google Business Messages

Industries

  • Retail/ E-Commerce
  • Financial Services
  • Travel & Hospitality
  • Telecom

Knowledge

  • ROI Calculator
  • Reports & Research
  • Case Studies
  • Webinars
  • ISAT
  • Tech Blog
  • Business Blog
  • Resources
  • Haptik v/s Yellow
  • Haptik v/s Liveperson
  • Haptik v/s IBM Watson
  • Haptik v/s Verloop
  • Conversations on AI

Company

  • Why Haptik
  • About Us
  • Careers
  • News & Media
  • Awards & Recognition
  • Contact Us
  • Partnerships
  • Investor Relations

Subscribe

Sign up to recieve the latest updates

Find us on

  • Twitter-footer
  • Linkedin-footer
  • YT-footer
  • Insta-footer
  • G2-footer
  • Facebook-footer

Knowledge Base Software powered by Helpjuice

Copyright © jio Haptik Technology Limited 2021 | Data Security & Privacy Policy | GDPR

North America | Asia Pacific | Africa | enterprise@haptik.ai

Definition by Author

0
0