xtreamsrl/clockify-nlp-bot

Cleanup conversation state on unexpected error

Closed this issue · 1 comments

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 #17 (comment)

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.