Rasa 2.0: Abort from a custom action

Hi all,

I am facing the following problem: I have an intent for searching wikipedia. In the nlu training data, all examples had an entity (the search term).

However, sometimes rasa selectes the search_wikipedia intent, but without a search term. Which means that I don’t have a term to search in the wikipedia. I would like the custom action to be able to ray to rasa “you have selected a wrong intent, select the next”. Is this possible from a custom action?

I tried to add a story like this:

- story: Wikipedia Search
  steps:
  - intent: search_encyclopedia
  - slot_was_set:
    - search_term
  - action: action_search_wikipedia

But it does not work. action_search_wikipedia gets called, even if a search_term slot has not been filled.