Hi there!
I have a bot with single intents and it works fine, now I am required to make accept multiple intents. When I tried to just combine the rules for two intents together, I got an error of contradicting rules.
InvalidRule:
Contradicting rules or stories found 🚨
- the prediction of the action 'simple_info_form' in rule 'crop info and price' is contradicting with rule(s) 'handling active loops and forms - simple_crop_form - action_listen' which predicted action 'action_listen'.
Please update your stories and rules so that they don't contradict each other.
This is my rules.yml
file:
##############################################################3
- rule: Get the crop info
steps:
- intent: crop_info_request
- action: action_detect_crop_type
- action: action_detect_info_type
- action: simple_info_form
- active_loop: simple_info_form
- rule: Submit crop info Form
condition:
- active_loop: simple_info_form
steps:
- action: simple_info_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_get_crop_info
##############################################################3
- rule: ask for crop price
steps:
- intent: crop_prices_request
- action: action_detect_crop_type
- action: simple_crop_form
- active_loop: simple_crop_form
- rule: Submit crop price Form
condition:
- active_loop: simple_crop_form
steps:
- action: simple_crop_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_get_crop_price
##############################################################3
- rule: crop info and price
steps:
- intent: crop_info_request+crop_prices_request
- action: action_detect_crop_type
- action: action_detect_info_type
- action: simple_crop_form
- active_loop: simple_crop_form
- action: simple_info_form
- active_loop: simple_info_form