// Import → rule engine classifies → AI proposes new rules
PC_ANTHROPIC_API_KEY env var.
If disabled, set the env var and restart the backend.
| Product | Source(s) | Purchases | Date range |
|---|
| Date | Title | Source | Unit Price | Amount | Qty |
|---|
| Product | Source(s) | Purchases | Total Spend | Status |
|---|
| Category | Share | Total | Items |
|---|
| Date | Product | Category | Amount |
|---|
| Product ↕ | Instances ↕ | Qty ↕ | Avg/unit ↕ | High/unit ↕ | Low/unit ↕ |
|---|
| Owner | Share | Total | Items |
|---|
{"rules": [...], "classifications": [...]}
JSON can be wrapped in prose or a markdown code fence — both are handled.
| # | Pattern | Type | Category | Subcategory | Amount | Cadence | Status | Hits | By |
|---|
| Product | Match type | Match value | Source | Priority |
|---|
| Title | Category | Subcategory | Status |
|---|
| Date ↕ | Title ↕ | Category ↕ | Amount ↕ | Qty ↕ | Source ↕ | Owner ↕ | Tags ↕ | Matched rule ↕ |
|---|
| Product | Source(s) | Purchases | Type | Brand | Unit Size | Status |
|---|
| Match type | Match value | Reason |
|---|
| Name | Category | Expected | Frequency | Next due | Status |
|---|
| Time | Action | Actor | Summary | Count | Source | Status |
|---|