1. Pull AP and PO lines. Every line from your AP system and procurement tool. Vendor, description, amount, category-if-coded.
2. Apply category rules. Vendor mapping first, then description keywords, then learned patterns from prior coding decisions.
3. Layer GL coding. Each category maps to a GL account or sub-account in your chart.
4. Confidence scoring. Each classification gets a score. High-confidence auto-applies. Low-confidence lands in the review queue.
5. Output the coded report. Spend categorized by taxonomy, by vendor, by GL, by team or cost center.
6. Surface exceptions. Lines without confident classification, vendors not in the taxonomy, categories with sudden spend changes.