1.0.0 • Published 6 years ago
wingbot-geneea v1.0.0
Geneea Intent API integration for Wingbot
Use the Geneea NLP in wingbot chatbot
Usage
const { GeneeaModel } = require('wingbot-geneea');
const { ai } = require('wingbot');
const geneeaModel = new GeneeaModel({
model: 'name-of-your-model',
authorization: 'Basic'
});
ai.register(geneeaModel);
API
Classes
Typedefs
GeneeaModel
AI Plugin Model
Kind: global class
- GeneeaModel
- new GeneeaModel(options, [log])
- .resolve(text) ⇒ Promise.<Array.<Intent>>
new GeneeaModel(options, log)
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 |
geneeaModel.resolve(text) ⇒ Promise.<Array.<Intent>>
Kind: instance method of GeneeaModel
Param | Type | Description |
---|---|---|
text | string | the user input |
Entity : Object
Kind: global typedef
Param | Type |
---|---|
name | string |
type | string |
Intent : Object
Kind: global typedef
Param | Type |
---|---|
intent | string |
score | number |
entities | Array.<Entity> |
1.0.0
6 years ago