- type
- summary
- created
- Mon Apr 06 2026 02:00:00 GMT+0200 (Central European Summer Time)
- updated
- Mon Apr 06 2026 02:00:00 GMT+0200 (Central European Summer Time)
- sources
- raw/plans/invoice-processing-plan
- tags
- plan invoices ai
Summary: Invoice Processing Plan (F3.2)
abstract
Smart Lean AI Pipeline implementation plan — 6-stage state machine, LlamaParse + OpenRouter integration, WO matching, cost estimates ($0.0004/invoice).Key Decisions
- 6-stage state machine: UPLOADED → AI_PROCESSING → PENDING_REVIEW → APPROVED → SCHEDULED → PAID
- wiki/entities/llamaparse for PDF extraction (Cost Effective mode, 3 credits/page)
- wiki/entities/openrouter with Gemini 2.0 Flash for structured field extraction
- WO matching by vendor + date proximity + amount tolerance
- Price anomaly threshold: >10% deviation from historical average
Source
Related
- wiki/concepts/invoice-processing — the feature this plan implements
- wiki/summaries/invoice-design-research — UI research companion
- wiki/summaries/openrouter-llm-research — model selection research