Only one intent allowed in a rule?

I have been working with rules and stories, as well as forms lately. I have noticed that I get some error while creating a rule which has more than one intent. I don’t remember the error.

My question is, is it that only one intent needs to be present in a rule, unlike stories, which can contain as many intents as possible?

Maybe the error you’re getting is when two rules and stories conflict?

Anyway, what’s the rule that is causing you problems?

  • Rules are generally intent->action only, or intent->action->action. They represent what the bot MUST do when it detects an intent.
  • Stories are more flexible and usually are more than 5 lines long. They represent what the bot is supposed to do during a certain context.
1 Like

@ChrisRahme Can we add one form in rules for multiple intents providing different different utterance after form is closed. For ex:- form name: village form is used for two intents inside rules, under 1st rule can activate form for intent_x and then in 2nd rule deactivate form with utter_x and in 3rd rule can activate form for intent_y and then in 4th rule deactivate form with utter_y .

this gives error saying conflicting utterances for form as after deactivating form their are two different utterance (x and y).

How to handle this case?

You can use slot_was_set events and handle slot values in the form