Smart Report AI
Citizen reports of street hazards in El Salvador: reporting takes under a minute over Telegram, and dispatchers see duplicate reports already grouped, with the evidence in plain sight.
Read-only demo access to the dashboard (includes 10 questions a day to the assistant): under “Usuario de prueba”, passworddemo-Are2G6f1pOvg







The landing page: three reports of the same pothole; the code groups two and flags the third as doubtful
1 / 8Problem
Reporters are in a hurry and will not install an app; dispatchers need to know which reports are the same; and without a notification back, no one reports twice.
Solution
The model proposes and the code decides: Claude Haiku 4.5 looks at the photo and suggests category and urgency, and the bot asks for confirmation first.
- Code, not the model, groups reports: by confirmed category and distance measured with PostGIS.
- Three outcomes, not two: grouped, doubtful or alone; doubtful cases wait on a human.
- “Ask the dashboard” answers with the system's data, but it can only look.
- No Redis: the queue is a Postgres table with FOR UPDATE SKIP LOCKED.
Outcome
In production, with the real cycle closed end to end: a report sent from a phone reached closure with a repair photo, and the notifications came back.
- Infrastructure costs USD 0 a month: everything sits on permanent free tiers.
- The only cost is the model: a measured USD 0.0018 per photo.
- 339 tests and 14 Playwright journeys run in CI against the running system.
- Classification and grouping stay open on purpose: no number without a large enough sample.
Read the full storyHide the full story3 min read
- Problem
- Two people with opposite needs. Whoever reports is standing in front of the pothole, in a hurry, and will not install an app. Whoever dispatches stares at the system eight hours a day, and their problem is not receiving reports but knowing which ones are the same: four photos of one pothole are four work orders for a single crew. And almost nobody builds the piece that holds the rest up (the notification back), without which no one ever reports twice.
- Solution
- The principle is that the model proposes, the code decides, and whatever cannot be supported is disclosed. Claude Haiku 4.5 looks at the photo and proposes category and urgency with schema-constrained output, and the bot asks for confirmation before accepting it: classifying silently and getting it wrong sends a water crew to fix a streetlight. Grouping is decided by code, not the model: reports are grouped by the category a person confirmed and by distance measured with PostGIS, and the photo's perceptual hash is recorded as evidence but never forces a merge, because an identical image 60 m away may be a resend. There are three outcomes rather than two (grouped, doubtful or alone), because splitting two reports of the same case is annoying but merging two distinct problems hides one: anything borderline is flagged as doubtful, with the reason, waiting on a human. Location is requested through Telegram's native button because the platform's compression strips the photo's metadata, and if the model fails or runs out of credit, the bot asks for the category with buttons and the report still gets in. On the dashboard, “Ask the dashboard”, opened from a floating robot, answers questions such as “what is still pending?” with the system's data and links to each case, but it can only look: the model picks among queries written in code that run in a read-only transaction, and assigning or closing stays with a person. Where the system is in doubt, “Compare the photos” asks the model for a second look at both images: it suggests, and the person decides. The dashboard adds a 3D map built with the same MapLibre and no 3D library, a “what just happened” feed driven by the same Postgres notifications, and on phones it changes shape so crews can dispatch from the street. No Redis and no message bus: the queue is a table with FOR UPDATE SKIP LOCKED, and the dashboard updates over SSE on top of Postgres LISTEN/NOTIFY.
- Outcome
- It is in production and can be tried: the Telegram bot and the dashboard, with a read-only demo user. It runs on a single Oracle Cloud Always Free ARM machine with Docker Compose and Caddy, and everything around it (Cloudflare R2, DuckDNS, OpenFreeMap, GitHub Actions) sits on permanent free tiers: infrastructure costs USD 0 a month and the only cost is the model, a measured USD 0.0018 per photo, because it receives the thumbnail rather than the original. The dashboard assistant has a daily cap per person, so public access cannot spend more than about USD 0.07 a day. The real cycle is closed end to end in production: a report sent from a phone (a flooded street in Mejicanos) went through category proposal, confirmation, assignment, "in progress" and closure with a photo of the repair, and the notifications came back; verified in the data, not just on screen. Closing is blocked without an evidence photo, because a closure with no evidence is a claim nobody can check. 339 tests and 14 Playwright journeys run in CI against the running system. A landing page explains what it is, how it works and what is measured, with an animated example of three reports and the bot conversation built from its own texts. The classification and grouping phases stay open on purpose: their verification needs 200 hand-labeled photos and 200 hand-grouped reports, and the code that measures them reports an insufficient sample instead of producing a number.