4.0.3 • Published 7 years ago
apiai v4.0.3
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>");
var request = app.textRequest('<Your text query>', {
sessionId: '<unique session id>'
});
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
samples
directory.
4.0.3
7 years ago
4.0.2
8 years ago
4.0.1
8 years ago
4.0.0
8 years ago
3.0.3
8 years ago
3.0.2
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.0.7
8 years ago
2.0.6
8 years ago
2.0.5
9 years ago
2.0.4
9 years ago
2.0.3
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago