Wingbot plugin for Geneea NLP
npm install wingbot-geneeaUse the Geneea NLP in wingbot chatbot
``javascript
const { GeneeaModel } = require('wingbot-geneea');
const { ai } = require('wingbot');
const geneeaModel = new GeneeaModel({
model: 'name-of-your-model',
authorization: 'Basic'
});
ai.register(geneeaModel);
``
-----------------
AI Plugin Model
Kind: global class
* GeneeaModel
* [new GeneeaModel(options, [log])](#new_GeneeaModel_new)
* .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 |
GeneeaModel| Param | Type | Description |
| --- | --- | --- |
| text | string | the user input |
Object| Param | Type |
| --- | --- |
| name | string |
| type | string |
Object| Param | Type |
| --- | --- |
| intent | string |
| score | number |
| [entities] | Array.<Entity> |