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 “actions.py”)
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()
schedule.every().day.at("08:00").do(prompt)
while True:
schedule.run_pending()
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?