Back to Learn

Course 10 min read

Inside an AI feature: models, RAG, tools and agents explained for product managers

The first four parts were about using AI in your own work: what it does, what to hand over, how to brief it and how to prototype with it. From here the course turns to the second job: AI inside the product your customers use. I haven't built one of these at work, so this isn't a war story. It's what I think a product person needs to know, and what they should ask the team, so the jargon stops being a wall.

The trick is to stop treating the words as a list to memorise. Each one answers a weakness in the layer before it. So I'll build one feature up from nothing.

The feature

Larder & Co is my made-up online kitchenware shop: pans, knives, small appliances and cookware sets, delivered to your door or collected from one of three stores. On every product page there's a box: "Ask about this product". A customer types, "Will this pan work on my induction hob?"

That's the whole feature. Let's see what it takes to answer well.

One feature, built up in layers

Layer 1A new member of staff on day one, with a short note on how to talk to customers

A model and a system prompt

The model writes the replies. The system prompt sets its role, tone and rules. It knows general cookware, but nothing about Larder & Co's range.

add

Layer 2Handing them the product catalogue to look things up in

The shop's own data (retrieval)

Before answering, the feature finds the right product page, spec sheet or returns policy and puts it in front of the model.

add

Layer 3Letting them phone the stockroom, not just read the catalogue

Tools (function calling)

The model can ask for live answers through APIs: "Is the 24cm pan in stock at the Cambridge store?"

add

Layer 4Letting them work out the steps themselves, and keep going until it's sorted

An agent (a loop)

The model chooses which tool to use next, looks at the result, and decides whether to carry on or answer.

wrap in

Around all of itThe shop's rules about what staff may promise and who to hand over to

Guardrails

Limits on what the feature may say and do. Part 7 covers them.

Each layer fixes a weakness of the one above it, and adds a new risk and a new cost. Most features don't need all of them.

Layer 1: a model and a system prompt

The first version is a language model (see Part 1) plus a system prompt: standing instructions the customer never sees. Something like "You are a helpful assistant for Larder & Co. Be friendly and brief. Only talk about Larder & Co products."

It will sound great, and that's the danger. It knows a lot about cookware in general, but nothing about this pan. Asked about induction, it may give a confident answer based on what pans are usually like. That's a fluent guess, and for a product page a wrong guess is a return.

Layer 2: give it the shop's own data

So you give it the facts. Before the model answers, the feature looks up the relevant material (this product's page, its spec sheet, the returns policy) and puts it in front of the model with the question. That's called retrieval, and the whole pattern is RAG, short for retrieval-augmented generation.

The "looking up" is usually done with embeddings: each chunk of text is turned into a list of numbers that stands for its meaning, so "works on induction" and "magnetic base, suitable for all hob types" land close together even though they share no words. That's the one plain sentence you need.

What matters for a product person is this: retrieval is only as good as your content. If the spec sheet is wrong, or the size guide lives in a PDF nobody maintained, the assistant will quote it faithfully. Ask: where does the content come from, who owns it, and how fresh is it? These are the content-quality problems you already know, now with a speaker attached.

Layer 3: let it use tools

Catalogue pages don't know whether the 24cm pan is in the Cambridge store right now. Stock changes by the minute, so it can't be pasted into a prompt. The fix is tools, also called function calling. The team describes a few actions the model is allowed to ask for, such as "check stock for this product at this store". The model doesn't run anything itself. It says "please call this", the shop's system makes the call and the result goes back to the model, which writes the answer.

If you've read what an API is, you already know the other half: a tool is usually an API call. So the same product questions apply. What does it cost per call? What happens when the stock service is slow or down? Which fields does it return?

Layer 4: an agent

Now a harder question: "Help me kit out a first kitchen for under £300, with one pan for induction, and tell me what I can collect this week." There's no fixed route. It has to search, compare, check stock and adjust to the budget.

An agent is a model given tools and a goal, and left to decide its own next step, in a loop: choose a tool, look at the result, decide whether to carry on or answer. It's powerful and unpredictable, because you can't list the path in advance.

Which is why the distinction between an agent and an agentic workflow matters. In a workflow, the team lays out the steps (look up the product, check stock, write the reply) and the model only does the thinking inside them. An agent chooses the steps. A workflow is easier to test, cheaper and safer. If someone says "we're building an agent", it's worth asking: does it need to choose its own steps, or would a fixed sequence do?

MCP: a standard plug

You'll also hear MCP, the Model Context Protocol. Without it, every assistant needs its own custom wiring to every system. MCP is an agreed standard for exposing tools and data, so an assistant that speaks it can plug into a system that offers it. Think of a universal charger. For a product person, it mostly changes the question from "can we integrate with that?" to "does it offer an MCP connection, and what are we allowing it to do?"

Guardrails

Around all of this sit the limits: what the feature may say, what it may do, and when it hands over to a person. I'll leave those to Part 7, because they deserve their own part.

Words you'll hear

Here's the jargon from this part in one place, with the sentence you're likely to hear it in.

Words you'll hear

Retrieval

Finding the right pieces of your own content and giving them to the model along with the question.

"Is the answer coming from retrieval or from the model?"

RAG

Retrieval-augmented generation: retrieval first, then the model writes an answer from what was found.

"We'll use RAG over the product catalogue."

Embedding

A list of numbers that stands for the meaning of a piece of text, so similar meanings can be found, not just matching words.

"We embed every product description."

Vector database

Where those embeddings are stored so they can be searched quickly.

"The product docs live in a vector store."

Tool use (function calling)

The model asks your system to run a defined action, such as an API call, and uses the result.

"It calls the stock function."

Agent

A model that picks its own next step and repeats until the job is done.

"Is it an agent, or just a chatbot with tools?"

Agentic workflow

Steps your team lays out in advance, with the model doing the thinking inside some of them.

"It's a fixed workflow, not a free agent."

MCP

Model Context Protocol: a standard plug, so an assistant can use another system's tools without a custom integration for each.

"Can we expose that through MCP?"

Test yourself

For each feature, which layers does it need? Open each one for the reasoning.

Test yourself: which layers does each feature need?

1"Write a friendly, 40-word description for a new set of ceramic mixing bowls", from the product team's notes.

Layer 1 only: a model and a clear system prompt (tone, length, words to avoid). The notes go in the prompt. No retrieval, tools or agent. A person still reads it before it goes live.

2"Does this casserole dish come with a lid, and is it dishwasher safe?"

Layers 1 and 2. The answer sits in the product data, so the feature needs retrieval to find it. No tools: nothing here changes minute by minute.

3"Can I collect this blender tomorrow from the Cambridge store?"

Layers 1 to 3. Stock and collection slots are live, so a tool must check them through an API. Retrieval helps with the collection policy, but the stock answer must never come from memory.

4"Help me kit out a first kitchen for under £300, with one pan I can use on induction, and tell me what I can collect this week."

All four layers, and Part 7's guardrails. The route isn't known in advance: it must search, compare, check stock and adjust against the budget. That is a job for an agent, so it needs careful limits on steps, spend and what it may say about price.

Try it on your own work

This takes about 20 minutes. Pick one AI feature you've seen or could imagine on your own product (a product page assistant, search help, a returns helper). On one page, write the layers it would need, from model and system prompt up to an agent, and for each layer add three things: what it needs (content, an API, a limit), who owns that, and what goes wrong if it's missing. Then mark the layer you'd skip in a first version. Most people find they can drop the agent, and that's usually the right call.

Next, Part 6 covers how to write tickets for a feature that is sometimes wrong, and how to test it.

Sources and further reading

I wrote this course with help from AI (Claude). Links and facts were last checked in November 2026.

  • AI
  • Product Management
  • Ecommerce

Published 23 Nov 2026 Updated 23 Nov 2026