I would want to design a bot that can count how many times a user click on the button. The idea is that the bot will ask the user a couple of questions. The answer will be just a correct
or incorrect
My thought is to assign two buttons that using slots. However, this will have a problem that how can I write a count variable to calculate the number of times click on the button?
utter_know_test1:
- text: "blablabla is this correct? "
buttons:
- title: "correct"
payload: '/choose{"answer": "correct"}'
- title: "incorrect"
payload: '/choose{"answer": "incorrect"}'
utter_know_test2:
- text: "blablablablablabla is this correct? "
buttons:
- title: "correct"
payload: '/choose{"answer": "correct"}'
- title: "incorrect"
payload: '/choose{"answer": "incorrect"}'