Is it possible for rasa to send a message everyday at the same time without user initiating the conversation?

I want to create a good morning message that rasa sends everyday at 7a.m. without the user initiating the conversation. I have tried a few different methods including using the Schedule library in python as seen below (One of the snippets of the “”)

class promptapply(Action):
    def name(self) -> Text:
        return "prompt"
    def __call__(dispatcher: CollectingDispatcher,
                tracker: Tracker):
        dispatcher.utter_message("Hey, its time to start a productive day")
        SlotSet("morning",True) #to set the morning slot as true

prompt = promptapply()

while True:
    time.sleep(60) # wait one minute

But when I run actions, it never completely runs and is always stuck at “Starting action endpoint server.” Is there any way I can do this?

It depends on the channel you are using but you should look at external events. The challenge will be the users sender_id which is based on the channel you are using.