prince.dev
AILLMGeminiProduct

Adding LLM features to real products without the hype

By
· 1 min read

In short

LLMs work best in products when they do one narrow, well-defined job, such as turning a broker's WhatsApp message into a clean property listing. Ask for structured output, validate it, keep a fallback when the model fails, support the user's languages, and watch cost and latency like any other dependency.

In BrokerSite an LLM writes property listings from the photos and short notes brokers send on WhatsApp. It works because the job is narrow and the result is easy to check.

Give the model one job

"Write a listing from these details" is a good job. "Run my business" is not. Narrow tasks are easier to test, cheaper to run and far less likely to surprise users.

Ask for structure, then validate it

Ask for JSON with known fields (price, size, location, description) and check every field before saving. If something is missing or odd, fall back to a simpler template instead of publishing nonsense.

Respect the user's language

In India a listing might need English, Hindi or Gujarati. LLMs make this cheap to offer, and it matters a lot to users who are not comfortable in English.

Treat it like any other dependency

  • Set timeouts and retries.
  • Log inputs and outputs so you can debug bad results.
  • Track cost per request and cache what you can.
  • Keep a human-editable result, so a person can always fix the output.

Keep reading

Have a project in mind?

Let's ship it.