GithubHelp home page GithubHelp logo

faihdp / chatbot_nodejs-mongo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 120 KB

Hello everyone ๐Ÿ‘‹! This application is a whatsapp chatbot integrated with mongodb, it uses mongodb to store menus and options, besides it uses a data structure, a n-ary tree for menu navigation. Also this app has an api for mongodb data management.

JavaScript 100.00%
expressjs mongodb mongoose qrco qrcode-terminal whatsapp-web-js

chatbot_nodejs-mongo's Introduction

Chatbot whatsapp

Hello everyone ๐Ÿ‘‹! This application is a whatsapp chatbot integrated with mongodb, it uses mongodb to store menus and options, besides it uses a data structure, a n-ary tree for menu navigation. Also this app has an api for mongodb data management.

Objects

Menus object

Parameter Type Description
root Menu Required. Menu tree root

Menu object

Parameter Type Description
keys [string, ...] Required. Keys that can be used to access this menu
value string Required. Text to be displayed
options [Menu, ...] Required. Other menus
menuParent Menu Required. Parent menu of this menu

API Reference

Get one menu

   GET /chatbot/menu/get/{id}
Parameter Type Description
id string Required. Menu ID

Post add menu

This api link it use only in the first menu (root) is added, therefore, some parameters may be null.

   POST /chatbot/menu/add
Parameter Type Description
keys [string, ...] Required. This parameter can be null
value string Required. Text to be displayed
menuParent Menu Required. This parameter can be null

Post add menu option

   POST /chatbot/menu/addOption/${id}
Parameter Type Description
keys [string, ...] Required. Keys that can be used to access this menu
value string Required. Text to be displayed

Delete menu option

   DELETE /chatbot/menu/deleteOption/${id}
Parameter Type Description
id string Required. Menu ID

chatbot_nodejs-mongo's People

Contributors

faihdp avatar

Stargazers

 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.