Cannot handle unhappy path with rasa interactive learning

I want to handle unhappy path by using interactive learning to write stories about forms. However, it doesn’t work as in Forms. domain.yml (6.1 KB) stories.md (1.7 KB)

What’s the expected behavior and what’s the actual behavior? Can you please point out where it went wrong?

I want to handle stories just like this

chitchat

  • request_restaurant
    • restaurant_form
    • form{“name”: “restaurant_form”}
  • stop
    • utter_ask_continue
  • deny
    • action_deactivate_form
    • form{“name”: null}

I tried to write the stories both manually and using interactive learning but I can’t quit the form once it started in neither way, even though the deny intent is recognize correctly

there is an advice that I should set requested_slot to categorical to handle unhappy path

slots:
  fee:
    auto_fill: false
    type: unfeaturized
  goods_value:
    auto_fill: false
    type: unfeaturized
  ids:
    auto_fill: false
    type: unfeaturized
  local_address:
    auto_fill: false
    type: unfeaturized
  order_code:
    auto_fill: false
    type: unfeaturized
  receive_address:
    auto_fill: false
    type: unfeaturized
  send_address:
    auto_fill: false
    type: unfeaturized
  transportation_type:
    auto_fill: false
    type: unfeaturized
  weight:
    auto_fill: false
    type: unfeaturized
  requested_slot:
    type: categorical

However, there are errors when I train rasa again

And I still cannot quit the form with deny intent stories.md (1.9 KB) domain.yml (5.8 KB)

@TQuy Could try removing the requested_slot from your domain file or making it at least unfeaturized? How did you get this domain file? Exported by interactive learning?

Thank you but it was solved here Cannot handle unhappy path with form

great!

1 Like