Thanks for you suggestion, this works. I just have another problem. I have a slot named agree_invite, when user agree, it will ok and go next slot, but when user deny, the robot should try to persuade twice and wait the user to agree, it the user deny for three times, the form will finish. So I define a custom extract method but I find it can not dispatch utter message, so how to solve this?
The extract function is like this:
agree_invite is the slot, and when we catch agree intent, we will set it to true and go to next slot, when we catch deny intent, send two utter message to persuade users, when user deny three times, we set agree_invite to false and finish the form.
I use rasa 2.8.15, because rasa 3.0 can not connect to socket io.
Extra suggestion: Instead of using a dictionary deny_cnt_map, why not just set a slot?
I implemented something very similar to count how many times the user tried to enter his password, but found that it’s easier, cleaner, more independent, and maybe faster to use slots.