# lazy-examples

> Lazy.ai chatbot as a service examples without no fee..

Latest version **1.0.1** (published 2017-04-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install lazy-examples
pnpm add lazy-examples
yarn add lazy-examples
bun add lazy-examples
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-04-17 |
| First published | 2017-04-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Çağatay Çalı |
| Maintainers | cagataycali |
| Keywords | lazy, lazyai, chatbots, ai |

## Links

- npm: https://www.npmjs.com/package/lazy-examples
- Repository: https://github.com/cagataycali/lazy-examples
- Homepage: https://github.com/cagataycali/lazy-examples#readme
- Issues: https://github.com/cagataycali/lazy-examples/issues
- npm.io page: https://npm.io/package/lazy-examples

## Dependencies (1)

- [lazy.ai](https://npm.io/package/lazy.ai.md) ^2.2.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-04-17

## README

# Lazy,

![](https://cagatay.js.org/lazy.png)

## AI chat bot service.

<p>Lazy allows you create awesome chat bot with no longer know ai!</p>
<p>Just teach lazy 4 your phase case!</p>
<p>Let him answer you instead!</p>

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](https://core.telegram.org/bots#6-botfather)

[Telegram Bot Deploy](https://github.com/cagataycali/lazy-telegram):
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/cagataycali/lazy-telegram)

[Express HTTP Endpoint Deploy](https://github.com/cagataycali/lazy-telegram):
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/cagataycali/lazy-express)


---

### Node Usage

```bash
# Or npm install --save lazy.ai
$> yarn add lazy.ai
```

```javascript

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.       |

---
_Source: https://npm.io/package/lazy-examples · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
