Skip to content

bhargrah/python_chatbot_rasa

Repository files navigation

Project Summary

An Indian startup wants to build a conversational bot (chatbot) which can help users discover restaurants across several Indian cities. The main purpose of the bot is to help users discover restaurants quickly and efficiently and to provide a good restaurant discovery experience.

In this project, we will learn to build a domain-specific chatbot: a restaurant search chatbot. The bot will be able to 'talk' to users in English and will help them search for restaurants in several cities, of multiple cuisine types, budgets etc. You’re going to use an open source framework for building conversational bots - Rasa.

Installations Steps

Cloud installations

  • Create VM on GCloud

  • Execute below command for Git Installation

sudo apt-get install git
  • Clone the repo from GIT

  • Intall below

cd installations 
cloud_installations.sh
  • conda installations
cd /tmp
curl -O https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
sha256sum Anaconda3-2018.12-Linux-x86_64.sh
bash Anaconda3-2018.12.0-Linux-x86_64.sh
source ~/.bashrc
conda info

  • One time step [Create virtual environment name zomato]
conda create --name zomato python=3.7
conda activate zomato
  • Execute below commands [Make sure commands executed in virtual environment only or execute install.sh (under helper folder)]
python3 --version
pip --version

cd installations 
sh rasa_installations.sh

pip install rasa_nlu
pip install rasa_core
pip install rasa_core_sdk
pip install rasa_nlu[spacy]
python -m spacy download en
python -m spacy download en_core_web_md
python -m spacy link en_core_web_md en
pip install rasa_nlu[tensorflow]
  • Train NLU
python train_nlu_model.py
  • Train Core
python train_core_model.py
  • Core sever
sh run_bot_on_terminal.sh
  • ngrok installations
cd installations 
unzip ngrok-stable-linux-amd64.zip
./ngrok authtoken 1RrcQOSk0ImwjZL3RRGPLDKkQ3S_6MtgwdgLt135ik5Fqd1MG
./ngrok help
./ngrok 8080

Start chatting with bot :)

Slack Demo Screen Shot

About

Rasa Chatbot Implementation using Zomato API , Slack and G-Cloud integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors