Reminder works only if I don't write anything

I need to use the ReminderScheduled to send a push notification to the user at a certain time. I set by returning the object in this way:

return [SlotSet("confirm_start", None), SlotSet("dt_start", dt_start), SlotSet("dt_end", dt_end), SlotSet("dt_pause", False), SlotSet("pause_total_time", 0), ReminderScheduled("action_how_much_cream", dt_end)]

What happened is that it works fine if after the remainder is set no messages are sent between chatbot and user, but if the user sends even one message, then the notification is not sent.

What can be the problem?

Thank you, Tiziano

Anybody plz?

Hi @tiziano, ReminderScheduled events have a keyword argument kill_on_user_message which defaults to True. So when returning your reminder event in your action, just change it to ReminderScheduled("action_how_much_cream", dt_end, kill_on_user_message=False). See Events.

I hope that helps :slight_smile:

1 Like

It worked! Thank you so much