apiai

2019-05-15

Node.js SDK for api.ai

Node.js SDK for Api.ai

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

Installation

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

Usage

  • Create main.jsfile with the following code: ```javascript 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.
```shell
node main.js
  • Your can find more examples in samplesdirectory.

HomePage

https://github.com/api-ai/api-ai-node-js#readme

Repository

https+https://github.com/api-ai/apiai-nodejs-client


上一篇:typing
下一篇:nodes7
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章
暂无相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部