Technology · 15 min read

Putting an AI agent in your product:
the decision framework before the first prompt

AI agent in your product: what it does better than a workflow, the 3 conditions to meet before the first prompt, and the threshold where it becomes a risk.

Thanaël Fontaine
Thanaël Fontaine Product Manager · Management consultant

Every quarter, the same question comes up in leadership meetings: "So when do we put an AI agent in the product?" A competitor has announced one, an investor brought it up, a demo impressed everyone. The question arrives phrased as an obvious next step, with a date attached rather than a reason.

It is the wrong starting point.

The right question is not "when", it is "for which task, and what happens when it gets it wrong". An AI agent is an excellent tool for a small family of problems, and a generator of debt and incidents for everything else. The decision is made before the first line of prompt, on one page, with three conditions. Here is the framework I use to make it.

In the no-code, low-code and automation guide, I already set one rule: generating code is not maintaining it. Agents are the next floor up. They no longer just generate code, they make decisions inside your product, on behalf of your users. All the more reason to scope before you build.

1. What is an AI agent, and how is it different from a workflow?

An AI agent is a program that receives a goal rather than a sequence of steps, chooses by itself which actions to chain (look something up, call a tool, draft, try again) and decides when it is done. A workflow, even one full of AI, follows a path someone drew in advance: if this, then that.

The difference is not technical, it is about accountability. In a workflow, you decided the sequence, and every step can be tested on its own. In an agent, the model decides, on every run, and two runs with the same input can take two different paths.

Put simply: a workflow is predictable and rigid, an agent is flexible and unpredictable.

Neither is better. They do not solve the same problem, and most "agent" projects you see are in fact workflows in disguise, more expensive and less reliable than if they had been built as workflows.

2. What an agent genuinely does better than a workflow

An agent wins when the path cannot be drawn in advance. Not because nobody can be bothered to draw it: because it changes with every case. Three situations keep coming back.

Notice what these three situations share: variability on the way in, and a human able to judge what comes out. Keep that in mind, it is half of the framework.

3. What a workflow does better than an agent (which is almost everything else)

As soon as the path can be written down, write it down. A workflow costs less per run, can be tested, can be debugged, and behaves tomorrow the way it behaves today. An agent makes more calls to the model to reach the same result, and charges you for its flexibility even when you do not need it.

Cases where a workflow wins outright:

The most robust answer is often hybrid: a workflow that holds the structure, and one call to the model at a single, well-bounded step, for instance to classify a request or extract three fields from free text. That is not an agent, and that is perfectly fine.

The question is not "can we do this with an agent?". You almost always can. The question is "what does the agent bring that a written path would not?".

4. The three conditions to meet before writing a prompt

When a case survives that first sort, three conditions remain. If a single one is missing, I do not start the project; I reframe it until the condition is met, or I shelve it.

These three conditions have one thing in common: none of them is about technology. They are about organisation. That is why they are settled at the decision-maker's level, not by the engineering team.

The one-sentence test

If you cannot write, on a single line, "the agent has succeeded when..." and then "if it gets it wrong, it is caught by...", you do not have an agent project yet: you have an agent wish.

5. When is an AI agent a bad idea?

An agent is a bad idea as soon as the cost of an error exceeds the value of the flexibility it brings. That is the threshold. It does not depend on how good the model is, it depends on your business.

A few signals that tell you the line has been crossed:

The most common trap is not the agent that fails outright. It is the agent that succeeds eight times out of ten: enough to put it in production, not enough to trust it. The other two cases always land on someone: your support team, your engineers, or your customer.

6. The page to write before the first prompt

Everything above fits on one page, and that page is the real deliverable of the decision. It is written before choosing a model, a vendor or a framework. Here is what it contains.

This page has a valuable side effect: it makes disagreements visible. Product thinks the agent should do everything, support thinks it should send nothing on its own, leadership thinks it will cost next to nothing. Better for those three views to meet on a page than in an incident.

7. How do you introduce an agent without betting the product?

By granting autonomy in stages, and only moving to the next stage when the measurements justify it. It is the same logic as the approach described on this site, with its pilot sprint: small, measured, then widened.

Many projects never need stage 3. An agent that prepares well and that a human approves in ten seconds often creates more value, with less risk, than an autonomous agent that has to be watched constantly. Stopping at stage 1 is not a failure: it is often the right architecture.

What actually matters here

Putting an AI agent in your product is not a technology decision, it is an accountability decision: who judges the output, who catches the error, who pays the bill. The models will change every six months; those three questions will stay.

A well-scoped agent is one of the most useful things a product can add today. A badly scoped agent is a demo that was put into production. The difference is not in the prompt: it is on the page written before it.


Further reading

This scoping is exactly the technical side of the 360° product audit: looking at an AI project before it costs anything, sorting what belongs to an agent and what belongs to a workflow, writing the page that makes the decision hold. The choice of model comes afterwards, and it is almost always the easy part.

An AI agent project on the table?

I can help you decide before you build: agent or workflow, the three conditions, the scoping page, and the first stage to test. An outside view at the moment it costs the least.

See the Audit 360° offer (technical side)

Let's take 30 min →