Max Dobroneckii Webflow Developer | CMS & Custom Code | n8n AI Automation
Top Rated Plus 100% Job Success

Valencia ·

Available for new projects

All notes

Automation · · 5 min read

Why your AI demo isn't a product yet

For business owners about to pay for an AI feature. Based on Chip Huyen's book AI Engineering and on the bookkeeping at my café.

You can build an AI demo in a weekend. Getting it to work every day for real users takes months, and most of that work has nothing to do with the model.

I'm working through Chip Huyen's book AI Engineering (O'Reilly, 2024), and it put precise words to what I see in my own projects. What follows is a short summary for people who want to understand what they're paying for. I say in the text which parts are Huyen's and which are my own experience.

What changed in how AI gets built?

A few years ago, software that reads invoices had to be trained from scratch. That took thousands of labeled examples and months of work, and the model you got could do exactly one thing. Now you take a ready-made large model, like the ones behind ChatGPT or Claude, and call it through an API. Huyen calls these foundation models. You almost never build the model yourself. You adapt it to your task and check how well it handles it. By the book's definition, that is AI engineering.

Huyen also splits an AI product into three layers: application, model and infrastructure. If you build on an API, almost all the work happens in the application layer (prompts, context, interface, checking the answers), and that layer is the cheapest.

How do you adapt a model to your task?

The book puts the methods into two groups: everything done through the prompt (Huyen counts RAG here too) and finetuning. I find it easier to think of them as a ladder with three steps, from cheap to expensive. The ladder is my simplification and isn't in the book.

  1. The prompt: clear instructions and examples of good answers. Huyen writes that many successful applications are built with prompting alone.
  2. Context: the model gets what it needs to know at the moment it answers, such as a price list or order history. If it searches your documents before answering, that's RAG (retrieval-augmented generation). If it also calls tools on its own, say to check a calendar or query a database, you have an agent.
  3. Finetuning on your own examples. This is the most expensive option.

My view is that most projects that go straight to finetuning would get by with a better prompt and the right context.

How do you know the AI works?

Ordinary software is easy to test: you give it 2 + 2 and expect 4. An AI answer is open-ended, and there's rarely only one right version. Huyen writes that this is why AI is harder to evaluate, and she gives evaluation two chapters, the third and the fourth.

Here's an example from my café. Claude helps me keep the books in Zoho Books. Three times a week it picks up supplier invoices from my email, PDFs and phone photos alike, and sends me a report in Telegram. The model got the total and the VAT out of an invoice right away. The errors came from small things that never show up in a demo. One supplier's PDFs have a space after every letter. Zoho calculates VAT once on the sum of all lines, while the supplier calculates it line by line, so rounding leaves the totals a cent apart. And when the API returned an empty list of credit notes (the data sat under a different key), Claude decided there weren't any and nearly entered a credit note a second time.

The costliest errors don't show up in the account balance. If a delivery gets entered twice, the money still left the account only once, so the balance matches while the cost of goods is counted twice. That's why every run is reconciled against outside sources: the bank statement and the supplier's own data.

My takeaway for any AI project is that only a set of real examples, run on every change, catches cases like these. "It seemed to work when I tried it" proves nothing.

Why does the last 20% take months?

In my projects the first 80% of quality comes fast, and the last 20% takes months, because the rare cases only show up in real data. The work doesn't end at launch either, since models and prices change every few months.

So it's worth building the application in a way that lets you swap the model. If a feature depends on how one particular model behaves, every update the provider makes to it becomes a risk.

The model isn't the only thing that sets the cost, either. In October 2026 I measured one bookkeeping run: about 50 calls and roughly 18 million tokens that the model re-read from the cache. Most of that came from a 561 KB file of internal instructions that went into every call. I've since cut it down. The details are in my note on Claude usage limits.

What should you ask a contractor before you pay?

Before you pay for an AI feature, ask your contractor five questions. The list is mine. It grew out of the section on planning in the book's first chapter.

  1. Is there a test set? How many real examples from your business does it hold, and is it run on every change?
  2. What happens when the model gets something wrong? Who will notice, and what can be rolled back? In my setup the scripts that work with the books only read data, and a duplicate entry is deleted only after I say yes.
  3. Can the model be swapped? What breaks if the provider updates it or raises the price?
  4. What does a month of running it cost? Count life after launch, not the build: model calls and support.
  5. Can ordinary code solve it? This question saves the most money. At my café the reconciliation is done by simple scripts that compare the till with the books and payments with invoices. AI is needed where the input is messy, as with emails and photos of invoices.

If you already have a quote for an AI feature on your desk, go through these questions before you pay. Where a question has no answer, I can help. Describe the task in a couple of lines, and I'll suggest the simplest version and a way to check that it works.

Work with me

Let's talk about your project.

Tell me what you need: a new site, a migration, custom code or an automation. I'll reply with how I would approach it and an hourly estimate split into phases.