Manage Rules

Customizing Rules in Spotler AIgent is possible when you have the role Administrator or Editor. 

For the examples below, you can use this attachment as a helpful tool. 

Create new rule  

Let's say you want to create a rule for bank holidays or opening hours: 

First, go to Build > Actions > Manage Rules, and click on Create new rule.

Give the rule a name, 'Bank holiday'.

e.g. for the bank holidays, you can create rule 'Bank holiday': 

{{system.month}} with the option Is equal to and the month/number

and

{{system.day}} with the option 'Is equal to' and the day/number


e.g for opening hours - you can create Rule: 'Friday after 17'

{{system.day_of_week}} with the option 'Is equal to' and the day/number

and

{{system.hour}} with the option 'Is greater than' and the hour/number

If you want to have opening hours set to e.g 16:30 you need to create 2 separate rules: 

  • Condition 1
    • Name - Friday after 17
    • {{system.day_of_week}} is equal to 5
    • and
    • {{system.hour}} is greater than 17
  • Condition 2
    • Name - Friday between 16:30 - 17:00
    • {{system.day_of_week}} is equal to 5
    • and
    • {{system.hour}} is equal to 16
    • and
    • {{system.minute}} is greater than 30


NOTE: you need to add both conditions in your dialog.

Manage existing rules

We'll take the bank holidays from the previous explanation as an example: 

Step 1: On the left side, in the blue bar, go to Build > Actions > Manage Rules. Here use the search bar to find the holiday you want to modify.

Step 2: Here you can edit the name and/or date to your liking. You can use the examples in this article. When you're done, click 'Update' and move on to the next holiday.

In the search bar, you can also change your other rules if necessary. These can be the opening hours outside of holidays. You adjust these in the same way as in step 2. You can use this article for extra guidance.