I am creating an FAQ bot using bot framework V4, Node.js. I have to implement a simple counter - when the bot did not respond with the right answer 3 times consecutively, a message should be displayed.
I tried a class level variable and an instance level variable to keep track of the number of errors. Since only a single instance of the bot class is created all these variables are singleton and can't work for each conversation.
Please share if you have any reference implementation for such issues, with out using conversation state.