1

I just started to learn implementing a chatbot with Rasa and I am wondering how to make the chatbot start the conversation.

I read this thread: Can Rasa chatbot initiate a conversation? and the docs: https://rasa.com/docs/rasa/reaching-out-to-user/#reaching-out-first

But I am wondering if it is also possible to manipulate the ActionSessionStart default action. For example I tested the following code but still the chatbot waits for user input after startup.

Do I do it wrong or is this just not possible?

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("utter_greet"))

        return events
dyedwiper
  • 151
  • 12
  • This can be achieved from the frontend, may I know which frontend UI you are using to communicate with rasa? – Bharath Jan 17 '22 at 04:54
  • I don't work with Rasa any more. It was just a short termed project. But thanks for the inquiry! – dyedwiper Jan 17 '22 at 10:32

0 Answers0