Skip to content

Chatbot using libraries likes whatsapp-web-js, baileys ... etc

Notifications You must be signed in to change notification settings

Elimeleth/basic-chatbot-basedOnIntent

Repository files navigation

INSTALLATION AND RUN

  • MOCK INTENTS EXAMPLE
{
    "intents": [
        {
            "intent": "Hello World",
            "patterns": [
                "Hello",
                "world",
                "hi",
                "hey there"
            ],
            "responses":[
                "hello friend",
                "hey there",
                "hi!"
            ],
            "putAttention": false
        }
    ]
}

📝 The chatbot understands the flow of messages from intents.json file, it's required

    # copy the repository from master branch
    # install all dependencies
    npm i
    //  Create Baileys provider
    // A configuration Object is optional by default configuration Object is created
    const client = new Provider('Baileys').create(...configurations)

    client.on('message', function (message) {
        // write your code
        // ...
    })

📝 Availables providers

  • Baileys
  • whatsapp-web.js
  • wppconnect

About

Chatbot using libraries likes whatsapp-web-js, baileys ... etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published