Hi, I was testing custom slot mapping via custom action, but it seems it is providing errors as follows.
Code:
class ValidateTeamName(Action):
def name(self) -> Text:
return "action_extract_team_name"
def run(
self,
dispatcher: "CollectingDispatcher",
tracker: Tracker,
domain: "DomainDict",
) -> List[Dict[Text, Any]]:
return [SlotSet("team_name", "barcelona")]
Domain:
slots:
event_type_major:
type: text
influence_conversation: false
mappings:
- type: custom
action: action_extract_team_name
actions:
- action_extract_team_name