hello, i have a problem with my code:
scenario: when a user ask a question i would like to ask him based on the confidence level of his intents and entities to confirm or reformulate his question.
Basically i want to interact with the user 2 times (either to confirm or reformulate his demand).
To do so i want to implement a counter.
But i dont know how to count how many times the same question was asked… do you have any suggestions.
scenario case: “hello i’m looking for a restaurant nearby?” bot wd first respond: “hello i’m sorry can you be more precise about your intention?”
usr: “i’m want to eat tonight nearby” bot: “sorry i’m not sure about what you’re asking, be more precise please?”
usr: “i’m looking for a nice place to eat” bot:“ok, since i can not answer you let me redirect you to someone more expert about restaurants”
see here: my bot asked user to reformulate 2 times, since he cd’t give the right answer he decided to lead the user to an expert…
i want to make a function counting the number of times bot asked to reformulate.
do you have any idea?