@botsfactory/botframework-watson-recognizer

An Intent Recognizer to use IBM's Watson Conversation service with Microsoft's Bot Framework

Showing:

Popularity

Downloads/wk

7

GitHub Stars

1

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

6

Size (min+gzip)

217.7KB

License

ISC

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

@botsfactory/botframework-watson-recognizer

An Intent Recognizer to use IBM's Watson Conversation service with Microsoft's Bot Framework

NPM Version

Install

npm i -S @botsfactory/botframework-watson-recognizer

Usage

Usage is the same as with LuisRecognizer, only Watson's service credential and Workspace Id are needed.

Now Watson recognizer has multi language support.

import { WatsonRecognizer, IWatsonModelMap, IWatsonModel } from '@botsfactory/botframework-watson-recognizer';

//Map all your language models here, you can set only one, it's ok
let watsonModelMap: IWatsonModelMap = {
    en: { username: '<user_en>', password: '<password_en>', workspaceId: '<workspace-id_en>' },
    es: { username: '<user_es>', password: '<password_es>', workspaceId: '<workspace-id_es>' }
};

let recognizer = new WatsonRecognizer(watsonModelMap, process.env.INTENT_THRESHOLD);

let intents = new builder.IntentDialog({ recognizers: [recognizer] });

bot.dialog(`/`, intents)

intents.matches('greeting', '/greeting');
    
bot.dialog(`/greeting`,
    [
        (session: Session) => {
            session.send(`Hi!`)
            session.endDialog();
        }
    ]);

NOTE

This Recognizer only supports Intents and Entities extraction, Watson's Dialogs are not implemented yet.

Todo

  • Unit tests
  • MAYBE support Watson's Dialog

Check us out!

https://www.thebotmakers.com

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100