How to add AI to an existing app

Where AI earns its place in a product you already run, how to start with one feature and a test set, and what to settle on privacy before launch.

By Ernesto Martínez, Founder, eMarDevPublished 4 min read

Most requests to “add AI” start from the wrong end. Someone sees a demo, a customer asks about it, and the brief becomes “we need AI in the product.” That’s how teams end up with a chat window nobody opens.

A better starting point is a job your users already do inside your app, slowly or by hand. If AI can do part of that job well enough, and you can prove it before launch, it’s worth building. Here’s how to find that job and ship it without surprises.

Where AI earns its place

In products that already have users, the AI features that pay off tend to fall into a few groups:

  • Reading documents. Pulling names, dates, totals and reference numbers out of PDFs, scans and photos, so nobody retypes what a customer already sent. It’s the core of paperwork automation.
  • Answering from your own content. Search that understands questions, over your help center, policies or product data, with a link to the source of every answer.
  • First drafts. Replies, summaries and reports that a person reviews and sends. The time saved is in the draft; the judgment stays with your team.
  • Sorting and routing. Tagging incoming requests, spotting the urgent ones and sending each to the right person.
  • Checking work against a rubric. Grading, reviewing or flagging, wherever the criteria can be written down. That’s what Lexopo does for exam practice, and we wrote up how its grading checks its own legal citations.

Where it doesn’t, yet

AI is the wrong tool when:

  • A rule would do. If you can write the logic as an if statement, write it as an if statement. It’s cheaper, faster and gives the same answer every time.
  • The answer must be exact and nobody checks it. Tax amounts, doses, legal deadlines. Let AI prepare the work, and let code or a person decide.
  • Nobody can say what a good answer looks like. If you can’t tell right from wrong for a task, you can’t test it, and you shouldn’t ship it.

Start with one feature and a test set

Pick one feature, tied to one task your users already do. Then, before anyone writes a prompt, collect real examples of that task with the answer you’d accept. Fifty to a hundred is a good start. That’s your test set.

It does three jobs:

  1. It tells you whether the feature works. You run every example and count how many come out right, instead of judging from a few good demos.
  2. It catches regressions. Every change to the instructions, the data or the model runs against the same examples, so you see what got better and what broke.
  3. It keeps you free to switch. AI models change quickly. With a test set, moving to a newer or cheaper model is a measured decision, not a leap of faith.

NIST’s AI Risk Management Framework treats this kind of measurement, before release and after it, as core practice. One feature doesn’t need the whole framework, but the habit scales.

Design for the wrong answer

Every AI feature is sometimes wrong. Good design makes that cheap:

  • Show the source. When an answer comes from a document or a policy, link to it so people can check.
  • Let people edit. Present drafts and extracted fields as suggestions, not finished work.
  • Keep a person on consequential steps. Anything that sends money, signs, deletes or reaches a customer gets a review step.
  • Treat outside content as untrusted. A document or web page your feature reads can carry instructions aimed at the model. OWASP puts this, prompt injection, first on its list of risks for applications built on language models. Limit what the feature is allowed to do, and check its output before acting on it.
  • Log and review. Keep inputs and outputs, with no more personal data than you need, and read a sample every week. That’s how you find the failures your test set missed.

Settle privacy before launch

Sending your users’ data to an AI model provider is like sending it to any other vendor:

  • Send only what the task needs. Leave out names and identifiers when the task doesn’t use them.
  • Get it in writing. Under the GDPR, a provider that processes personal data on your behalf needs a contract that sets out what it may do with that data (Article 28). Check where the data is processed and whether it’s used to train models.
  • Tell people when they’re talking to AI. The EU AI Act requires that people are told they’re interacting with an AI system unless it’s obvious. It’s good practice everywhere else too.
  • Update your privacy policy with the new purpose and the kind of provider involved.

Plan for the running cost

Most features cost nothing extra each time someone uses them. AI features do: every request has a usage cost. Before launch, estimate it per active user per month, set a limit per account, and cache answers that don’t change. It rarely sinks a project, but it belongs in the plan, not in a surprise on the first invoice.

How we approach it

For an existing product, an AI feature usually starts with our Discovery Sprint. We pick the task, build the test set with your team, try the approach on real examples, and end with a spec, a prototype and a fixed price for the build. The build then ships in milestones, each with a preview you can try.

See AI integration for what’s included, the AI assistant cost guide for typical ranges, or get a range for your own case in the estimator.

← All articles

More articles