title: Basic Concept of Chatbot using Wit.ai
body: <p>I am trying to create a chatbot application where user can create their own bot like <a href="https://www.botengine.ai/" rel="nofollow noreferrer">Botengine</a>. After going through  google I saw I need some NLP api to process user's query. As per wit.ai <a href="https://wit.ai/docs/quickstart" rel="nofollow noreferrer">basic example</a> I can set and get data. Now I am confused, How I am going to create a botengine?</p>
  
  <p>So as far I understand the flow, Here is an example for pizza delivery:-</p>
  
  <ol>
  <li><p>User will enter a welcome message i.e - Hi, Hello ...</p></li>
  <li><p>Welcome reply will be saved by bot owner in my database.</p></li>
  <li>User will enter some query, then I will hit wit.ai API to process that query. Example :- Users query is "What kind of pizza's available in your store" and wit.ai will respond with the details of intent "pizza_type"</li>
  <li>Then I will search for the intent return by wit in my database.</li>
  </ol>
  
  <p>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 nodejs. I have also found some example in <a href="https://github.com/wit-ai/node-wit" rel="nofollow noreferrer">node-wit</a>, but can't find how I will implement this.</p>
  
  <p>Thanks</p>