Facebook Chat Bot is a program developed for Facebook Messenger platform. It allows businesses to do automated communication with their customers. Chat bots can send and receive messages from the users. With the help of this extension, you can set up Facebook Chat Bots for your customers. The customers will get instant replies for their questions. Add message template for salutation, not found, greeting, product search.
Features
- Enable or Disable Facebook Chat Bot status.
- Add content to various messages – greeting, not found, product search.
- Add various product search keywords.
- Show products from the store in the messenger.
- The user can click the link to view the site, products, category.
- Supports Multiple language translations.
- The source code is open for customization.
Installation
To install this extension, please follow each and every step carefully as follows:
Step 1:
After extracting the downloaded zip file and you will get the src folder. Inside src folder, you will find the app folder, copy the app folder to the Magento2 root directory. Please view the below screenshot.
Step 2:
After copying the app folder, you need to run the commands in the Magento2 root directory. Please view the below screenshots:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Step 3:
After running the commands, you need to flush the cache and reindex all from the Magento2 admin panel. Navigate through System->Cache Management. Click Flush Magento Cache button as shown below:
Language Translation
If you need to do the module translation, please navigate the following path in your system. app/code/Webkul/PurchaseManagement/i18n. Open the file named en_US.CSV for editing as shown in below screenshot.
Once you have opened the file for editing. Replace the words after the comma(,) on the right with your translated words.
After editing the CSV file, save it and then upload it to the same folder. Now your module translation is complete.
Facebook Configuration
Before you begin, you need to get Facebook Access Token from here. Log in with your Facebook account and create an app. After opening the page, go to My Apps and click Add a New App. The following pop-up window will appear:
Now go to Add Product and click Get Started for Messenger.
After clicking Get Started, following page will open. Now select your Facebook Page, a confirmation window will appear. Your Access Token will appear, after doing the confirmation. Copy the Access Token and enter the same in Magento configuration.
Once you have selected your Facebook Page and copied your Access Token. Click Setup Webhooks, a pop-up window will appear.
Here you need to enter your store URL in the Callback URL field. You need to add the following in your URL.
/chatbot/chatbot/index
Enter the verify Token, enter any text or name. This name should be same for the Magento Configuration. Select all the Subscription Fields and 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.
Module Configuration
To do the module configuration, please navigate through Stores>Configuration>Chatbot. Following option will be available. Click Save Config, to apply your changes.
Enable – Set the module status as Yes or No.
Access Token – Enter the access token key obtained from Facebook App.
Verification Token – You can any text here, use the same text for the Facebook App set up.
Enter the content for various messages.
Front-End View
After logging in to the messenger, the customer can search for your page and start the chat. First, they will see the Welcome Greeting Message on the chat window.
After clicking, Get Started, the product search message will appear. The user can view the site, products, and category. From the screenshot below, you can see that the chatbot extension also works on the https://www.messenger.com/ website.
When a user enters any salutation such as Hi, Hello, Hey. The chat bot will reply the salutation message. The customers will also the few products of the store.
Thank you for viewing this blog. If you have any query or need more information, please visit webkul.uvdesk.com