Schedule

The Schedule component checks the time of the user request and compares it with the set schedule. If the time matches the schedule, the user is directed to one screen, and if not, they will be directed to another one.

The component works according to the time set in the “Time zone” field in the Settings section.

Configuration

1. Add the component to the screen.

2. If necessary, create two screens one screen is for those who are on the schedule, and the other is for those who are not, and select these screens in the “If on schedule” and “If off schedule” fields.

If the screens are not set, the bot will execute the next component, if any, according to the scenario.

For example, you can place the Schedule component with one selected transition “If off schedule”. In the “If on schedule” field, leave the transition empty. Now, when the user enters the schedule, the bot will execute the next components on the screen, for example, Chat. This way, you can limit the transmission of messages from the client to the chat operator only during business hours. And during after-hours, the client will be taken to another screen, where, for example, they can get a suggestion to find information on their own, or write at another time when the bot support is available.

3. To create a schedule, click on the “Add new rule” button.

4. Select Rule Type “By days of the week” or “By dates”.

If you selected the Days of the Week type, then tick the boxes for the days of the week when the schedule will work.

In the “By day of the week” rules, you can specify the dates on which the rule does NOT apply. It can be an unscheduled day off, a holiday, etc. You can specify multiple dates.

If you selected the “By dates” type, then click the “Add date” button. After that, click on the “Dates on which the rule applies” field. Then you will see a calendar, in which you can select the desired date. You can select one or more dates.

5. Click the “Add Interval” button to set the time interval when the rule works.

You need to specify at least one time interval, because the rule will be skipped without it.

6. Specify the start/end of the interval in the appropriate fields in the 09:00 format.

Minutes can also be specified, for example, 09:35.

There may be several intervals. For example, you can include a lunch break in the schedule, as shown in the screenshot below:

7. If you need the rule to work 24 hours a day, specify the service interval from 00:00 to 24:00

8. If necessary, open the component settings and set the "Variable name for test result recording".

For users who are included in the schedule, the value of this variable will be true; for those who are not included in the schedule, the variable value will be false. This variable and values can be used in the further bot scenario, such as in a conditional template for executing or not executing a component, in requests, etc.

9. Click the “Save” button.

After that, you can click the "Add Rule" button again and fill in all its settings, if necessary. There can be several rules in one component.

To delete a rule, click the “Delete” button under the rule sequence number.

How to configure the bot response based on the user login time

In this case, the bot sends two different responses based on the time of day. On the user side, the entry point is always the same.

In addition, the bot considers lunch breaks, weekends, and holidays as non-working hours.

From 10 a.m. to 7 p.m. on weekdays, with a break from 1 p.m. to 2 p.m., the bot responds according to the working time scenario. For example, a bot can transfer a user to an operator who is available at that time.

From 7 p.m. to 10 a.m., on weekends and holidays, the bot responds to a user that the company isn’t currently working and they need to write during business hours.

Configuration

1. Add the Schedule component to the screen.

2. Create two screens, one for those who got on the schedule and another for those who wrote off the schedule.

There may be a chat with the operator on the screen for those who are on the schedule, and for those who are off the schedule, you can leave a link to other sections of the bot for self-search for information.

3. In the Schedule component, click the “Add Rule” button.

4. In the “Days of the week on which the rule applies” section, click “All”, then uncheck Sa. and Su.

5. In the “Dates on which the rule does NOT apply” section, click “Add date”.

6. Click on the field with today's date to open the calendar. In the calendar, select a holiday May 1st and press Select to confirm.

7. Click “Add Date” again and click on the field with today's date. Add the next holiday May 2nd.

If necessary, add other holiday dates according to the same principle.

8. Click the “Add Interval” button to set the time interval when the rule will be effective.

9. Set the first interval before the lunch break: from 10 a.m. to 1 p.m.

10. Click the “Add interval” button again to set the interval after the lunch break: from 2 p.m. to 7 p.m.

11. Save the changes.

Done. Now the schedule will connect the operator only during business hours on weekdays from 10 a.m. to 7 p.m., excluding breaks.

On weekends and holidays, as well as during the lunch break, the user will receive a screen leading to other sections of the bot for self-search for the answer to their question.

How to add a conference schedule to the bot">How to add a conference schedule to a bot

1. Add the Schedule component to the screen.

2. Create the screen for the registration, the first conference event.

3. Add Message to the screen to make the user understand exactly how they can register and for how long.

4. Add Rewind below. In Rewind, select the screen that you created first, the screen where the schedule is located.

5. Open the Rewind settings and check the box next to “Stop the bot after rewinding until the next message from the user”.

6. Make a copy of the registration screen using the Duplicate button on the tab in the right settings panel.

7. Change the name of the screen and the text of the message in accordance with the opening, the second event of the conference.

8. Make several more copies of such a screen by the number of conference events or by the number of speakers at it. In the screens, instead of the copied text, write a text with information about speeches, breaks, or other conference events.

9. Go back to the design of the schedule screen and add in the “If on schedule” field a switch to the registration screen “Registration from 9 to 9:30”, leave the "If off schedule" field empty the following component will be executed instead, which we will add later.

10. Click the “Add Rule” button.

11. In Rule Type, select “By date”.

12. Click the “Add Date” button and select the date of your event, then click the “Add an Interval” button.

13. Set the interval for the first event from 9:00 a.m. to 9:30 a.m.

14. Duplicate this component several times, according to the number of events at the conference. To do this, open the component settings and click the “Duplicate” button.

15. Update the settings in each copied “Schedule” component: specify the screen of the next event in chronological order in the “If on schedule” field.

Example:

  • In the first component, if the user is on the schedule, he is directed to the “Registration” screen (9:00-9:30).
  • In the second component, the following screen should be indicated “Opening” (9:30-10:00).
  • In the third component “Speaker's speech” (10:00-11:00) is indicated and so on.

At the same time, the time intervals in which the rule applies must correspond to the time of the event itself. For example, if the “If on schedule” field shows a screen from 9:00 to 9:30, then the time interval for this rule should be the same from 9:00 to 9:30.

Arrange the “Schedule” components sequentially, from the earliest time to the latest, so that the bot correctly determines the user time range and directs it to the appropriate screen.

Use the same principle for all subsequent events: in each new component change both the screen for those who are on the schedule and the time interval.

16. At the end of the screen, add Message about the end of the conference. Everyone who opens the bot after all events finish on that day or launches the bot on subsequent days will be transferred to this screen.

To the beginning ↑