Case study · Applied AI & CRM

Getting trade fair leads into the CRM

Salespeople came back from food fairs with business cards stapled to handwritten notes, and none of it reached the CRM. I built a scanner, in two versions, that turns a phone photo of each card or sheet into a Brevo contact with its follow-up task.

Company
Alifood S.r.l., Genoa
Role
Product owner and lead
Period
2026 · v1, then v2 (Oct – Nov)
Stack
Python, Claude API, OpenCV, Brevo, Google Drive
97%Card fields read correctly, against 82% for v1
$0.15Cost per 100 cards, half the cost of v1
80%+Wrong records caught by review, against none in v1

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 cardsv1v2
Fields read correctly81.9%97.0%
Phone numbers correct56.7%100%
Wrong records sent to review0%80 to 86%
Cost per 100 cardsUSD 0.29USD 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

Lead scanner flow: a phone photo lands in Google Drive; the scanner detects the photo type and fixes orientation; it reads the card and reads the handwriting twice; local checks score every field; uncertain records go to a review queue; a check file goes back to Drive, the salesperson imports it into Brevo, and the scanner then creates each contact's follow-up task. 01Photo dropped in a Drive fair folder 02Detect type, fix angle, crop the card 03AI reads the card 04AI reads the handwriting twice 0511 local checks score every field 06Check file saved back to Drive 07Salesperson imports into BrevoFollow-up tasks created Three inputs, one record Business card on its own Old paper sheet with card stapled Redesigned v2 sheet Two reads disagree? the field goes to a person, never to a guess Review queue flagged cells in gold, with the reason in plain English
IllustrativeThe scanner's flow from photo to CRM task. Folder names, credentials and contact data are omitted.

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.

← Previous caseConnecting the ERP to the CRM Next case →SAP integration and invoice-reading AI