javascript - Node.js Wit.ai integration -
i learning wit.ai , going through tutorial (https://wit.ai/docs/quickstart). else went till step 6, asked me clone node.js client , install npm. usually, create separate node.js project npm intall whatever-the-module-is use it.
i confused on how use node-wit. want create own node.js server called bot implement business logic. here few questions need with:
can create basic node.js project, install node-wit , use it?
if deploy node project on heroku, provide endpoint wit.ai call? tutorial not mention it.
can perform business logic without using promise or code have given in node-wit tutorial?
overall confused on how node-wit code working.
thanks.
1) yes can. run npm install --save node-wit
, check out github more infos https://github.com/wit-ai/node-wit
2) endpoints url set within module. check lib/config.js file. have specify api key communicate wit.
3) sdk uses promises, have use them too. 2 solutions here : i) master concept, guess that's it's worth since promises handfull ii) code own api calls, not difficult (check http api doc)
Comments
Post a Comment