I'm trying to implement custom actions and have added action_get_answer to domain.yml.
actions:
- utter_greet
- utter_cheer_up
- utter_did_that_help
- utter_happy
- utter_goodbye
- actions.GetAnswer
Added the action in actions.py :
class GetAnswer(Action):
def name(self) -> Text:
return "action_get_answer"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
dispatcher.utter_message("action_get_answer")
return []
Ran the action server:
$ rasa run actions
Upon running rasa server :
$ rasa x
i get this error and GetAnswer
is not triggered -
ERROR rasa.core.processor - Encountered an exception while running action 'action_get_answer'. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code.
How do I make this work?
Thanks