Create a rule
create_ruleCreate a rule for Actual Budget by specifying conditions and actions, automating future imports and edits without changing existing transactions.
Instructions
Create a rule from conditions and actions. Call describe_rule_schema first for the exact format. Conditions reference accounts, categories, and payees by id, not name. The rule applies to future imports and edits — it does not retroactively change existing transactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage | No | Run before ("pre") or after ("post") normal rules. Defaults to null, the normal stage. | |
| actions | Yes | Actions applied to matching transactions. | |
| conditions | Yes | Conditions a transaction must match. See describe_rule_schema. | |
| conditionsOp | No | Whether all conditions must match ("and", the default) or any one ("or"). |