Createautomationrule

Creates an automation rule based on input parameters.