Skip to content

This is an nodejs application, which starts a chatbot and can be modified by changing the JSON file.

License

Notifications You must be signed in to change notification settings

manankarani/whatsapp-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsAppChatbot

This is a nodejs application, which starts a chatbot and can be modified by changing the JSON file. This application uses 🕷Venom Bot🕸

One can simply edit the messages.json to change the structure of the Chatbot

Messages Json Example

Edit messages.json with the format below.

message key is compulsory for every level of nesting.

  • Hi (Necessary)
  • Menu (Necessary)
    • 1 - Can have a nested object with message key (Not Necessary)
    • 2 - Can have a nested object with message key (Not Necessary)
{
    "hi": "Welcome to Manan's Chatbot",      
    "menu": {                                
        "message": "1) msg1\n2)msg2\n3)msg3",
        "1": {
            "message": "!sendVcard,0000000000,NAME"
        },
        "2": {
            "message": "msg_main2",
            "1":{"message":"msg1"},
            "2":{"message":"msg2"}           
        },
        "3": {
            "entryData": true,               
            "message": "Enter Your Details",
            "name": {
                "message": "Enter Name",
                "saveData":true              
            },
            "email": {
                "message": "Enter Email",
                "saveData":true              
            },
            "message-saved": {               
                "message": "Thanks",
                "saveData":true              
            }
        }
    }
}

Usage

Install the dependencies

npm install

Use the start script

npm start

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

This is an nodejs application, which starts a chatbot and can be modified by changing the JSON file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published