Skip to content

Lazy.ai chatbot as a service examples without no fee

Notifications You must be signed in to change notification settings

cagataycali/lazy-examples

Repository files navigation

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!

Create telegram bot

Telegram Bot Deploy: Deploy

Express HTTP Endpoint Deploy: Deploy


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.

About

Lazy.ai chatbot as a service examples without no fee

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published