Every logistics and field-sales team runs the same expensive process: a driver photographs a receipt into a WhatsApp group, and a back-office clerk manually types the invoice number, total, and date into a spreadsheet. Hundreds of receipts a week = transcription errors and thousands of wasted hours.
AI vision models kill that bottleneck. Here's the pipeline that turns a blurry field photo into clean structured data in seconds.
OCR reads characters. Modern vision models (Claude Vision, Gemini Vision, GPT-4 Vision) read structure β they distinguish a tax ID from a total, and a date from an amount, even on crumpled, angled, or poorly lit receipts. No brittle per-vendor parsers.
WhatsApp image β Apps Script doPost β forward to vision model
β model returns JSON { InvoiceNumber, TotalAmount, VendorName,
Date, Category, confidence_score }
β confidence routing:
> 90 β auto-append to ledger
70β90 β flag for human review
< 70 β ask driver to re-photo
β write row to Google Sheet (+ link to original image)
β auto WhatsApp confirmation to driver
The confidence_score
is the whole trick β it's what stops bad extractions from silently polluting your ledger.
Pattern: Gemini for the first pass, escalate only low-confidence cases to Claude / GPT-4o.
~500 receipts/week: vision API $10β40 + WhatsApp API $30β60 + Apps Script free = ~$40β100/month. Versus a clerk at ~25 hrs/week = $2,000β4,000/month in loaded labor. Per-receipt cost: $0.005β0.02 (compress images to ~1024px to cut it further).
Accuracy: 92β97% on legible receipts, 75β85% on handwritten/damaged β hence the confidence routing.
The complete pipeline, categorization, and privacy controls are in the full guide on the MageSheet blog.
Built by the MageSheet team.