Hello friends, I am trying to override the run method of custom action_restart to add my own functionalities to the existing one. I followed the steps mentioned in rasa docs for writing custom action restart.
My code looks like this:
class ActionReboot(Action):
def name(self) -> Text:
return "action_restart"
def run(self, dispatcher, tracker, domain):
print("veda")
output_json = {"message": "Restarting"}
.......my functionality......
dispatcher.utter_message(text=json.dumps(output_json))
return [Restarted()]
I also put action_restart in domain.yml file.
After all these, when I send /restart message, This custom action is not getting triggered. can someone help me with this please?