I am learning wit.ai and going through the tutorial (https://wit.ai/docs/quickstart). Everything else went well till step 6, where it asked me to clone the node.js client and install npm. Usually, I create a separate node.js project then npm intall whatever-the-module-is then use it.
I am confused on how to use node-wit. I want to create my own node.js server which will be called by my bot to implement the business logic. Here are few questions I need help with:
Can I just create a basic node.js project, install node-wit and use it?
If I deploy my node project on heroku, where do I provide the endpoint for wit.ai to call? The tutorial does not mention anything about it.
Can I perform the business logic without using Promise or any code they have given in the node-wit tutorial?
Overall I am just confused on how the node-wit code is working.
Thanks.