- 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
// ...
})
- Baileys
- whatsapp-web.js
- wppconnect