1.0.1 • Published 7 years ago

convo-integrator v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Conversation Integrator

Low-level API to facilitate natural language interfaces.

Example usage

var Convo = require('convo-integrator');

var config = {
  actions: {
    say: (phrase) => {
      console.log(phrase);
    }
  },
  intents: {
    HelloIntent: {
      triggers: ['hi', 'hey', 'hello'],
      actions: [
        {say: 'hello! this worked'}
      ]
    }
  }
}

var convo = new Convo(config);
convo.prompt();