# Current way of letting the bot start the conversations

**URL:** <https://forum.rasa.com/t/current-way-of-letting-the-bot-start-the-conversations/42032>\
**Category:** Rasa Open Source\
**Created:** [April 2, 2021, 3:31pm UTC](https://forum.rasa.com/t/current-way-of-letting-the-bot-start-the-conversations/42032 "2021-04-02T15:31:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![themrcesi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/themrcesi/32/14099_2.png) [@themrcesi](https://forum.rasa.com/u/themrcesi)\
**Post date:** [April 6, 2021, 8:04am UTC](https://forum.rasa.com/t/current-way-of-letting-the-bot-start-the-conversations/42032/4 "2021-04-06T08:04:25Z")

</div>

Actually I´d already tried it and I couldn´t go through it.

```
class ActionSessionStart(Action):

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

    async def run(
      self, dispatcher, tracker: Tracker, domain: Dict[Text, Any]
    ) -> List[Dict[Text, Any]]:
        # the session should begin with a `session_started` event
        events = [SessionStarted()]
        events.append(ActionExecuted("action_greet"))
        return events

class ActionSessionStart(Action):

    def name(self) -> Text:
        return "action_greet"

    async def run(
      self, dispatcher, tracker: Tracker, domain: Dict[Text, Any]
    ) -> List[Dict[Text, Any]]:
        # the session should begin with a `session_started` event
        events = []
        dispatcher.utter_message(text="Hola. Soy un chatbot recomendador de planes de pensiones.")
        dispatcher.utter_message(text="Un plan de pensiones es un instrumento de ahorro e inversión a largo plazo con el fin de complementar la pensión de la Seguridad Social.")
        # an `action_listen` should be added at the end as a user message follows
        #events.append(ActionExecuted("action_listen")) not added because after action_greet a form should be triggered by a rule

        return events

```

Both action names are added in domain.yml and action endpoint is enable in endpoints.yml.

Neither it works when the conversations start nor when using /session\_start as an intent. Any clue?

---

_[View the full topic](https://forum.rasa.com/t/current-way-of-letting-the-bot-start-the-conversations/42032)._
