Skip to main content

What to Ask Before Adding AI to an Existing Web App

Use a real workflow to scope an AI feature, choose review criteria and specify how the application handles failures.

A marked boundary on an illustrated restaurant menu proof with the headline “Scope AI Before You Build”.

A founder asks for an AI assistant inside a product. Before choosing a model, I want to see the screen where someone gets stuck, the information they have at that moment, and what a useful next step looks like.

Consider a restaurant team adding a menu from a PDF. An extraction model can propose dish names and prices. The application still needs to let a person compare the proposal with the source, correct it and decide when the menu is ready to publish. The Pass the Menu import build note describes that review step.

The first version of an AI feature can be one useful suggestion inside an existing workflow. It needs a clear place to begin, a way to inspect the result and a safe way to continue if the suggestion is wrong.

Start with a task, not a model

Ask the person doing the work to walk through a recent example. Take notes on what they opened, what they copied, where they hesitated and what they did after making a decision.

QuestionExample for a menu import
What starts the task?A venue has a menu PDF ready to add.
What should the system propose?Structured dishes, prices and available choices.
What must a person check?Names, prices and how choices apply to each item.
What happens after review?Accepted changes go into a draft for the venue.
What happens when extraction is uncertain?The reviewer checks the source and corrects the proposal.

This table is a scoping exercise. It gives the team something concrete to review before estimating the integration.

Gather examples before writing the prompt

Collect a small set of representative inputs with permission. Include an ordinary case and a few difficult cases, such as a table with prices far from item names or an add-on that applies to several dishes. Remove private information from examples used outside the production system.

For each input, record what a good result should contain. If two people disagree about the correct answer, that disagreement is useful. It shows where the application needs a review decision instead of an automatic rule.

Keep the examples as a repeatable evaluation set. When the prompt, model or parsing code changes, run the same cases again and compare the output against the expected result. Check the fields that affect the user’s decision rather than grading the answer by how polished it sounds.

Put the model behind the application

A browser can send the user’s request to an application server. The server prepares the permitted context, calls the model and validates the returned structure before passing a proposal back to the interface.

A practical request flow has five steps:

  1. Validate the input. Check the format, size and the user’s access to the relevant record.
  2. Prepare context. Send the information needed for the task and leave unrelated data out.
  3. Request a structured response. Define the fields the application expects.
  4. Validate and present the result. Flag missing or invalid fields and show the user where the proposal came from.
  5. Record the user’s decision. Apply an accepted change through the application’s normal save path.

A valid structure is a useful first check. A price can be a correctly formatted number and still be the wrong price. Review the content against the original document before a change affects customers.

Decide what happens when the call fails

Write the failure path alongside the successful one. If the model times out, the interface should explain that the suggestion is unavailable and preserve the user’s input. If the output fails validation, keep it out of the save path and give the user a way to retry or continue manually.

Measure the outcome that matters to the workflow. For an import, that could be the number of entries a reviewer has to correct and whether a venue reaches a usable draft. Record how those observations were collected. Avoid treating a model response as proof that the whole task succeeded.

Sources

FAQ (Questions about adding AI to a web app)

Does an existing application need to be rebuilt?

An AI feature can often be added to an existing workflow through a server-side integration. The right scope depends on the app’s current data, permissions and user interface.

Should the model write directly to the database?

Start by identifying which changes need review and which existing application checks must run. A proposal reviewed and saved through the normal application path gives people a clear decision point.

How many examples do I need before building?

Begin with enough examples to cover the common task and meaningful exceptions. Add cases when real users find a failure that the original set missed.

What should I log?

Record enough to trace the request, outcome, validation failure and retry. Apply the application’s privacy rules to inputs and outputs.

How do I choose the first AI feature?

Look for a repeated task with available context and a result someone can review. Define what success looks like before selecting a provider.

Build a project

© 2026 All rights reserved.