Understanding how Rasa policies work
It is important to understand how Rasa policies work. By being familiar with their working principles, developers can debug the dialogue management function.
Using historical context is very important for a policy to predict the next action. Suppose our bot can book train tickets and plane tickets. There is a conversation that has been going on for multiple turns. In the last turn, when the bot asked the user where the departure point was, the user replied: "New York." If there is no historical information, our bot will not know whether it is currently booking a train ticket or a plane ticket. Therefore, the next action cannot be determined. Policies in Rasa normally use multiple history states (five by default).
It is crucial for Rasa's dialogue management module to turn those history states into some data structures that a policy can use. This conversion is the topic we will discuss in the next section.