1 Category Reference
Niels Franke edited this page 2026-06-10 23:50:28 +02:00

Category Reference

Billdozer classifies each email candidate into one of six business expense categories, plus a catch-all review bucket. Classification is fully rule-based — no AI model is involved.

Categories

01 — Equipment & Supplies

Hardware, peripherals, photography gear, and physical goods used for business.

Recognized vendors: Amazon (de/com/ch), Digitec, Galaxus, Apple Store, Sony, Synology, Manfrotto, DJI, B&H Photo.

02 — Phone & Internet

Mobile phone contracts and internet/broadband providers.

Recognized vendors: Yallo, Green, Swisscom, Sunrise, Salt, Init7.

03 — Software & Subscriptions

SaaS tools, cloud storage, creative software licenses, and AI services.

Recognized vendors: Adobe, Dropbox, Frame.io, Capture One, Artlist, Backblaze, Picdrop, OpenRouter, Anthropic, Blackmagic Design, Microsoft.

04 — Website & Representation

Hosting, domains, CDN, and infrastructure for web presence.

Recognized vendors: Host Europe, Hetzner, Cloudflare, Infomaniak, Namecheap, Vercel.

05 — Literature & Training

Books, courses, professional development, and educational materials.

No hardcoded vendor domains — emails land here when the subject/snippet contains training- or education-related keywords.

06 — Transport

Public transport, rail, and commuting costs.

Recognized vendors: SBB, BLS, PostAuto.

90 — Needs Review

The default bucket for anything that doesn't match a known vendor or keyword, and for emails that hit the internal blocklist (newsletters, marketing, unsubscribes, etc.).

Invoices that can't be confidently classified land here so you can review and decide manually.


How classification works

  1. The sender domain is checked against per-category vendor lists. A match sets the category with high confidence.
  2. If no vendor match, the subject line and snippet are checked for keyword signals (e.g. "Rechnung", "invoice", "receipt").
  3. A blocklist screens out common non-invoice patterns (unsubscribe links, newsletter footers, marketing domains). Blocklist hits go to 90-Needs-Review regardless of other signals.
  4. Unresolved emails default to 90-Needs-Review.

No AI or LLM is called. The AIAdapter protocol exists in the codebase for future use but is not wired in production.


Why something landed in 90-Needs-Review

  • The sender domain is not in any vendor list.
  • The email triggered the blocklist (e.g. contains unsubscribe links alongside invoice content).
  • The subject/snippet didn't contain enough invoice-related signals.

What to do: open the card, inspect the email, and either approve it into the right category or reject it. You can also upload a manual PDF if the email links to a portal.


Adding a vendor

Vendor domain lists live in apps/api/billdozer/pipeline.py under VENDOR_DOMAINS, organized by category. Add the sender domain (e.g. "newvendor.com") to the appropriate group and rescan. Classification rules live in apps/api/billdozer/classification.py.