Chatroom let the bot start the conversation?

Hi community,

I tried to customize the ActionSessionStart class just to send a specific user message when triggering /session_start following the below code:

class ActionSessionStart(Action):
    def name(self) -> Text:
        return "action_session_start"

    @staticmethod
    def fetch_slots(tracker: Tracker) -> List[EventType]:
        """Collect slots that contain the user's name and phone number."""

        slots = []
        for key in ("name", "phone_number"):
            value = tracker.get_slot(key)
            if value is not None:
                slots.append(SlotSet(key=key, value=value))
        return slots

    async def run(
      self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]
    ) -> List[Dict[Text, Any]]:

        # the session should begin with a `session_started` event
        events = [SessionStarted()]

        dispatcher.utter_message(text="Salut comment ça gaze ?")

        # an `action_listen` should be added at the end as a user message follows
        events.append(ActionExecuted("action_listen"))

        return events

However, when launching rasa shell and initiating with /session_start I got twice the user message: Salut comment ça gaze ?

Anyone would have an idea why ?

Thanks!

I also got the utter message twice when I override the action_session_start. Have you resolved it?

No I have opened an issue on github.