Node.js SDK for Api.ai with Promise
This package helps you use Node.js SDK for Api.ai with Promise. You can write more elegant code if you use this with async/await.
Installation
- Install Node.js
- Install apiai-promise with
npm
:
npm install apiai-promise
Usage
- Create
main.js
file with the following code:
var apiai = ; var app = ; app
Elegant code with ES2017 async/await
const response = await app
- Run following command.
node main.js