powered by Jive Software

Maintaining state

Say I am writing a chat bot which dessiminates movie information. A hypothetical conversation:

User : Movie

Bot : Which Language?

User : English

Bot : Which part of town?

What is the best way to maintain state in this sort of situation? I can think of several hacks to pull this off but is there a proper and accepted way of doing this?