aimerou / rasa-weather-chatbot

A chatbot with a nice UI to inform a user about the weather in a specific location

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather bot

This chatbot is conversational agent that informs user about the weather of a specific location throughout the world.

image

Table Of Contents

Install dependencies

Run:

pip install -r requirements.txt

Run the bot

Move to the chatbot folder cd chatbot.

To train a model, use:

rasa train

Then, to run, first set up your action server in one terminal window:

rasa run actions

In another window, you can enable the api by running:

 rasa run -m models --enable-api --cors "*" --debug 

Note that --debug mode will produce a lot of output meant to help you understand how the bot is working under the hood. To simply talk to the bot, you can remove this flag.

Run the django server

Move to the django folder cd django_ui.

To run the django server:

python manage.py runserver

Then, you can see your app at the url http://127.0.0.1:8000/.

Overview of the files

data/stories.md - contains stories

data/nlu.md - contains NLU training data

actions/actions.py - contains custom action/api calls code

domain.yml - the domain file, including bot response templates

config.yml - training configurations for the NLU pipeline and policy ensemble

Things you can ask the bot

The bot currently has one skill. You can ask it to tell you the weather in a specific location.

About

A chatbot with a nice UI to inform a user about the weather in a specific location


Languages

Language:Python 90.4%Language:HTML 9.6%