create_rule
Define conditions and actions to automate receipt categorization, project assignment, or processing preferences.
Instructions
Create an automation rule.
Args: rule_type: One of: vendor_category, default_project, processing_preference. condition: Condition object (e.g. {"vendor": "Starbucks"}). action: Action object (e.g. {"set_category": "Coffee"}). priority: Optional priority integer (higher = first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_type | Yes | ||
| condition | Yes | ||
| action | Yes | ||
| priority | No |