Build estimate-from-a-photo without letting the model write prices: it picks numbered catalog lines and quantities, code sets the price
The founder of an estimate app for solo tradespeople explains how it turns a job photo or sentence into line items: the model may only choose from a numbered service list with no price field, the server validates every value, and prices come from the user's own history or a regional table.
Evidence: The source shows its work: steps, screenshots, code or data you can inspect.
The business problem
Asking a vision model for a priced estimate works in a demo but produces plausible, changing, untraceable numbers that end up in front of a customer under the user's name. Any AI feature that touches money needs prices that can be traced.
What was tried
1. Before each call, build the list the model may use: services this user has priced before, then the trade's catalog adjusted for region, capped at 400 numbered lines. 2. Put the list and blunt rules in the system prompt: choose only from the list, prefer exactly what the user said, and never give a price. 3. Use structured output with a schema that has items (line number, name, quantity, reason), clarifying questions, commonly forgotten items and boxes on the photo, and no price field at all. 4. Make the model repeat the service name next to the line number and, on the server, correct the number from the name when they disagree; this removed an off-by-one class of errors. 5. Validate meaning, not just types: drop line numbers outside the list, bound quantities, cap counts of items and questions, force exactly one recommended option, trim text. If nothing valid survives, or the photo is not a job, show the app's own fixed message instead of model text. 6. Price in plain code: the user's own past price wins, otherwise the regional reference price, with a typical range shown per line. The user reviews every line before sending. 7. For voice or typed edits, a cheaper second call returns edit operations; a price edit is accepted only if that number literally appears in what the user said, with a rule for numbers that could be a quantity. 8. Cache the long, rarely changing system prompt so repeated calls are cheap.
What was reported (not reported)
The source describes the design and one bug it fixed (the right service name next to the wrong line number), but reports no accuracy figures, user numbers, costs or customer results.
Limitations
Written by the founder of the app (Vistobra) and ends with a link to it, so it is labelled vendor. Code is simplified excerpts, not a full repo. The model and provider are not named, and no measurements of accuracy or cost are given. The pattern transfers to any AI feature that produces quotes, invoices or prices, but the catalog and regional pricing tables have to be built first.
What you need
A service catalog with units and reference prices, a model that supports structured output and images, and server code to validate responses.
A prompt to try
Here is a numbered list of services. Look at the photo and return only JSON: items with the line number n, the service name d exactly as listed, a quantity and a short reason. Choose only from the list. Never give a price or value.
Sources
- DEV Community (Renan, Vistobra) ↗ Vendor case study, published November 27, 2026
Source published: November 27, 2026. Last reviewed here: November 28, 2026. Spot a mistake? Tell us.
Get new workflows like this by email
A short selection of the most useful new workflows, including the ones that did not work. Free, and you can unsubscribe at any time.
Related workflows
Add an MCP server to a small SaaS by wrapping your existing services, and track where every record was created to see how much agents use it
A solo founder of a Rails social scheduling SaaS added an MCP server so customers could work from Claude or ChatGPT. A query on a creation source column showed 54 percent of posts in three months came through it; he shares five build lessons.
Beta-test a mobile app with parallel Claude Code personas on separate emulators, then review screenshot-backed reports
An open-source GitHub Actions template gives each AI tester a device, language, text-size setting and goal. Agents explore the app and return encrypted reports for local review. The author's demo found nine of eleven planted bugs; this is exploratory testing, not real-user validation.
Build an app with a queue of AI coding agents where checks, not the agents' own reports, decide what ships
A fitness app founder runs headless coding agents on a task queue, each opening pull requests that must pass checks before a bot merges them. About 5,300 merged PRs in ten months, EUR 11.98 MRR, and three dated agent failures.
Run one Grok Bot plan per product, hand coding to Codex CLI, and pass work between plans on a shared Vercel Board
A small AI company runs three $200 a month Grok Bot plans, one per product, sends coding to Codex CLI, and has the bots hand work to each other on Vercel Board. A bot told to push usage to 90% made up busy work.