Rules can be a useful tool alongside machine learning. Your company may have unique business policies that you’d like to implement within Ravelin. For example, you may want to:

Rules allow you to implement this business logic as specific actions to be taken whenever an order matches the conditions that you define.

For each rule, you'll need to select the action (Allow, Prevent, Review) triggered by the rule and define the conditions under which the rule is triggered.

A rule can contain up to eight conditions. A condition is made up of three parts:

  1. Attribute - The attribute of the order (e.g. the order value or the customer account age)
  2. Operator - The arithmetic that compares the criteria to the value (e.g. less than or equal to)
  3. Value - The value you wish to use (e.g. 100.00 GBP)

https://ravelin.zendesk.com/hc/article_attachments/360003477398/Rules_list_V2.jpg

Creating Rules on the Dashboard

Only people who have Admin or Developer access are able to create rules.

You can create and manage rules in the Rules section of the dashboard. The Rules section can be found via this icon on the left menu:

https://ravelin.zendesk.com/hc/article_attachments/360003427958/rules_menu_option.png

To add a rule, click the blue Create rule button towards the top right of the Rules page.

Click Add condition and select the conditions that you want your rule to have. This includes choosing the attribute, operator and value for the condition. You can filter by types of conditions (for example all conditions to do with an Order or Customer) or you can search by condition name. Each condition has a description of what it is and an example.

https://ravelin.zendesk.com/hc/article_attachments/360003428158/Add__condition.jpg

Once you are happy with the conditions of the rule, you can set the action you want the rule to result in. You can set this to Allow, Review or Prevent.

https://ravelin.zendesk.com/hc/article_attachments/360004245058/Screenshot_2019-10-04_at_17.18.34.png

In order to publish the rule, you first have to test the rule by selecting the ‘Estimate Rule Impact’ button. This will give you an indication of whether the criteria used are too strict or not strict enough.