Licence
ISC
Version
1.0.1
Deps
1
Vulns
0
Weekly
0
Lazy,

AI chat bot service.
Lazy allows you create awesome chat bot with no longer know ai!
Just teach lazy 4 your phase case!
Let him answer you instead!
You can try in telegram already: Lets chat with @LazyAIBot, my Turkish friends already teached somethings like as greetings. If you want host on your own, go ahead do this!
Node Usage
# Or npm install --save lazy.ai
__CODE_BLOCK_0__gt; yarn add lazy.ai
const Lazy = require('lazy.ai');
async function start() {
const lazy = new Lazy();
// Learn ..
await lazy.learn({phrase: 'hello', category: 'greetings'})
await lazy.learn({phrase: 'hi', category: 'greetings'})
await lazy.learn({phrase: 'Hello there!', category: 'greetings'})
// Maybe add action ..
await lazy.addAction({category: 'greetings', actions: 'http://localhost:3000/'})
// Or add usual response ..
await lazy.addResponse({category: 'greetings', response: 'Hi there!'})
// Query.
await lazy.query({phrase: "hello dude!"})
// Helpers..
await lazy.getResponses({category: 'greetings'})
await lazy.getCategories()
}
// Dont forget start your function :)
start();
| File | Contains |
|---|---|
| learn.js | Basic learning process. |
| save.js | Save trained data. |
| loadTrainedData.js | Load trained data. |
| initial.js | Shows initial options. |
| helpers.js | Shows helper actions. |