You can add a validation rule from the intent's Details view by clicking Add Validation Rule, or directly from the Rules page in the sidebar. Select the intent, fill in the rule details, choose the datasource to query, set the execution order and severity, and save.