How to get bot historical action information during a dialogue

I’m developing a bot to automatically help customer reset passwords. When bot tries to collect user information, there is a chance that the NLU module parse user’s answer to an incorrect intent and entity. And the bot keeps asking for that specific slot information. So I want bot transfer this case to a human representative after the bot asks the same question for more than three times. So, is there any way to access the historical actions made by bot? Thanks a lot!

Yes, you can access the conversations state through the tracker. The tracker has a list of all events (user messages, actions executed, slots) that will provide you with that information. How to access this information depends a bit on the version of rasa core you are using. For the latest version, you can find more information about the tracker here: Actions