GithubHelp home page GithubHelp logo

chatbot's Introduction

Chatbot application - Uses database, that contains some pre-defined set of questions and answers. - Uses fuzzy logic for unknown questions. - In case, if the query doesn't find any suitable solution, made by the client. A contact mail is returned.

Requirements

  1. Nodejs
  2. Mongodb

Configuration

  1. Start the mongoDB service.
  2. Create a "Chatbot" database.
  3. Import the json file in data folder to "tags" collection.

Installation

  1. Migrate to project directory in terminal/ command prompt

    npm install

  2. In project directory, run the following command

    node ./bin/www

URLs

  1. http://localhost:3000/ - Chat bot interactive UI
  2. http://localhost:3000/api/chat - api call to query question Request method: GET Request format: { q: } Response format: { id: , q: , a: , tags: [<list_of_relative_words>] }
  3. http://localhost:3000/spi/messages Request method: GET Request format: { id: <client_id>, messages: [<array_of_messages>] } Response format{ id: < 0 in case of existing client else new client id> }

BACKEND

Path: <PROJECT_PATH>/lib Description: - All backend configuration are in lib diretory. - Config file contains all the required uri path and constants. - Chat file stores all the logic required to process incoming request. - routes file has all the defination to route to specific file that contains the request processing methods.

FRONTEND

A simple UI developed with jade, HTML, CSS and javascript.

chatbot's People

Contributors

naveen0903 avatar

Stargazers

Rohith P avatar

Watchers

 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.