The Chatbot Demo Works. How Do You Know the Product Is Worth Building?
| From Book to Production | Week 2: Introduction to Building AI Applications with Foundation Models |
Imagine your team spends a weekend building a customer-support chatbot for a bank on top of an off-the-shelf model. It answers a handful of sample questions well, and everyone is excited. The usual next question is “when can we ship it?” The more useful one is how good this system has to be before it helps anyone, and how far it is from that bar right now.
This week I read Chapter 1 of AI Engineering: Building Applications with Foundation Models by Chip Huyen, “Introduction to Building AI Applications with Foundation Models”. It runs from language models and self-supervision all the way to the AI engineering stack. The part that caught my attention most was Planning AI Applications, where Huyen says that building a cool demo with foundation models is easy and building a profitable product is hard.
My read: the gap between those two sentences is where decisions about an AI project go wrong. A good demo is easy to mistake for “almost done”.
What does the book ask before you build anything?
If you just want to learn, Huyen says to jump right in, because building is one of the most effective ways to learn. If you’re doing this professionally, she suggests stepping back first: why are we building this app, and how?
The planning framework is a chain of questions. Three of them map directly onto our bank chatbot:
- Why build it, and how risky is not building it? The book orders three motivations from highest risk to lowest: competitors using AI could make you obsolete, you could miss profit and productivity gains, or you don’t yet know where AI fits but don’t want to be left behind. The reason also shapes build versus buy. If AI is an existential threat to the business, you might build in-house rather than outsource to a competitor. If the goal is productivity, there are probably off-the-shelf options that cut time and cost.
- What role do AI and humans play? The more critical AI is to the product, as opposed to complementary, the more accurate and reliable it has to be, since users forgive mistakes more easily when AI isn’t the core of the product. For a support chatbot, the chapter lists three setups: AI suggests several answers so an agent can reply faster, AI answers only simple requests and hands the rest to humans, or AI answers everything directly.
- How do you define success? The metric that matters most is business impact, for example the share of messages answered automatically or the amount of human work saved. But answering more messages doesn’t necessarily mean happier customers, so track satisfaction and feedback separately.
Alongside these, Huyen introduces what I think is the central concept of this section: the usefulness threshold, meaning how good the product has to be to be useful.
Its purpose is to keep a product from reaching customers before it’s ready. A threshold can have several groups of metrics: the quality of the answers; latency, including TTFT (time to first token), TPOT (time per output token) and total latency; the cost per inference request; and others such as interpretability and fairness. What counts as acceptable latency depends on the use case. If humans currently answer every request with a median response time of one hour, anything faster might be good enough.
Why isn’t a good demo enough for this decision?
For planning milestones, the chapter suggests a concrete first step: evaluate existing models to understand what they can already do. The stronger the off-the-shelf model, the less work you have to do. The book’s example is that if your goal is to automate 60% of support tickets and an off-the-shelf model already automates 30%, you’ll probably need less effort than if it automated none.
Huyen also states one possible outcome plainly: after evaluating, you may find that the resources needed to reach the usefulness threshold exceed the potential return, and you no longer want to pursue the project. I think that sentence matters, because it makes “drop it” a valid result of planning, not a sign of failure.
The next challenge is what the chapter calls the last mile: initial success can be misleading. A demo can take a weekend, while a product can take months or even years. The chapter quotes the UltraChat paper saying that going from 0 to 60 is easy and going from 60 to 100 is exceedingly challenging. LinkedIn also reports that it got to 80% of the experience it wanted in one month. That early success led the team to grossly underestimate the time remaining, and it took four more months to get past 95%, most of it spent on product kinks and hallucinations.
My read of these two reports is that early progress can’t be extended linearly to the threshold. If a demo reaches 80% of the target experience, that doesn’t necessarily mean 80% of the time or cost has been spent.
There’s one more reason, and it’s in the chapter itself: foundation model outputs are open-ended, which makes them harder to evaluate. In a close-ended task like fraud detection there’s usually an expected answer to compare against. For a chatbot, there are so many possible responses that you can’t list all the correct ones. So “it answered a few questions well” is weak evidence. You have to define in advance what an acceptable answer is.
How do you measure the gap to the threshold?
Take the same bank support chatbot. This is a hypothetical scenario, not a report on a real project. Before deciding whether to continue, you could design a small evaluation that fills in the two numbers from the book’s 60% and 30% example, the target and what an off-the-shelf model can do today, for this particular system:
- Define the threshold before you see any output. Write down the business goal (for example, the share of tickets closed without human involvement) and the minimum quality, latency and cost per request, together with the support and business teams. The team has to set these numbers from the problem itself; the chapter doesn’t hand you a universal number.
- Use a real, categorized sample. Take a sample of past tickets and group them by request type, for example general questions about terms of service, requests that need the customer’s account data, and complaints.
- Write the judging rubric down. For each category, define what “usable without edits”, “usable with edits” and “wrong or risky” mean. Then have several support agents label the answers without knowing which model produced each one.
- Run off-the-shelf models with fixed settings. Run one or two models with a simple prompt, and record TTFT, total latency and cost for every answer. If outputs vary, run each sample several times. Don’t tune the prompt on these same samples, or the numbers will look better than they are.
- Record the conditions. Keep the model version, the prompt, the sample set and the rubric, so the same evaluation can be repeated later with a new model or prompt.
This design is a proposal, not the result of a real experiment.
The key point is that the output of this evaluation isn’t one overall number. It’s a gap to the threshold for each category. The off-the-shelf model may be close to the threshold on general questions and far from it on complaints.
How do you turn the result into a decision?
Interpretations should stay cautious, because the sample is limited and human judgment has errors too:
- If a category is close to the threshold, you could start from the first of the three support setups: AI suggests answers and the agent decides. This fits the Crawl stage of Microsoft’s Crawl-Walk-Run framework, which the chapter describes: first human involvement is mandatory, then AI interacts directly with internal employees, then more automation, potentially including direct interaction with external users.
- If agent acceptance rates are high, the book’s example is that when, say, 95% of AI-suggested responses to simple requests are used verbatim, you can let customers talk to the AI directly for those requests. That number is just an example, not a ready-made threshold for any system.
- If the gap is large only in some categories, narrowing the scope is a serious option: AI answers only the simple requests and hands the rest to humans, which is the second setup.
- If the gap is large almost everywhere, compare the cost of reaching the threshold against the likely return. You may well conclude the project isn’t worth continuing.
For cost estimates, I’d take LinkedIn’s experience seriously: don’t estimate the remaining gap from the speed of early progress, because the last stretch may go much slower.
Agent acceptance rate is a proxy, not quality itself. Agents under heavy load may accept answers without enough review, so a separate audit of a sample of accepted answers helps keep the metric honest.
When AI moves from suggesting answers to agents to answering customers directly, there’s no human left between an error and the customer. So it makes sense to define a quality threshold for each stage, not once for the whole path.
The evaluation stays useful after the first decision. The chapter reminds you that every model has its own quirks, and that without versioning and evaluation infrastructure, switching models becomes a headache. The same samples and the same rubric become your comparison tool the next time the model or the prices change.
The decision rule
My read: the main question before building an AI app isn’t “can we build it?”, because according to the chapter itself, building an initial demo is easy. The question is where the usefulness threshold sits and how far an off-the-shelf model is from it today.
I’d write that threshold down before seeing the first model output, because once you’ve seen a good demo, the definition of “good enough” moves easily. That said, if the goal is only learning, or a low-risk internal tool, this much rigor isn’t necessarily needed. The book itself says to jump right in when you’re learning, and a report the chapter cites says companies deploy internal-facing apps before customer-support chatbots, since the privacy and compliance risks are lower.
The limits are plain: the evaluation above is a design nobody has run here, and the chapter gives no universal threshold. Before asking when it goes live, ask what evidence shows that the system meets the threshold we defined up front, in each category of request.
References
- Book: AI Engineering: Building Applications with Foundation Models by Chip Huyen, Chapter 1 (Introduction to Building AI Applications with Foundation Models), especially the Planning AI Applications section
- Book repository: chiphuyen/aie-book