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:

  1. can create basic node.js project, install node-wit , use it?

  2. if deploy node project on heroku, provide endpoint wit.ai call? tutorial not mention it.

  3. 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

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -