The documentation is not clear on how to combine stories and rules when writing training data for an intent that involves form filling. I wrote rules for filling forms that look like this:
- rule: Activate email form steps: - intent: lookup_mail_server - action: email_form - active_loop: email_form
- rule: Submit email form condition: - active_loop: email_form steps: - action: email_form - active_loop: null
And stories look like this:
- story: look up mail server steps: - intent: lookup_mail_server - action: action_interject - action: email_form - active_loop: email_form - active_loop: null - action: action_fetch_mail_server - action: action_follow_up
But when I train the model I get an ERROR saying ‘contradicting rules and stories’.
My understanding is that you can have a story without a rule but you cant have a rule without a story or the action prediction wont work. Is that correct or can someone clarify the dependency relationship between the two?
Can someone please provide a full example of how to write a story and rule for an intent that involves form filling? Or how to know when only a story OR a rule is necessary?