Geneea Intent API integration for Wingbot
Use the Geneea NLP in wingbot chatbot
Usage
const GeneeaModel = ;const ai = ; const geneeaModel = model: 'name-of-your-model' authorization: 'Basic'; ai;
API
Classes
- GeneeaModel
AI Plugin Model
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 |
Promise.<Array.<Intent>>
geneeaModel.resolve(text) ⇒ Kind: instance method of GeneeaModel
Param | Type | Description |
---|---|---|
text | string |
the user input |
Object
Entity : Kind: global typedef
Param | Type |
---|---|
name | string |
type | string |
Object
Intent : Kind: global typedef
Param | Type |
---|---|
intent | string |
score | number |
[entities] | Array.<Entity> |