GitXplorerGitXplorer
v

RASA-NLU---Chatbot

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
7273eb796c7622a647e08948098f6cf30444c7c7

Pushing the necessary files

vvmalgi committed 4 years ago
Unverified
01f336efd0a12efeb62941e905b3850e4d303e60

Create 20210625-105222.tar.gz

vvmalgi committed 4 years ago
Unverified
e7ba4e30bf92da2762451c567f26e0a3e5b4139f

Create gitattributes

vvmalgi committed 4 years ago
Unverified
451f13f00ac0c6882545734dd9659742709b5013

Rasa X annotations

committed 4 years ago
Verified
97b3da75c6583689b1292fba4208fc244971af06

Adding all the necessary files for RASA chatbot

vvmalgi committed 4 years ago
Verified
cc737671866acfcd030795d8e9a0576bd147324f

Initial commit

vvmalgi committed 4 years ago

README

The README file for this repository.

RASA-NLU---Chatbot

In this repository, we have built a chatbot that can answer questions related to Mucormycosis infection also colloquially called as Black Fungus infection.Mucormycosis is a deadly infection affecting the patients who have recovered from COVID-19 and currently very few people have knowledge about this deadly disease. The technology behind the chat is open source RASA X which internally uses Spacy library to process the Natural Language.The model was trained using DIET classifier in Tensorflow for 100 epochs.Furthermore, we were able to integrate the Chatbot into Telegram and Slack messaging application.Lastly, the application was deployed on Google Cloud Platform

Steps to install the chatbot

  1. Create a virtual environment with python version 3.6. Rasa works only with python version 3.6,3.7,3.8 only.
  2. Install rasa x (pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple).This may take a while.
  3. Initialize the rasa using the command rasa init.Post rasa init, please run rasa shell to interact with bot.
  4. Add your own intents in the file nlu.yml and add stories in the file stories.yml.Both of these files are present in data file.
  5. After adding intents and stories, train the model using command rasa train.
  6. Once trained successfully, hit the command rasa x to open the Rasa UI interface.
  7. Converse with the bot and enjoy !

Screenshots:

Screenshot from 2021-06-25 11-00-32 Screenshot from 2021-06-25 11-01-48 Screenshot from 2021-06-25 11-06-47

Steps to integrate the chatbot with Telegram and Slack.

  1. To integrate the chatbot with Telegram first create a access token from Telegram BotFather and also create username.
  2. Add the obtained access token and username in the credentials.yml file under telegram section
  3. Finally add the webhook URL.To add webhook URL use ngrok.To create a URL using ngrok, use command ngrok http 5005
  4. Run rasa using command rasa run.Additionally, at same time run rasa run actions to start the action server.
  5. Go to telegram channel where bot is created and converse with bot.

Telegram integration screenshot Screenshot ss

Steps to integrate the chatbot into slack.[1]

1.First create the app in slack and integrate the chatbot into the app (app.slack.com/apps)

2.Add the Slack token key, app ID and secret key in the domain.yml file

3.After creating the app in slack, run the command rasa run.

3.Open the slack app, converse with the bot in the apps section of the slack.

Slack integration screenshot Screenshot from 2021-06-25 17-57-42 Screenshot from 2021-06-25 18-04-22

Steps to deploy the model into Google cloud platform [2]

1.Create a new VM instance in the GCP.Minimum configuration include 4 GB RAM, Ubuntu 20.04 LTS, 50 GB HDD in GCP.

2.Install the Rasa X in the created VM instance.Set the password for RASA login.

3.Once installed link the RASA in GCP with the GIT hub repository

4.Train the model and then converse with chatbot.

Google Cloud Platform Screenshot

Screenshot from 2021-06-25 20-50-15 Screenshot from 2021-06-25 20-20-28 Screenshot from 2021-06-25 20-21-06

System Requirements :

OS : Ubuntu 20.0.04 LTS

CPU : Intel Core i3 and above.

RAM : 4 GB

Memory : 256 GB SSD.

References :

[1] https://www.youtube.com/watch?v=2Qu4LCvB4bs

[2] https://www.youtube.com/watch?v=iwciZDZ0OWM