Action restart not working

Hi All, I am building a chatbot using RASA framework. Below is the custom action I have written and this working fine but as I defined next action is restart i.e, out = ActionRestart().run(dispatcher, tracker, domain) it is not restarting action (i.e, not resetting all the slots and tracker). Please help me out. Any early help would be highly appreciated!.

class ActionSubmit2(Action): def name(self): return ‘utter_submit2’

def run(self, dispatcher, tracker, domain):
    username = tracker.get_slot('username')
    empid = tracker.get_slot('empid')
    office = tracker.get_slot('office')
    zone = tracker.get_slot('zone')
    out = ActionRestart().run(dispatcher, tracker, domain)

    return []

Please remember to correct the indentation: from import Restarted class ActionResetBot(Action): def name(self) -> Text: return “action_reset_bot” def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: return [Restarted()]

I am able to reset the bot with this. Call this action whenever you want to reset the bot. Example: image

Thanks varunsapre10