Using forms to complete tasks
A dialogue with the core target of completing a specific task can be considered as a process to guide users to fill in a form:
- Bot asks user what he or she wants.
- User expresses his or her need (with intent and entities).
- Bot looks for the right form with regard to the user intent and fills in the entity information from user's input. If certain fields are still missing in the form, bot asks user about the missing field with a certain strategy (order of fields).
- User provides bot with information on the missing fields.
- Bot fills in the entity information to the form and continues to ask for the next missing field.
- The process iterates until bot finds that the form is complete and starts to execute the specific task.
We need to add RulePolicy
into the configuration file so that Rasa can handle dialogue management based on forms:
policies: - name: RulePolicy
Let's now start to discuss how to...