Giter Club home page Giter Club logo

ecommercebot's Introduction

Interactive Bot for user engagement

Introduction

Features of the bot:

  • Assists the customer in making a purchase
  • Offers product recommendations
  • Helps the customer in making a return, exchange or refund
  • Assists the customer with credit card related issues
  • Takes feedback from customer.

(This model was one of the top 26 models in Flipkart Grid 3.0 - Software development track)

๐Ÿ‘ทโ€ Installation

To install , please clone the repo and run:

cd rasa-demo
make install

This will install the bot and all of its requirements. Note that this bot should be used with python 3.6 or 3.7.

๐Ÿค– To run :

Use rasa train to train a model (this will take a significant amount of memory to train, if you want to train it faster, try the training command with --augmentation 0).

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

rasa run actions --actions actions.actions

In another window, run the bot:

docker run -p 8000:8000 rasa/duckling
rasa shell --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.

If you would like to run the bot on your website, follow the instructions here to place the chat widget on your website.

To test :

After doing a rasa train, run the command:

rasa test nlu -u test/test_data.json --model models
rasa test core --stories test/test_stories.md

๐Ÿ‘ฉโ€๐Ÿ’ป Overview of the files

data/core/ - contains stories

data/nlu - contains NLU training data

actions - contains custom action code

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

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

Development

To install requirements for development, run:

make install-dev

To run unit tests for custom actions:

make test-actions

To ensure proper database cleanup during testing, you will need to include a connection URL for your tracker store database in your .env file e.g.

TRACKER_DB_URL=postgresql:///tracker

This is not necessary for running the actions.

ecommercebot's People

Contributors

ananyakumardas avatar shreya1805-web avatar

Forkers

debdeep23

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.