Sending a delayed message at a user chosen day and time

Published July 6, 2022

Sometimes you need to send a message to a user at a convenient day and time. This can be done as follows:

1. Create “Choose Message Time” screen and add Buttons with Hints component to it that would allow you to select a desired time for the user to receive the message.

Time selection screen with Buttons with hints for 10 a.m., 12 p.m., 2 p.m. options

2. Create “Choose Message Day” screen and add Buttons with Hints component to it that would allow you to select a desired day for the user to receive the message.

Two screens with time buttons (10 a.m., 12 p.m., 2 p.m.) and day buttons

3. Add Fork component to “Choose Message Time” screen. Set Default Target user selection to the Time variable, and configure the target to transition to “Choose Message Day”.

Time selection screen with Fork assigning Time, default transition to day screen

4. In the “Choose Message Day” screen, set up transitions on button events to three screens: “Today”, “Tomorrow” and “The day after tomorrow”.

5. In the each screen set put Label that consists of a word and bracketed variable: Today{{Time}}, Tomorrow{{Time}} и The day after tomorrow{{Time}}.

Overview: day buttons link to tag screens today{{Time}}, tomorrow{{Time}}, after_tomorrow{{Time}}6. This is how screens would look like:

Overview of time, day, and tag screens, plus a Lesson screen with placeholder text7. Set nine trigger events, three for each potential day.

In events for “Today” set Tag Name to the relevant time value (i.e. the value of the Time variable): the first one to “Today10:00”, the second one to “Today12:00”, the third one “Today14:00”.

The unit of time is day. Set “Time” field to “0” and specify hours and minutes you want.

Note that if the label is assigned to the user later than the specified time, the event will be triggered the next day at the specified time.

Trigger event "Class today at 10 a.m." with tag today10 a.m. sending Lesson screen

8. Repeat for “Tomorrow” trigger events, however set Time field to “1”.

Trigger event "Class tomorrow at 12 p.m." with tag tomorrow12 p.m. sending Lesson screen

9. Set Time field to “2” for “The day after tomorrow” trigger events.

Trigger event "Class the day after tomorrow at 2 p.m." sending Lesson screen

10. We’re done. This way the screen will be sent to user at the selected day and time.

To the beginning ↑