api-ai-node-js
Fork of Original Node.js SDK for Api.ai, for making api.ai requests
Plugin makes it easy to integrate your Node.js application with api.ai natural language processing service.
Installation
- Make sure that Node.js installed.
- Install Node.js library with
npm
:
npm install apiai-nodejs-co
Usage
- Create
main.js
file. Insert into following code.
var apiai = ; var options = hostname: "api.api.ai" port: 443 path: "/v1/query" version: "20150910"var app = ; var reqOptions = lang: "en" timezone: "<eg Africa/Lagos>" sessionId: "<sessionId here>"var request = app; request; request; request
- Run following command.
node main.js