wingbot-geneea

1.0.0 • Public • Published

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

GeneeaModel

AI Plugin Model

Typedefs

Entity : Object
Intent : Object

GeneeaModel

AI Plugin Model

Kind: global class

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>

Package Sidebar

Install

npm i wingbot-geneea

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

13.8 kB

Total Files

9

Last publish

Collaborators

  • wingbot.ai