Trigger a story (or intent) from a custom action?

I refer to the writing of @b1uec0in , my rasa version: 2.7.1

class ActionHandleCheck(Action):
    def name(self) -> Text:
        return "act_wf_handle_task"

    @staticmethod
    def start_story_events(story_intent):
        # type: (Text) -> List[Dict]
        # return [ActionExecuted("delegate_task_form")]
        return [ActionExecuted("action_listen")] + [UserUttered("/" + story_intent, {
            "intent": {"name": story_intent, "confidence": 1.0},
            "entities": {}
        })]

    def run(self, dispatcher, tracker, domain):
        if tracker.slots['opt_type']:
            return self.start_story_events("delegate_task_form")

But it returns an error message : Your action’s ‘act_wf_handle_task’ run method returned an invalid event. Event will be ignored.

We would appreciate it if you could offer us any help.

In fact, I want it to trigger a form

Could Rasa Team answer to these last two posts please?

The run method has to return a list of events. The code is missing an else condition, so it returns None instead of an empty list []. Furthermore, the "entities" key must be followed by a list value, so "entities": [] instead of "entities": {}.

Is there a solution for this? I’m currently looking to do the same thing. I have a button that needs to trigger an intent so I can restart a form again based on that.