#INTRODUCTION
This module Helps in Building Basic Drupal Chat Bot Capable of interacting Voice/Key Based in Drupal 8 Website.
-
For a full description of the module, visit the project page: https://drupal.org/project/chat_bot
-
To submit bug reports and feature suggestions, or to track changes: https://drupal.org/project/issues/chat_bot
-
Clone URL: https://git.drupal.org/project/twitter_tweets.git
#REQUIREMENTS
This module requires the following prerequisites:
Steps to make your localhost HTTPS(If You don't have Live URL):
-
Install NGROK by visting: https://ngrok.com/download
-
Go to cmd C:\folder_location\ngrok-stable-windows-amd64 and execute below command:
-
ngrok http -host-header=rewrite 123.132.156.219:80
-
On execution you will see the below screen with publicaly accessible URLs generated by Ngrok ex: "https://0aac63f6.ngrok.io".
Steps to Create a New Dialogflow Agent:
-
A Gmail account to access Dialogflow
-
To Create app at go to https://console.dialogflow.com/api-client/#/login
-
Click on Sign in With Google and It will ask : "Dialogflow wants to access your Google Account". Click Allow and Accept T&C.
-
Click CREATE AGENT in Left Most Panel of Dialogflow
-
Give Some Agent Name, like, "ChatBot" and it will create an agent.
-
Create Entities by Clicking Entity: 1.Click on Entities in Left Most Panel and Create New entity: "Articles". Check "Define Synonyms" and add synonyms for each entry:
Articles Articles,Publishes Latest Updates Latest Updates Updates Updates 2. Create Another entity: "Drupal-Search" and Add synonyms as: Search Search, Find, search 3. Create another Entity: "Drupal-Pages" and Add Synonyms as: Pages Pages, Top Rated Pages, Latest Pages, Top Pages
-
Click on CREATE INTENTS : 1. Give it name (Which will be used later): "WorldPublish"
2. Click ADD TRAINING PHRASES and add User expressions as: "Top Publishes", "Top Articles", "Latest Publishes", "Published articles", "Latest updates", "Articles", "What are the latest articles?", "Latest Articles". Each Intents will automatically resolved to Parameter value and its corresponding resolved value. In Response Section add: "If you don't see any articles, Please visit Our Website for Latest Updates". Enable Webhook call for this Intent 3. Create another Intent: "Drupal-Pages" and Add User expressions as: "Read Pages", "Top Rated Pages", "Most Read Pages", "Top Pages", "Latest Pages" In Response Section add: "If you don't see any Pages, Please visit Our Website for Latest Updates". Enable Webhook call for this Intent 4. Create another Intent: "Drupal-Search" and add user expressions as: "Search", "search". In Responses Section add: "Sorry! We could not process your query. Please Try with other Terms Like : Search [Your Term ex: Pricing]". Enable Webhook call for this Intent.
-
Click on Fulfillment in Left Most Panel, Enable Webhook and enter the URL as generated in ngrok for ex: In Case of Localhost: https://0aac63f6.ngrok.io/root_folder_name_of_website/assist In case of Live URL: https://Live_URL/assist
-
Click Save
-
Click on Settings Icon beside Agent Name in Left Most Panel. Check on V1 API and get Client Access token to be Used later. One Can Use V2 API as well and has to modify the Response Format in Controller of Module.
Client Access Token: *************************
#INSTALLATION
- Install as you would normally install a contributed Drupal module. Visist: https://www.drupal.org/docs/8/extending-drupal-8
#CONFIGURATION
-
Enable the module
-
Go to admin/config/services/chatbot-settings and fill the form as: Client Access Token: Access Token, Bot Logo Image: , Bot User Logo: , Bot Header Logo:
-
Go To admin/structure/block click on "Place Block" in Footer region in the list of blocks and Find "Chat Bot" block and click "Place Block".
-
Before viewing in Browser Clear the Cache and see the Chat Bot Window enabled in Footer
#MAINTAINERS
Current maintainers:
- Sameer Kumar Choudhary (samhaldia) - https://www.drupal.org/u/samhaldia
- Tadepalli Krishna Priya (tkrishnapriya) - https://drupal.org/u/tkrishnapriya