Hello, how do I check whether a value set to a slot has been specified in the domain? I want to know if this can be done in either the Stories file or during a Custom Action.
For example,
slots:
account:
type: categorical
values:
- a
- b
Is it possible to do something like this in stories.md?
Story 1
* get_details{"account" != "a" and "account" != "b"}
- utter_only_two_accounts_available
Or is it possible to do something in my Custom Action (action.py)?
if tracker.get_slot("account") not in <get_all_account_slot_possible_values>:
#do something
I would prefer to avoid listing the values from my domain.yml in my action.py. Is there a method to get a list of specified values for a Categorical Slot?