How to use the node-wit.interactive function in node-wit

To help you get started, we’ve selected a few node-wit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hoodsy / messenger-bot-boilerplate / src / api / index.js View on Github external
//
// Initialize Wit.ai
// ---
// API Reference: https://wit.ai/docs
//
export const wit = new Wit({
  accessToken: WIT_TOKEN,
  actions: actions,
  logger: new log.Logger(log.INFO)
})

// BOT TESTING MODE
if (TESTING_MODE) {
	console.log('Bot testing mode!')
  dbConnect()
	interactive(wit)
}
github kehitysto / coaching-chatbot / scripts / wit-client.js View on Github external
import { interactive } from 'node-wit';

import WitAI from '../src/wit-ai/wit-ai.service';

require('../src/lib/envVars').config();


const wit = new WitAI(function(session, message) {
    console.log(message);
    return Promise.resolve();
});
interactive(wit.wit);
github eriklindernoren / HomeAssistant / homeAssistant / routes / index.js View on Github external
} else {
        context.missingLocation = true;
        delete context.forecast;
      }
      return resolve(context);
    });
  },
};


const client = new Wit({
  accessToken: wit_token,
  actions: actions
});

interactive(client);

node-wit

Wit.ai Node.js SDK

Unrecognized
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis