Skip to content
Founder Workflows
BrowseSaved
Browse by stage

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

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.

Your email address

Related workflows

LaunchProduct creation

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.