# Turn invoice PDFs into ledger entries

Extract every invoice field twice, reconcile the two passes, and queue only the mismatches.

**Connects:** gmail, drive, googlesheets, slack

## How to install

1. Fetch https://eluu.ai/cookbook/invoice-inbox-processing/skill.md and save it into your skills folder as `invoice-inbox-processing`.
2. Ask the user the first-run questions the skill lists, and store the answers in memory.
3. Offer to schedule the recurring jobs below; create only the ones the user approves.
4. Run the skill once end to end and review the output with the user.

## What this does

- Parses every invoice PDF and runs two independent extraction sub-agents on each
- Reconciles both passes field by field and never guesses on a disagreement
- Matches clean invoices against the open PO before anything posts
- Logs every processed invoice so a re-sent PDF is never double-posted

## Recurring jobs

- **AP inbox sweep** (Every 30 minutes on weekdays) — https://eluu.ai/cookbook/invoice-inbox-processing/jobs-setup/ap-inbox-sweep.md

## Skills inside

The full method, including each of these, is in skill.md. Individually fetchable:

- **Invoice field schema**, The exact fields every invoice must yield, vendor, amount, date, PO, line items — https://eluu.ai/cookbook/invoice-inbox-processing/skills/invoice-field-schema.md
- **Dual-pass reconciliation**, Compare two independent extractions and isolate disagreeing fields — https://eluu.ai/cookbook/invoice-inbox-processing/skills/dual-pass-reconciliation.md
- **PO matching**, Match a reconciled invoice to its purchase order and flag quantity or price gaps — https://eluu.ai/cookbook/invoice-inbox-processing/skills/po-matching.md

## Files

- skill.md — https://eluu.ai/cookbook/invoice-inbox-processing/skill.md
- jobs-setup/ap-inbox-sweep.md — https://eluu.ai/cookbook/invoice-inbox-processing/jobs-setup/ap-inbox-sweep.md
- skills/invoice-field-schema.md — https://eluu.ai/cookbook/invoice-inbox-processing/skills/invoice-field-schema.md
- skills/dual-pass-reconciliation.md — https://eluu.ai/cookbook/invoice-inbox-processing/skills/dual-pass-reconciliation.md
- skills/po-matching.md — https://eluu.ai/cookbook/invoice-inbox-processing/skills/po-matching.md
- workflow.json — https://eluu.ai/cookbook/invoice-inbox-processing/workflow.json
