Skip to content

qiujw23/Chatbot

Repository files navigation

Weather query Chatbot

Demo-GIF

Demo

Demo-Video

The video is a little big, so you may have to download and watch it.
Demo

Configuration Instructions

Installation Instructions

There are a few online packages needed to be installed for this project

Rasa-NLU

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/

Telgram bot

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!

pyTelegramBotAPI

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

The api I used

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

operating instructions

  1. Download all files in a same folder.
  2. config_spacy.yml is the configuration file for rasa_NLU. demo-rasa.json is the file for rasa trainning.
  3. Open weather_bot.py file in any IDE, the IDE I used to run is Pycharm.
  4. 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)
    
  5. Run it, and just send message to your telegram bot. Then it will return information about weather or just chatting with you happliy.
  6. Start to chat!

contact information for the distributor or programmer

Email: qiujw@shanghaitech.edu.cn
Website: https://github.com/qiujw23/Chatbot

a changelog

  • 2019.9.11 uploade file ,README.md
  • 2019.9.14 upload report,

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages