Form policies order matter?


I’m using a form at the end of my conversation and have included the “FormPolicy” on the first place in credentials under “policies:” The assistant works fine in the web UI but isn’t responding accurately in telegram and responding in messenger.

Does this issue is related to mentioning the form policy on top?

Hi @anuragchaudhary! Can you please share your config and stories?

Configuration for Rasa NLU.


language: “en”


  • name: “WhitespaceTokenizer”
  • name: “RegexFeaturizer”
  • name: “CRFEntityExtractor”
  • name: “EntitySynonymMapper”
  • name: “CountVectorsFeaturizer”
  • name: “EmbeddingIntentClassifier”

Configuration for Rasa Core.



  • name: “FormPolicy”
  • name: AugmentedMemoizationPolicy max_history: 0
  • name: KerasPolicy
  • name: MappingPolicy
  • name: “FallbackPolicy” nlu_threshold: 0.2 core_threshold: 0.2 fallback_action_name: “utter_help”

Defining FormPolicy first will not cause that issue. At every turn, each policy defined in your configuration will predict a next action with a certain confidence level. The bot’s next action is then decided by the policy that predicts with the highest confidence.

In the case that two policies predict with equal confidence (for example, the Memoization and Mapping Policies always predict with confidence of either 0 or 1), the priority of the policies is considered. Rasa policies have default priorities that are set to ensure the expected outcome in the case of a tie.

You can find out the default priorities and more information here.

1 Like

Can you share your stories?