Facebook Messenger Chatbot Extension for Magento 2
Product NewsUser Guide

Facebook Messenger Chatbot Extension for Magento 2

Facebook has developed a Chatbot program for its messenger platform, which would allow businesses to communicate with millions of users already connected to Facebook Messenger around the world. This extension will help you create your very own Facebook Chatbot which will be replying to your customers instantly on your Facebook Page.

Key Features

  1. Instant Answers using Artificial Intelligence and Natural Language Processing (NLP)
  2. Show products from the store in Facebook Messenger
  3. Add to “favourites” feature
  4. Both Quick and Persistent menu options for more engagement
  5. Enables Curated Shopping through Related Products option
  6. Customizable automated messages like – greetings, not found, results found, multiple welcome messages
  7. Broadcast promotional messages

Extension Configuration

To do the extension configuration, please navigate through Stores > Configuration > MageCube > Facebook Chatbot section in the admin panel of your Magento site.

Enable – Set the module status as Yes or No.

Access Token – Enter the access token key obtained from Facebook App steps of configuring which have been provided below.

Verification Token – You can enter any number here, and then you’ll need to use the same number during the Facebook App set up.

Click Save Config, to apply your changes.

Facebook Configuration

The following steps will guide you on how to integrate your Chatbot with Facebook messenger.

You need to get Facebook Access Token for the integration. To do so, first you will have to create a Facebook application. To setup a new Facebook application, please go to the following URL: developers.facebook.com/apps. Make sure that you’re registered as a “Developer” on Facebook while creating your app.

After opening the page, go to My Apps and click Add a New App. The following pop-up window will appear:

Facebook Chatbot Extension for Magento

Go to Add Product in the left menu and click Get Started for Messenger.

left menu and click Get Started for Messenger

On clicking Get Started, the following page will open. Select your Facebook Page. A confirmation window will appear. On giving the confirmation, your access token will appear. Copy the Access Token and enter the same in Magento configuration.

Now, click Setup Webhooks. A pop-up window will appear.

Here you have to enter your store URL in the Callback URL field. You have to add “/chatbot/webhook” in your URL, e.g. https://www.example.com/chatbot/webhook. Enter the verify Token, enter any text or name. This name should be same for the Magento Configuration. Select only two Subscription Fields, i.e. “messages” and “messaging_postbacks” and then click Verify and Save.

Finally, you need to select your Facebook Page for Webhooks too. Click Subscribe, as visible in the screenshot below. Your Facebook configuration is now complete. Please proceed to the next step, i.e. Module Configuration.

Extension Settings

Now, enter the content for various messages.

Click on Save Config to save your changes.

User Front-End View

Now on Facebook, users can search for your Facebook Business Page in Messenger and start communicating with the Chat Bot.

On clicking on “Get Started” you can actually start communicating with the Chatbot.

For example, if you are looking for a bag, you can simply type and send “Bag” and the Chatbot will show you all the available bags.

Similarly, if you are looking for a shirt, you can send a message “Shirt” or “Show me shirts” for example, and the chatbot will show all the available shirts.

On clicking on “View Product”, you can see that particular product and its details. There would be two options at the bottom “Similar Products” or “More Images”.

On clicking on “More Images” you can see as the word suggests, few more images of the product.

You can also choose to mark a product as “favourite”, so that you can come back later and view it.

On clicking on “Show my Favourites” you can see all the products that you have marked as favourite, where you will see the options to buy the product, mark as unfavourite or simply view the product.

Similarly, on clicking on “Show Categories”, you can view all the available Categories.

You can also add reactions in the form of emoticons for a particular product that you like / dislike.

There is also a menu at the bottom of the chatbot to browse products, show categories or help.




That is all about our Facebook Messenger Chatbot Extension for Magento 2. Hope you have a great time using it. Do let us know in case you have any doubts, queries, comments or feedback’s here.