1.0.0 • Published 6 years ago

wingbot-geneea v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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

new GeneeaModel(options, log)

ParamTypeDescription
optionsObject
options.authorizationstringthe authorization header
options.modelstringmodel name (part of the url)
options.cacheSizenumber
options.serviceUrlstring
logObjectlogging function

geneeaModel.resolve(text) ⇒ Promise.<Array.<Intent>>

Kind: instance method of GeneeaModel

ParamTypeDescription
textstringthe user input

Entity : Object

Kind: global typedef

ParamType
namestring
typestring

Intent : Object

Kind: global typedef

ParamType
intentstring
scorenumber
entitiesArray.<Entity>