My stories.yml file is not working

My stories.yml file not following path of given stories for example: I want to execute path1 but it follows path 2 because some of the intent are same and i am using different type of entity extraction in both the path.

In my case I want to execute interactive_story_4 of stories.yml but it execute interactive_story_3 of stories.yml. I am using Rasa version - 3.1.1.

nlu.yml:-----------

  • intent: order_details examples: |

    • what is my order_status ?
    • where is my order ?
    • tell me my order_status ?
    • order status ?
    • status of order ?
    • I want to know my order status ?
    • I want to know my order
    • want to know my order
    • want to know order
    • want to know order status
  • intent: order examples: |

  • regex: order_id examples: |

    • \w{6,12}
  • intent: refund examples: |

    • when i will receive my refund amount ?
    • refund timing ?
    • when i will get my refund amount ?
    • refund day
    • refund day
  • intent: order_brands examples: |

  • lookup: Search examples: |

    • T-shirts
    • T-shirt
    • Shirts
    • shirt
    • pant’s
    • pants
    • jeans
    • Jean’s

domain.yml:---------

entities:

  • order_id
  • Search slots: order_id: type: text mappings:
    • type: from_entity entity: order_id Search: type: text mappings:
    • type: from_entity entity: Search

stories.yml :------------

  • story: interactive_story_3 steps:
    • intent: greet

    • action: utter_greet

    • intent: order_details entities:

      • order_id: status
    • slot_was_set:

      • order_id: status
    • action: utter_order_Id

    • intent: order entities:

      • order_id: L0DQGQ191
      • order_id: L0DQGQ191
    • slot_was_set:

      • order_id: L0DQGQ191
    • action: action_order_status

    • intent: deny

    • action: utter_did_that_resolve

    • intent: deny

    • action: utter_greet

    • story: interactive_story_4 steps:

      • intent: greet
      • action: utter_greet
      • intent: refund entities:
        • order_id: refund
      • slot_was_set:
        • order_id: refund
      • action: utter_order_Id
      • intent: order entities:
        • order_id: L0DQGQ191
        • order_id: L0DQGQ191
      • slot_was_set:
        • order_id: L0DQGQ191
      • action: utter_refund

config.yml :--------------

pipeline:

  • name: “WhitespaceTokenizer”
  • name: “RegexFeaturizer”
  • name: “RegexEntityExtractor”
  • name: “LexicalSyntacticFeaturizer”
  • name: “CountVectorsFeaturizer” analyzer: “char_wb” min_ngram: 1 max_ngram: 4
  • name: “DIETClassifier” epochs: 100
  • name: FallbackClassifier threshold: 0.4 ambiguity_threshold: 0.1
  • name: “EntitySynonymMapper”

policies:

  • name: MemoizationPolicy
  • name: RulePolicy
  • name: TEDPolicy max_history: 10 epochs: 100 batch_size: 50 max_training_samples: 300

Please help me to resolve this issue.

@VijayChatBot can you format the code for better view.

Ok I am attaching screenshot of files

Nlu.yml

Domain.yml

image image

Stories.yml

image

image

Config.yml

Action.py:—

This is "action_order_status

image

Output:- you can see i want to execute interactive_path_4 but it follows interactive_path_3