But, when I train the bot, I receive the following message:
InvalidRule:
Contradicting rules or stories found
the prediction of the action ‘utter_dont_want_schedule_demo’ in rule ‘Submit schedule demo form - 2’ is contradicting with rule(s) ‘Submit schedule demo form’ which predicted action ‘utter_want_schedule_demo’.
Please update your stories and rules so that they don’t contradict each other.
You can find more information about the usage of rules at Rules.
The interested demo slot is categorical like this:
interested_demo:
type: categorical
influence_conversation: true
values:
- yes
- no
I’m not sure what I’m doing wrong, I tested in 2.4.0 and the error doesn’t show up. I thought that I could use categorical slots to guide the flow as I want.
Hi @DanielOlarte, your usage of categorical slots is just fine, the behaviour you’re seeing is due to a bug introduced in 2.5.0. We wrote a fix for this, which should be in 2.6.1. Please let me know if you continue to see this behaviour.
Hi @fkoerner. Yes, we keep seeing that issue after updating to 2.6.1
InvalidRule:
Contradicting rules or stories found
the prediction of the action ‘utter_dont_want_schedule_demo’ in rule ‘Submit schedule demo form - 2’ is contradicting with rule(s) ‘Submit schedule demo form’ which predicted action ‘utter_want_schedule_demo’.
Please update your stories and rules so that they don’t contradict each other.
You can find more information about the usage of rules at Rules.
And:
Rasa Version : 2.6.1
Minimum Compatible Version: 2.6.0
Rasa SDK Version : 2.6.0
Rasa X Version : None
Python Version : 3.7.3
Operating System : Darwin-20.3.0-x86_64-i386-64bit
Python Path : /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
Hi @DanielOlarte, sorry, I jumped the gun. Turns out this fix didn’t make it into 2.6.1, and it should be in the next minor release. If this is blocking your progress, you can also try and compile from source. The relevant fix is here
Hi! I am facing almost the same issue with list type slots .
My Rasa is
Rasa Version : 2.6.2
Minimum Compatible Version: 2.6.0
Rasa SDK Version : 2.6.0
Rasa X Version : None
Python Version : 3.6.8
Operating System : Windows-10-10.0.17763-SP0
predictive-buttons:
type: list
influence_conversation: true
And error is:
InvalidRule:
Contradicting rules or stories found
- the prediction of the action 'utter_static_buttons' in rule 'predictive_static_set' is contradicting with rule(s) 'predictive_dyn
amic_set'.
- the prediction of the action 'utter_predictive_buttons' in rule 'predictive_dynamic_set' is contradicting with rule(s) 'predictiv
e_static_set'.
Please update your stories and rules so that they don't contradict each other.