lazy-examples
v1.0.1
Published
Lazy.ai chatbot as a service examples without no fee..
Downloads
5
Readme
Lazy,
AI chat bot service.
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
$> 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. |