How come this is a conflict? (rules vs stories)

i want to create conversation where the bots will asking user name and give thankyou, simple as that, i setup some form but got some conflict between rules.yml and stories.yml when using rasa train. i read rasa docs buts its too vague to understand so its not helping

How come this error happened?

InvalidRule: 
Contradicting rules or stories found 🚨

- the prediction of the action 'action_listen' in story 'membuat KRS (confirmed)' is contradicting with rule(s) 'isi krs_student_name' which predicted action 'krs_form'.

stories.yml

version: "2.0"

stories:

- story: basic greetings
  steps:
  - intent: greet
  - action: utter_greet

- story: selamat tinggal
  steps:
  - intent: goodbye
  - action: utter_goodbye

- story: conversation_kagak_ngerti
  steps:
  - intent: out_of_context
  - action: utter_not_understand

- story: membuat KRS (confirmed)
  steps:
  - intent: greet
  - action: utter_greet
  - intent: ask_create_krs
  - action: utter_confirm_create_krs
  - intent: affirm
  - action: utter_create_krs.ask_nama_lengkap
  - intent: give_name
  #  entities: 
  #  - krs_student_name: "wira"
  #- slot_was_set: 
  #  - krs_student_name: "wira"
  #- action: utter_thanks
  

- story: membuat KRS (batal)
  steps:
  - intent: greet
  - action: utter_greet
  - intent: ask_create_krs
  - action: utter_confirm_create_krs
  - intent: deny
  - action: utter_goodbye

rules.yml

version: "2.0"

rules:

- rule: balas ucapan greetings user
  steps:
  - intent: greet
  - action: utter_greet

- rule: balas ucapan randomnya user
  steps:
  - intent: nlu_fallback
  - action: utter_not_understand

- rule: isi krs_student_name
  steps:
  - intent: give_name
  - action: krs_form
  - active_loop: krs_form

Welcome to the forum :slight_smile:

- story: membuat KRS (confirmed)
  steps:
  - intent: greet
  - action: utter_greet
  - intent: ask_create_krs
  - action: utter_confirm_create_krs
  - intent: affirm
  - action: utter_create_krs.ask_nama_lengkap
  - intent: give_name

- rule: isi krs_student_name
  steps:
  - intent: give_name
  - action: krs_form
  - active_loop: krs_form

The story predicts nothing (aka action_listen) after the give_name intent, while the rule tells it to execute krs_form.

You shouldn’t leave intents at the end of your stories and rules.

its still contradict to me

error :

InvalidRule: 
Contradicting rules or stories found 🚨

- the prediction of the action 'utter_create_krs.ask_nama_lengkap' in story 'membuat KRS (confirmed)' is contradicting with rule(s) 'tanya user ingin isi krs atau tidak' which predicted action 'utter_confirm_create_krs'.

stories.yml

version: "2.0"

stories:

- story: basic greetings
  steps:
  - intent: greet
  - action: utter_greet

- story: selamat tinggal
  steps:
  - intent: goodbye
  - action: utter_goodbye

- story: conversation_kagak_ngerti
  steps:
  - intent: out_of_context
  - action: utter_not_understand

- story: membuat KRS (confirmed)
  steps:
  - intent: greet
  - action: utter_greet
  - intent: ask_create_krs
  - action: utter_confirm_create_krs
  - intent: affirm
  - action: utter_create_krs.ask_nama_lengkap
  - action: krs_form
  - active_loop: krs_form
  #- intent: give_name
  #- action: krs_form
  #- active_loop: krs_form
  #  entities: 
  #  - krs_student_name: "wira"
  #- slot_was_set: 
  #  - krs_student_name: "wira"
  #- action: utter_thanks

rules.yml

version: "2.0"

rules:

- rule: balas ucapan randomnya user

  steps:

  - intent: nlu_fallback

  - action: utter_not_understand

- rule: greet user

  steps:

  - intent: greet

  - action: utter_greet

- rule: tanya user ingin isi krs atau tidak

  steps:

  - intent: affirm

  - action: utter_confirm_create_krs

  - action: krs_form

  - active_loop: krs_form