How to create rules in Automation tool?