# flow-recognizer

> Flow Recognizer

Latest version **1.0.2** (published 2017-03-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install flow-recognizer
pnpm add flow-recognizer
yarn add flow-recognizer
bun add flow-recognizer
```

## 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.2 |
| Published | 2017-03-22 |
| First published | 2017-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jesus Seijas |
| Maintainers | jseijas |

## Links

- npm: https://www.npmjs.com/package/flow-recognizer
- Repository: https://github.com/jseijas/flow-recognizer
- Homepage: https://github.com/jseijas/flow-recognizer#readme
- Issues: https://github.com/jseijas/flow-recognizer/issues
- npm.io page: https://npm.io/package/flow-recognizer

## Dependencies (4)

- [uuid](https://npm.io/package/uuid.md) ^3.0.1
- [apiai](https://npm.io/package/apiai.md) ^4.0.0
- [request](https://npm.io/package/request.md) ^2.80.0
- [node-wit](https://npm.io/package/node-wit.md) ^4.2.0

## Recent versions

- 1.0.2 (latest) — 2017-03-22
- 1.0.1 — 2017-03-05

## README

# Flow Recognizer

Intent recognizers for the Flow Bot Framework.
Provides NLP integration for the Microsoft Bot Builder SDK for different providers:
* LUIS.ai
* API.ai
* WIT.ai

## Installation

```bash
npm install --save flow-recognizer
```

## Usage

```javascript
import { FlowRecognizerWit } from 'flow-recognizer';
import { FlowRecognizerApiai } from 'flow-recognizer';
import { FlowRecognizerLuis } from 'flow-recognizer';
import { IntentDialog } from 'botbuilder';

let witRecognizer = new FlowRecognizerWit({ models: 'Your access token'});
let apiaiRecognizer = new FlowRecognizerApiai({ models: 'Your access token'});
let luisRecognizer = new FlowRecognizerApiai({ models: 'Your luis url'});
let intents = new IntentDialog({ recognizers: [witRecognizer, apiaiRecognizer, luisRecognizer ]});
intents.matches('intent.name', (session, args) => {...});

bot.dialog('/', intents);

```

## Note about Wit.ai

Wit.ai provides entity recognition, but not intent one. Make sure that for each utterance you add an entity called 'intent' with the value of the intent name for this utterance.

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