Understand ChatBot using RASA 2.1.1 version [Custom UI & Telegram Integration]

1. Create virtual env

(base) C:\Users\...>conda create -n chatbot python=3.7.4

2. Activate virtual env

(base) C:\Users\...>conda activate chatbot

3. Update and view pip version

(chatbot) C:\Users\...>pip install -U pip

Requirement already satisfied: pip in c:\users\...

(chatbot) C:\Users\...>pip --version

*pip 20.3 from C:\Users\...\Anaconda3\envs\chatbot\...

4. Install rasa

(chatbot) C:\Users\...>pip install rasa

5. Create a project folder

(chatbot) C:\Users\...\PycharmProjects>mkdir Bot

(chatbot) C:\Users\...\PycharmProjects>cd Bot

6. Create a subfolder for model train

(chatbot) C:\Users\...\PycharmProjects\Bot>mkdir SimpleBot

(chatbot) C:\Users\...\PycharmProjects\Bot>cd SimpleBot

7. Initialize rasa

(chatbot) C:\Users\...\PycharmProjects\Bot\SimpleBot>rasa init

8. Train rasa

(chatbot) C:\Users\...\PycharmProjects\Bot\SimpleBot>rasa train

9. Terminal test

(chatbot) C:\Users\...\PycharmProjects\Bot\SimpleBot>rasa shell

10. Live test [Custom UI]

(chatbot) C:\Users\...\PycharmProjects\Bot\SimpleBot>rasa run -m models --enable-api --cors "*" --debug

11. Stop live test [Custom UI]

Ctrl+C

12. Live test [Telegram Integration]

https://desktop.telegram.org/

https://ngrok.com/download

https://rasa.com/docs/rasa/connectors/telegram

Terminal 1:

(chatbot) C:\Users\...\PycharmProjects\SimpleBotTelegram>rasa run

Terminal 2:

(chatbot) C:\Users\...\PycharmProjects\SimpleBotTelegram>rasa run actions