Hello all. I’m currently in the process of migrating my existing rasa bots from 1.x to 2.x, so I’m only now getting some hands-on experience with rules.
There are a couple of concepts that I’m not quite following -
- In config.yml, is RulesPolicy comprehensive enough to replace FormPolicy entirely?
Why I ask is because a rule seems to map only an intent to a response (which is helpful in some use cases), but the way I was using forms in 1.x cannot be seen as being triggered from any one intent.
For example, I have my bot driving the conversation and I try to have the user answer with as little effort as possible. Let’s say, that the business logic here is to have the bot collect the user’s information (name, email address) as soon as the path indicates that the user wants to schedule an appointment. Now, this can be inferred in a couple of ways - the user explicitly states that she wants to schedule an appointment. This utterance then gets classified under the schedule_appointment intent and it’s straightforward to define a rule for this scenario. However, another way this can happen, is that the bot asks if they user would like to schedule an appointment and the user simply responds with a “yes” (affirm intent).
I used forms in my stories for both paths in 1.x, but I can only see rules replacing forms in the former path. I’m obviously hesitant to add a rule for an “affirm” intent. What do I do here?
- Since I (assuming) still need to include forms in my stories, does that still make it safe for me to remove FormPolicy from my policies? Would forms be deprecated in 3.0 or just FormPolicy?
Many thanks in advance!