Skip to content

infernalslam/api-ai-node-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js SDK for Api.ai

This plugin allows integrating agents from the Api.ai natural language processing service with your Node.js application.

Installation

  • Install Node.js
  • Install Api.ai SDK with npm:
npm install apiai

Usage

  • Create main.js file with the following code:
var apiai = require('apiai');

var app = apiai("<your client access token>", "<your client subscription key>");

var request = app.textRequest('<Your text query>');

request.on('response', function(response) {
    console.log(response);
});

request.on('error', function(error) {
    console.log(error);
});

request.end()
  • Run following command.
node main.js
  • Your can find more examples in examples directory.

About

Node.js SDK for Api.ai

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%