The first version, and what measuring it showed
Alifood's sales team comes back from every international food fair with stacks of business cards stapled to lead sheets, mostly handwritten in Italian. Fast follow-up decides whether a fair lead turns into a customer.
My first version was a Python script that read the cards into Excel with an AI model. It worked well enough to use, so I checked it properly: I photographed 30 cards and verified every field by hand. The script ignored the handwritten notes, and its confidence score only checked format. Of the 21 records that contained an error, its review rule flagged none.
Measuring before rebuilding
For version two I wrote the brief and built the measurement first: a hand-verified test set, now 30 cards and 29 fair sheets, a harness that scores every model setting on the same photos, and v1 as the baseline. Every later choice had to beat that baseline.
| On 30 verified cards | v1 | v2 |
|---|---|---|
| Fields read correctly | 81.9% | 97.0% |
| Phone numbers correct | 56.7% | 100% |
| Wrong records sent to review | 0% | 80 to 86% |
| Cost per 100 cards | USD 0.29 | USD 0.15 |
The numbers decided the models. For cards, the smallest current model matched a larger one at about a twelfth of the cost. For handwriting the larger model was clearly better, so sheets use it.
How it works day to day
A salesperson drops photos into a shared Drive folder, and a scheduled job runs the scanner every 45 minutes. Handwriting is read twice, and any field where the two reads disagree goes to a person. Once the leads are in Brevo, the scanner creates a call, email or to-do task for each next step ticked on the sheet.
I also redesigned the paper lead sheet so a machine can read it, with corner markers, drawn tick boxes and a fixed spot for the card. Tick boxes on the new sheet are read at 98.6% accuracy.
How I built it
I directed a team of AI coding agents (an architect, developers, QA and an independent reviewer) through eight phases, each reviewed before the next began. The brief, the test data and every decision at the gates were mine.
I started that process too heavy. Every step was checkpointed so no work could be lost, and a review halfway through found that 40 of 84 commits were bookkeeping. Capping parallel agents, and letting only correctness, privacy or security block a phase, cut about half of the remaining agent runs. Next time I'd set the level of control per phase from the start.
Where it stands
The scanner is live and feeds the same Brevo as my ERP-to-CRM integration. A 200-sheet fair costs about USD 11 to process. Accuracy targets aren't met on every field yet, so every sheet still goes to a person until the first full fair batch is used to recalibrate it.