You can send “/session_start” to the rasa backend server when a user invokes the chat icon and customize the welcome message by creating a custom action like:
class ActionSessionStart(Action): “”" This action is used at the start of conversation. “”"
def name(self) -> Text:
"""This is the name to be mentioned in domain.yml and stories.md files
for this action."""
return "action_session_start"
async def run(
self,
dispatcher: CollectingDispatcher,
tracker,
domain: Dict[Text, Any],
) -> List[EventType]:
"""This run function will be executed when "action_session_start" is
triggered."""
# The session should begin with a 'session_started' event
events = [SessionStarted()]
dispatcher.utter_message(
text="Hi! How can I help you?")
events.append(ActionExecuted("action_listen"))
return events