Giter VIP home page Giter VIP logo

chat-reply-suggestions's Introduction

chat-reply-suggestions

Auto reply suggestions to chat messages/emails built using rasa_nlu framework.

How to install and train chatbot

  1. Make sure you have git, python, virtualenv and npm installed
  2. Clone the repository git clone https://github.com/varunon9/chat-reply-suggestions.git
  3. Go to project directory cd chat-reply-suggestions/
  4. Create a virtual environment virtualenv venv
  5. Activate virtual environment source venv/bin/activate
  6. Install Rasa NLU as well as spacy pip install rasa_nlu[spacy] --default-timeout=100
  7. Install language model for the english language python -m spacy download en_core_web_md
  8. Link to model data python -m spacy link en_core_web_md en
  9. Install some additional dependencies pip install -r requirements.txt
  10. Place your nlu_data.json file inside data directory (a sample file is provided).
  11. Train the intent models using below command
  12. python -m rasa_nlu.train --config config_spacy.yml --data data/nlu_data.json --path projects
  13. Install node dependencies npm install
  14. Start nlu server in current terminal python -m rasa_nlu.server --path projects
  15. Open another terminal in same project directory (no need to activate virtual environment)
  16. Start the app node index.js

How to improve efficiency

  • The above app uses sample data (collected by me) for demo. Bot can be made more efficient by training with more real world data.
  • Currently suggestions are bunch of hardcoded arrays based on intent. Entity recognition can be done and suggestions can be generated on the fly.

Screenshots

Chat suggestions

To see working demo on youtube watch this video:

For query/issues create Github issue or contact: [email protected]

chat-reply-suggestions's People

Contributors

varunkumar2 avatar varunon9 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.