xtreamsrl / clockify-nlp-bot

An NLP driven bot for interacting with Clockify timesheet via different channels
MIT License
10 stars 3 forks source link

Cleanup conversation state on unexpected error #109

Closed khaelys closed 3 years ago

khaelys commented 3 years ago

For example, when we change models and a user has a conversation state with the old model, the entire bot will break. We should check in the error handler if it is such a case and cleanup the conversation state.

Originally posted by @khaelys in https://github.com/xtreamsrl/clockify-nlp-bot/issues/17#issuecomment-947457192

khaelys commented 3 years ago

Basically, if a user has a dialog already started (it has a nonempty conversation state) and we change the underlying model, the user bot will just break. Models mismatch, the user can't cancel or proceed with other dialogs or other features that use the conversation state.