I am trying to create a chatbot application where the user can create its own bot, like Botengine. After going through google, I saw I need some NLP API to process the user's query. As per wit.ai basic example, I can set and get data. How I am going to create a bot engine?
So, as far I understand the flow, here is an example for pizza delivery
The user will enter a welcome message, i.e - Hi or Hello
The welcome reply will be saved by bot owner in my database
The user will enter some query, then I will hit wit.ai API to process that query. Example: The user's query is "What kind of pizza's available in your store" and wit.ai will respond with the details of intent "pizza_type"
Then I will search for the intent returned by wit in my database.
So, is that the right flow to create a chatbot? Am I in the right direction? Could anyone give me some link or some example so I can go through it? I want to create this application using Node.js. I have also found some example in node-wit, but can't find how I will implement this.