node package manager

botframework-watson-recognizer

botframework-watson-recognizer

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

NPM Version

Install

npm i -S botframework-watson-recognizer

Usage

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

let recognizer = new WatsonRecognizer('<user>', '<password>', '<workspace-id>')
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