title: How to manage context/state in a chat bot?
body: <p>I am developing a chat bot using Python, celery, and the MS bot framework. I want to add small dialogs like the following:</p>
  <blockquote>
  <p>User: Hi</p>
  <p>User: Order me fries.</p>
  <p>Bot: ok. address?</p>
  <p>User: xyz, state, 82288</p>
  <p>Bot: Got it. I will order fries for you.</p>
  </blockquote>
  <p><strong>Here, how can I temporarily store <em>fries</em> to access it after the user gives me the address?</strong></p>
  <p>Also, I think it should be acceptable for my use case to forget what the order was if the user does not respond for 2-3 minutes. So, I can also have a timeout for the stored variable.</p>
  <p>I thought of using redis. I am thinking of storing something like the following in a redis db:</p>
  <pre><code>{
   'conversationId':['orderitem':'fries','address':'state, pincode']
  }
  </code></pre>
  <p>basically a key,value pair with key=conversationId and value='order,address'.</p>
  <p><strong>So, does this look a good option?</strong></p>