# Form policies order matter?

**URL:** <https://forum.rasa.com/t/form-policies-order-matter/23721>\
**Category:** Rasa Open Source\
**Created:** [January 20, 2020, 10:08am UTC](https://forum.rasa.com/t/form-policies-order-matter/23721 "2020-01-20T10:08:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anuragchaudhary](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anuragchaudhary/32/6466_2.png) [@anuragchaudhary](https://forum.rasa.com/u/anuragchaudhary)\
**Post date:** [January 20, 2020, 10:08am UTC](https://forum.rasa.com/t/form-policies-order-matter/23721/1 "2020-01-20T10:08:03Z")

</div>

Hi

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?

---

<div class="post-metadata">

**Author:** ![tyd](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tyd/32/3030_2.png) [@tyd](https://forum.rasa.com/u/tyd)\
**Post date:** [January 21, 2020, 1:24pm UTC](https://forum.rasa.com/t/form-policies-order-matter/23721/2 "2020-01-21T13:24:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anuragchaudhary](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anuragchaudhary/32/6466_2.png) [@anuragchaudhary](https://forum.rasa.com/u/anuragchaudhary)\
**Post date:** [January 21, 2020, 2:05pm UTC](https://forum.rasa.com/t/form-policies-order-matter/23721/3 "2020-01-21T14:05:29Z")

</div>

# Configuration for Rasa NLU.

# [Components](https://rasa.com/docs/rasa/nlu/components/)

language: “en”

pipeline:

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

# Configuration for Rasa Core.

# [Policies](https://rasa.com/docs/rasa/core/policies/)

policies:

- 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”

---

<div class="post-metadata">

**Author:** ![tyd](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tyd/32/3030_2.png) [@tyd](https://forum.rasa.com/u/tyd)\
**Post date:** [January 21, 2020, 2:29pm UTC](https://forum.rasa.com/t/form-policies-order-matter/23721/4 "2020-01-21T14:29:01Z")

</div>

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](https://rasa.com/docs/rasa/core/policies/#action-selection).

---

<div class="post-metadata">

**Author:** ![tyd](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tyd/32/3030_2.png) [@tyd](https://forum.rasa.com/u/tyd)\
**Post date:** [January 21, 2020, 2:29pm UTC](https://forum.rasa.com/t/form-policies-order-matter/23721/5 "2020-01-21T14:29:13Z")

</div>

Can you share your stories?
