Business rules
Business rules check fields against each other and the rest of the document, and can correct values, such as a total that must equal the sum of its lines.
Writing a rule
Add rule on the Business Rules tab opens a dialog where you describe the rule in plain language. Use # with a field name to mention a field, and $ with a group name to mention a group. Send AI generates the rule from your description, and Generated Code shows what it will do. Save Rule saves it.
When you change the description without generating again, the dialog warns "Unsynced prompt changes".
What a rule can do
A rule can set or clear an error, set or clear a warning, or change a value. Every change a rule makes is logged on the document.
Order and groups
Rules run in the order of the list, each on the result of the one before. Drag a rule to change the order, and switch it off to skip it.
Add group groups rules. A group runs Always, or Conditional when a condition you describe is met.
With custom validation
Business rules do not run while the task uses custom validation, and the tab is disabled.