Your AI Feature Works in the Demo. Now What?

The demo goes well. You ask the question you rehearsed, the answer arrives, and someone says, "We should put this in the product." Fair enough. It is a good demo.
Then a real user pastes in a small novel, asks three questions at once, and closes the tab halfway through.
Imagine a support assistant that reads documentation, drafts replies, and can eventually send them. Getting a sensible draft is a useful milestone. Deciding what happens when the model stalls, the documentation disagrees, or the send request times out is the rest of the feature.
That is the part I would want to review before celebrating the launch.
The spinner needs an exit
A loading animation is not a failure strategy. Give the whole operation a deadline, including retrieval, model calls, tools, and retries. A timeout on one HTTP call is not automatically a limit on the entire workflow.
The right duration depends on the task and measured latency. An interactive draft and an overnight document job shouldn't inherit the same number because somebody found it in an example.
Streaming can show progress sooner; it doesn't guarantee that the job will finish. When the deadline runs out, preserve the user's input and offer an honest next step: try again, use the ordinary search, or continue without the assistant.
Retries are work, too
A retry can recover from a temporary failure. It can also ask an overloaded service to do even more work. Amazon's guidance on timeouts, retries, and jitter explains why retries need limits, increasing delays, and randomness to avoid synchronized bursts.
Check the layers, not just your own loop. In a hypothetical stack with three nested layers, each allowing three total attempts, one request can produce up to 27 calls to the final dependency. That is arithmetic, not a performance benchmark, but it is a useful reason to inspect SDK defaults.
Choose where retries belong and keep them inside one overall attempt and time budget. Retrying an invalid input won't repair it. Retrying a model because you disliked its answer is a different policy again.
Actions need extra care. If our assistant times out while sending a reply, the message may already have been sent. Where supported, use a stable operation ID and a durable deduplication record; reconcile uncertain outcomes before repeating them. A disconnected client is not proof that the server did nothing.
- Application3 calls
- Client wrapper9 calls
- Final dependency27 calls
Assume every attempt fails, and each layer allows three total attempts: 3 x 3 x 3 = 27 calls at the final dependency. Real behaviour depends on the retry policies and failure timing.
What if the reply was sent before the timeout?
Don't send it again blindly. Check the durable operation record or the provider's status using the same operation ID. A retry is safe only when the action's duplicate-handling contract makes it safe. If the outcome cannot be established, show it as uncertain and escalate for review.
A 200 response can still be a bad answer
The model endpoint returning successfully tells us about transport, not whether the advice is correct. Valid JSON is helpful. Valid JSON containing an invented refund policy is still a problem.
Build a small evaluation set from the job the feature is meant to do. Include straightforward requests, contradictory documents, missing information, and examples where the right answer is to ask a question. Grade the outcome, not whether the wording matches your favourite response.
Anthropic's 2026 guide to agent evaluations discusses combining evaluation methods and inspecting what an agent actually did, rather than relying on a reassuring final message. Repeat variable tasks and calibrate automated judgements with human review. A single good run makes a nice screenshot.
I'd keep "the evidence doesn't support an answer" separate from "the provider is unavailable". One needs a careful response; the other needs recovery. And attaching a citation is not, by itself, that evidence check.
Budget for the task, not the happy-path call
The attractive price of one model call can become less attractive after retrieval, a growing conversation, tool calls, retries, and a second model checking the first. Track cost per completed useful task, with failed attempts included.
Set input and output limits, bound tool steps and concurrency, and enforce per-user usage rules on the server. If several workers share a budget, reserve it atomically; otherwise they can all approve spending the same remaining allowance. Rate limits and total spending limits solve different problems.
Also check what your billing settings actually enforce. Google Cloud distinguishes alerts-only budgets from spend-cap budgets; alerts alone don't stop spending, and spend-cap support depends on the service. An email saying the bill is high is useful. It is not an application-level off switch.
A better prompt is not a permission system
Letting an assistant draft a support reply and letting it send one are different capabilities. Keep that distinction in the tools and credentials, not only in an instruction telling the model to be careful.
OWASP's Excessive Agency guidance recommends limiting functionality and permissions, enforcing authorization downstream, and requiring approval for high-impact actions. The model should not decide which customer's records the current user is allowed to read.
For our assistant, that means checking the signed-in user's access on every tool call, keeping retrieved documents as untrusted content, and checking the final recipient and message before an approved send. Read-only access is a good starting point when writing is not yet necessary.
Ship the off switch, too
I would want to trace a failed task across retrieval, model calls, validation, and tools. Record versions, timings, token usage, and failure categories. Don't default to storing every prompt and customer document indefinitely just because debugging might be easier.
Watch tail latency as well as averages. Roll changes out gradually, compare useful completion rates and costs, and keep a known working version available. A prompt edit or model upgrade deserves regression checks, just like a code change.
Finally, make it possible to disable the assistant without disabling the product. Our support team should still be able to find the documentation and send a reply themselves.
A good demo shows the feature can work. Before shipping, I want to know what the user gets on the day it doesn't.
Small rollout. Observable outcomes. A known working version. An ordinary workflow when AI is unavailable.