nbp-adapter-wit

0.0.3 • Public • Published

Wit.ai adapter

This is a Wit.ai adapter for Node.js Bot Platform. It can get intents and entities from your Wit.ai application.

import witAdapterFactory from 'nbp-adapter-wit';
const wit = witAdapterFactory({
    token: 'your-wit-app-token',
    version: 'api-version',
    logger // instance of your logging tool
});

const result = yield wit.send('Your sentence here');

Please, look at usage example.

Tunneling

Check tunneling.js. To bind context of all client's function we need to perform tunneling on each request, so inside skills you can do wit.send('Some text) without specifying application tokens.

Look at router-builder.js as an example.

Readme

Keywords

none

Package Sidebar

Install

npm i nbp-adapter-wit

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • maxmert