Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5490

Facebook Chat Bot for Magento 2

$
0
0

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.

Magento2 Admin Buyer Chat Installation

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

Magento2 Admin Buyer Chat command

php bin/magento setup:static-content:deploy

Magento2 Admin Buyer Chat command

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:

Magento2 Cache Management

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.

Magento2 Change CSV language file

Once you have opened the file for editing. Replace the words after the comma(,) on the right with your translated words.

Magento2 Change Language

After editing the CSV file, save it and then upload it to the same folder. Now your module translation is complete.

Magento2 Change CSV Language file

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:

Magneto2 facebook chatbot - create app

Now go to Add Product and click Get Started for Messenger.

Magneto2 facebook chatbot - webhooks

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.

select facebook page

Once you have selected your  Facebook Page and copied your Access Token. Click Setup Webhooks, a pop-up window will appear.

setup webhooks

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.

enter call back url

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.

select webhooks facebook page

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.

Magneto2 facebook chatbot - configuration

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.

greeting message

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.

product search message

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.

salutation message

Thank you for viewing this blog. If you have any query or need more information, please visit webkul.uvdesk.com


Viewing all articles
Browse latest Browse all 5490

Trending Articles