Coder Social home page Coder Social logo

rasa-wellness-bot's Introduction

Wellness Check Rasa ChatBot

Python Rasa

This is rasa based chatbot. User is asked several health related questions and at the end the logs are shared back to the user. This project demonstrates how easy it is to create NLP based chatbots with rasa opensource sdk. It mainly consists of a Form and Custom Actions. A beginner friendly scope was kept so that any one looking for getting started, could refer this.

Demo

Setup and Installation

It is recommended to use Python 3.6 or Python 3.7 with rasa framework. Below are the steps to run this project.

  1. Clone master branch of this repository & open root directory in terminal.
  2. Create virtual env with python: python3.7 -m venv ./venv and activate it by source ./venv/bin/activate
  3. Install rasa pip install rasa, with this you can now run rasa commands described below.

Generating Trained Model

Make sure python virtual env is active in terminal. Change directory to backend & run rasa train like below. After training is done, you will find models directory at backend/models this is the result of rasa NLU training & rasa Core training.

cd backend
rasa train

Running Actions Server

After training is done, you need to run server to serve custom actions related computation. Open another terminal instance, activate virtual env and open backend directory.

rasa run actions

Running Rasa Chatbot in Shell

Below command loads the trained model, opens communication to custom actions running server & provides REPL to interact with chatbot.

rasa shell

Once you have developed your bot and you are ready to integrate the bot with the UI, you can start the Rasa server using the below command

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

If you have custom actions, you can start the action server using the below command

rasa run actions --cors "*" --debug

Once you have you Rasa server up and running, you can test the bot by running the index.html file in the browser.

Chatbot Screenshots

rasa train

01 rasa-train-success

rasa run actions

02 rasa-run-actions-success

rasa shell - happy flow 1 - affirmed for exercise

03 rasa-shell-happy-flow

rasa shell - happy flow 2 - denied for exercise

04 rasa-shell-happy-flow-no-exercise

rasa shell - sad flow 1 - going out of scope & coming back

05 rasa-shell-sad-path-1

rasa shell - sad flow 2 - going out of scope & denied to proceed

06 rasa-shell-sad-path-2

rasa-wellness-bot's People

Contributors

kmanadkat avatar xi1570-krupeshanadkat avatar mikful avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.