Skip to content

wingbotai/wingbot-geneea

Repository files navigation

Geneea Intent API integration for Wingbot

Use the Geneea NLP in wingbot chatbot

Installing

npm i -S wingbot-geneea

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>

About

Wingbot plugin for Geneea NLP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published