Use the Geneea NLP in wingbot chatbot
npm i -S wingbot-geneea
const { GeneeaModel } = require('wingbot-geneea');
const { ai } = require('wingbot');
const geneeaModel = new GeneeaModel({
model: 'name-of-your-model',
authorization: 'Basic'
});
ai.register(geneeaModel);
- GeneeaModel
AI Plugin Model
AI Plugin Model
Kind: global class
- GeneeaModel
- new GeneeaModel(options, [log])
- .resolve(text) ⇒
Promise.<Array.<Intent>>
Param | Type | Description |
---|---|---|
options | Object |
|
options.authorization | string |
the authorization header |
options.model | string |
model name (part of the url) |
[options.cacheSize] | number |
|
[options.serviceUrl] | string |
|
[log] | Object |
logging function |
Kind: instance method of GeneeaModel
Param | Type | Description |
---|---|---|
text | string |
the user input |
Kind: global typedef
Param | Type |
---|---|
name | string |
type | string |
Kind: global typedef
Param | Type |
---|---|
intent | string |
score | number |
[entities] | Array.<Entity> |