The video is a little big, so you may have to download and watch it.
There are a few online packages needed to be installed for this project
Prerequisites
Make sure your other packages on your computer are compatible with rasa-NLU.
Setting up Rasa NLU
Stable (Recommended)
The recommended way to install Rasa NLU is using pip which will install the latest stable version of Rasa NLU:
$ pip install rasa_nlu
Latest (Most recent github)
If you want to use the bleeding edge version you can get it from github:
$ git clone https://github.com/RasaHQ/rasa_nlu.git
$ cd rasa_nlu
$ pip install -r requirements.txt
$ pip install -e .
Rasa NLU has different components for recognizing intents and entities, most of these will have some additional dependencies.
When you train your model, Rasa NLU will check if all required dependencies are installed and tell you if any are missing.
For more installation information
Go to https://rasa.com/docs/nlu/installation/
requirement
you just need to download telegram on its official website:https://telegram.org/apps and register and log in.
After that, search Bot_Father to achieve your own bot!
Setting up pyTelegramBotAPI
From PyPI with pip (latest stable release):
$ pip install pyTelegramBotAPI
From development repository (dev version):
Installation from source (requires git):
$ git clone https://github.com/eternnoir/pyTelegramBotAPI.git
$ cd pyTelegramBotAPI
$ python setup.py install
For more information
Go to https://github.com/eternnoir/pyTelegramBotAPI
Go to https://rapidapi.com/community/api/open-weather-map?endpoint=53aa6041e4b00287471a2b62
and https://rapidapi.com/community/api/open-weather-map?endpoint=53aa6043e4b00287471a2b66
for more details
- Download all files in a same folder.
- config_spacy.yml is the configuration file for rasa_NLU. demo-rasa.json is the file for rasa trainning.
- Open
weather_bot.py
file in any IDE, the IDE I used to run is Pycharm. - Change the statement below to chat with your own robot, you only need a token for telegram bot
TOKEN = YOUR_TOKEN bot = telebot.TeleBot(TOKEN)
- Run it, and just send message to your telegram bot. Then it will return information about weather or just chatting with you happliy.
- Start to chat!
Email: [email protected]
Website: https://github.com/qiujw23/Chatbot
- 2019.9.11 uploade file ,README.md
- 2019.9.14 upload report,