Predicted action_default_fallback in failed_test_stories.yml

I’m probably still too new to Rasa to understand this on my own. Why in failed_test_stories.yml do I see Rasa predicting action_default_fallback? I don’t explicitly tell Rasa to do action_listen anywhere, either, but I’m sure that’s implicitly programmed inside Rasa somewhere. I’m not sure why, because why would Rasa need to listen between when the user makes a request and when the bot correctly responds to that request? And back to my main concern: it looks like my test metrics are lower because it is predicting action_default_fallback in the place of listening, which makes even less sense to me. This is happening a lot in other test stories, and I would like to fix it so my test metrics are easier to read.

- story: do x (./tests/test_stories_x.yml)
  steps:
  - intent: greet
  - action: utter_greet
  - user: |-
      How do I [...x...]?
  - action: action_listen  # predicted: action_default_fallback
  - intent: do_x
  - slot_was_set:
    - slot_x: null
  - action: utter_respond_to_x

rasa v. 3.0.6

The problem was in my test story. I put a hyphen in front of my intent lines:

- story: do x
  steps:
  - user: |
      Hi.
    intent: greet
  - action: utter_greet
  - user: |
      How do I [...x...]?
  - intent: do_x
  - slot_was_set:
    - slot_x: null
  - action: utter_respond_to_x
  - user: |
      Done
    intent: done
  - action: utter_goodbye

Removing the hyphen in front of intent fixed this problem. Thanks again to Mohd Shukri Hasan for finding that typo.

2 Likes