Most e-commerce teams look at product recommendations every day without ever seeing how they are made. A frame on the product page shows four items, a newsletter carries a row of suggestions, and when one of them looks wrong, the usual explanation is that the algorithm decided. Product recommendation technology is easier to read than vendor pages suggest. It is a short chain of data, methods and rules, and a marketer can follow most of its decisions without an engineer in the room.
The easiest way to see that chain is to write one recommendation frame down as a spec: which data feeds it, which method picks the products, which rules reshape the list, what fills the gaps, how often it relearns and how you will know it works. We will fill one in together, section by section. The finished page is more useful than a glossary, because it lets you trace a bad recommendation back to the layer that caused it.
The five layers between a shopper's click and a recommendation frame
Product recommendation technology works as a chain. Shopper behaviour and product data go in, a machine learning model or a simpler algorithm picks candidate products, business rules filter and reshape that list, fallbacks and stock checks fill or remove slots, and sorting decides what the shopper sees first. Measurement then tells you whether the chain earns its place.
Most explanations stop at the second link, the algorithm. In our view that is the wrong place to start looking when something goes wrong. When a frame shows something odd, the model may well have chosen sensibly while a filter set up months ago has quietly removed half of a good recommendation set, or a broad fallback has filled the gaps with products that have nothing to do with the shopper. Whether recommendations pay off at all is a separate question, covered in our guide to ecommerce product recommendations. Here we are opening the box.
Here is the empty spec we will fill in, one layer at a time. Copy the table and keep it next to you.
| Recommendation frame spec | Your entry |
|---|---|
| Placement and goal | |
| Data | |
| Method | |
| Rules, in order | |
| Fallback and availability | |
| Refresh | |
| Measure |
Fill in the first line now, before anything technical. Name one placement (a product page frame, a basket frame, a post-purchase email) and one goal for it: more purchases, a higher order value, or more clicks into the catalogue. A frame with two goals usually serves neither, and the goal decides several of the choices further down.
What data a recommendation engine learns from
Every recommendation engine learns from two kinds of data: what customers do and what your products are. Behavioural data is the trail shoppers leave: product views, items added to the cart, purchases, and in better setups returns and cancellations too. Product data comes from your catalogue or product feed: category, brand, price, colour, size, season, stock level and any custom attributes you maintain. Context (device, time, the page the shopper is on) adds a third layer in some systems.
In our platform, AI recommendations rely on three data sets: purchase events, the product feed and website visit data. Browsing history has limits worth knowing as well. We keep up to 40 recently viewed products per contact, with no time limit on how old a view can be, and the record is deleted after 90 days of inactivity. Most tools have limits of this kind, and they decide how far back "recently viewed" really reaches.
There is a subtlety in customer data that trips up many teams. Clicks and purchases are implicit feedback, and research on recommender systems, notably a paper on collaborative filtering for implicit feedback, points out two consequences. There is no negative signal: a shopper who never looked at a product may simply not have known it existed. And the data is noisy, because a purchase may have been a gift. One gift order for a child's toy can tilt an adult shopper's recommendations for weeks unless something limits it. Lists of saved products, such as wishlists and product collections, are a cleaner signal of intent when you have them.
Now fill in the data line: which events the frame uses, how far back, and which product fields must be complete in the feed. A colour filter on products with an empty colour field does nothing useful.
How recommendation models pick candidate products
This layer produces the shortlist of recommendations. There are a handful of methods, and most recommendation systems in ecommerce combine several of them, so the labels on a vendor's page matter less than knowing which algorithm runs where.
Popularity and hand-written rules
The simplest method ranks products by sales or views, optionally within a category. It needs no history from individual customers, which makes it the default for new visitors and the usual fallback. It is also a stronger baseline than it sounds: in the TV viewing data behind the implicit feedback paper above, a plain popularity ranking proved "surprisingly powerful". Its weakness is that everyone sees the same products.
Collaborative filtering
Collaborative filtering builds product recommendations from patterns across many customers. The item-to-item version, described in a 2003 paper on Amazon's recommendations, works from products bought together. As a later history of the algorithm puts it, item B is related to item A "if customers who buy A are unusually likely to buy B as well". The similarity table is calculated in advance, so the shop only looks it up when a page loads. The user-based version finds similar customers and recommends what they bought. Both need volume, and both are blind to a product no customers have bought yet.
A variant we use shows how these models read sequences. Say a shopper views products A, B, C and D. If other customers who viewed the same set usually ended up buying C, the model recommends C. Nothing about the products themselves tells it so; only the behaviour of similar customers does.
Content-based filtering
Content-based filtering compares product attributes from the feed: same category, similar price, same brand or material. It works on day one for new products and needs no purchase history at all. It is only as good as the feed, and it tends to recommend similar items again and again.
Visual similarity
Visual similarity uses machine learning on product images and compares the products themselves, on colour, shape, pattern and texture, and it matters most where shoppers buy with their eyes. The jewellery brand ANIA KRUK moved from standard recommendations based on previously viewed products and categories to visually similar products, and last-click sales in its post-visit campaigns rose by 64%. That is one store compared with its own earlier setup, but it shows how much the source of similarity can change the result.
Session-based recommendations
Many shoppers arrive without history. Session-based models work from the clicks in the current visit alone and predict the next product of interest, which suits stores where most visits are short and anonymous.
Goal-optimised machine learning
A further group of recommendation models is trained towards a single business objective. In our platform a model can target the probability of purchase, the purchase value or the probability of a click. Two models trained on the same customers will pick different products, because they are solving different problems, so the goal from the first line of your spec stops being a formality here.
| Method | What it needs | Where it works | Where it fails |
|---|---|---|---|
| Popularity | Sales or view counts | New visitors, fallbacks | Same products for everyone |
| Collaborative filtering | Purchase history from many customers | Cross-selling, "bought together" | New products, small catalogues with few orders |
| Content-based filtering | A complete product feed | New products, similar items | Repetitive suggestions |
| Visual similarity | Product images | Fashion, jewellery, homeware | Products bought for function, not looks |
| Session-based | Clicks in the current visit | Anonymous traffic | Long consideration cycles |
| Goal-optimised machine learning | Enough history to train on | Placements with a clear commercial goal | Thin data, vague goals |
Fill in the method line with one main method for the product recommendations in this frame and, if your tool allows it, the method behind it. Two is plenty for one frame; a third usually belongs in the fallback line.
Business rules that sit on top of the model
The model hands over a ranked list of recommendations. Rules decide what survives. Typical ones exclude products the customer has already bought, keep prices within a band around the product on the page, protect margin by leaving out heavily discounted items, or keep the season right so nobody is offered sandals in November.
Two details cause most surprises. Rules run in a sequence, and the order changes the outcome: filtering to one brand and then replacing products with similar ones gives a different list from doing it the other way round. In our Recommendation Architect, modifiers apply in exactly the order they are arranged, so it pays to write that order down. Similarity rules can also combine conditions with AND. Ask for the same brand, colour and gender at once and a mid-sized catalogue may return two products where you expected twelve.
Write the rules line as a numbered list, in the order your tool applies them. If you cannot say what that order is, find out before you change anything else. Our article on how AI Recommendations fill a product frame shows one platform's full sequence.
Cold start: new products, new visitors and empty slots
Cold start is the moment a recommendation engine has nothing to learn from. It comes in two forms.
A new product has no purchase history, so collaborative filtering cannot see it. Content-based filtering and visual similarity can, because they read the product itself. If you launch collections often, your frame needs one of them somewhere in the chain or new stock will never be recommended.
A new visitor has no profile, so personalised recommendations have nothing to start from. Popularity, session behaviour and the product on the current page carry the frame until the visitor identifies themselves, at which point their earlier browsing can be connected to their customer profile.
Both situations end in the same practical problem for product recommendations: empty slots. A fallback chain fixes it, and its order matters. Start with the most specific method and make each step broader, for example a goal-optimised model first, then products frequently bought together, then bestsellers in the same category. Be careful with the last step. A fallback that fills six slots with sitewide bestsellers completes the frame and quietly replaces relevance with volume.
Fill in the fallback line with up to three steps, and add one availability rule: whether out-of-stock products may appear. In most frames they should not.
How often recommendation models relearn, and how to tell if they work
Many recommendation systems refresh their models on a schedule, daily or weekly, while some signals, such as what the shopper has just viewed, are applied in real time. Both usually run side by side. Precomputed tables are not new: even with early-2000s technology, Amazon found it feasible to produce an updated list of related items for every product daily. Our goal-optimised models are retrained daily or weekly, which keeps them close to how customer behaviour changes from one season to the next.
Measurement deserves the same precision. Clicks on recommendations say little on their own, because a frame placed above the "add to basket" button collects clicks that would have happened anyway. Compare against a holdout group that sees no recommendations or a simpler method, and judge the frame on the goal you wrote in the first line. The measurement section of our recommendations guide covers holdouts in detail.
Fill in both lines: how often the model relearns, and the single metric and comparison that decides whether the frame stays. If nobody can name that metric, the frame has no owner yet.
The finished spec for a product page frame
Here is the spec filled in for an illustrative homeware store whose customers buy several items per order, with a large catalogue and frequent new collections. The store and its choices are an example, not a recommendation for every shop.
| Recommendation frame spec | Homeware store, product page frame |
|---|---|
| Placement and goal | Product page, below the description. Goal: increase order value |
| Data | Product views and purchases from the last 12 months; product feed with category, price, colour, material and stock complete for every live product |
| Method | Goal-optimised model trained on purchase value; visual similarity for products launched in the last 30 days |
| Rules, in order | 1) Exclude products bought by this customer in the last 365 days. 2) Exclude products priced below 10% of the current product. 3) Exclude the current product's own category |
| Fallback and availability | 1) Products frequently bought together with the current product. 2) Bestsellers in the same room category. Out-of-stock products never shown |
| Refresh | Model retrained weekly; viewed products applied in real time |
| Measure | Average order value of orders with a frame click, against a 10% holdout that sees the category bestsellers frame |
Two choices deserve a comment. Excluding the current product's category turns the frame into a cross-selling frame: someone looking at a sofa sees a rug and a floor lamp instead of eleven more sofas. That suits an order value goal and would hurt a frame meant to help undecided shoppers compare options. The price rule has a floor and no ceiling on purpose: the goal is a bigger basket, and the floor stops the frame filling up with cheap accessories that add little to the order.
Reading a bad recommendation backwards through the spec
When recommendations look wrong, work through the spec from the bottom up and leave the model until last. Poor results do not always mean the model is choosing badly: a filter, a fallback or a gap in the product feed can turn a good list of candidates into a bad frame, and each of those is quicker to check and cheaper to fix than the algorithm. We think most of the faults shoppers actually notice are of this kind.
| What the shopper sees | Layer to check first | What to change |
|---|---|---|
| The product they bought yesterday | Rules | Add or extend the already-bought exclusion |
| An out-of-stock product | Availability | Hide unavailable products, check feed refresh |
| The same bestsellers on every page | Fallback, then data | Tighten the fallback; check whether the main method returns anything for this visitor |
| An odd pairing, such as a toy next to a suit | Data | Behaviour such as gift purchases; add a category or price rule |
| A frame half empty | Rules | Loosen AND conditions or reorder the rules |
| Good products, wrong order | Sorting | Sort by the frame's goal, not by newest |
| Sensible products, no uplift in the holdout | Placement and goal | Rethink the placement or the goal, then the method |
The last row is the only one where the method may be at fault, and even then the goal is the first suspect. A frame that is technically right for a goal nobody wrote down will look broken to everyone.
Product recommendations in Manago AI
We built recommendations to be assembled the way this spec is written. In the Recommendation Architect you choose a base scenario (behavioural, product details or AI), add filters and similarity rules in the order you want, and chain up to three scenarios as fallbacks. Goal-optimised machine learning models train on your own store data and customers' behaviour, and the same strategy runs in website frames, emails, pop-ups and web push, with analytics by placement. See how it works on our product recommendations page.
Common questions about product recommendation algorithms
What is the difference between collaborative filtering and content-based filtering?
Collaborative filtering recommends products from the behaviour of many customers, such as items often bought together. Content-based filtering compares the attributes of the products themselves, such as category, brand or price. The first finds surprising pairings but needs history; the second works for new products but tends to suggest more of the same, which is why stores usually combine both.
How much data does a store need for AI product recommendations?
There is no single threshold. It depends on the size of the catalogue, traffic and how varied purchases are. A model needs purchase events, a complete product feed and visit data, and before training it is worth checking that the data covers the goal you set. Stores with little history can often import past transactions from their e-commerce platform first and use rules or popularity until the model has enough to learn from.
Can product recommendations work for anonymous visitors?
Yes. Without a customer profile, a recommendation engine works from what the visitor does in the current session, the product on the page and what is popular. Once the visitor signs in, subscribes or buys, their earlier browsing can be linked to their profile, and recommendations become personal from that point on. For new visitors, session-based and content-based methods carry most of the work.
Latest posts
Black Friday strategy for 2027: what 2026 data says about channels, timing and baskets
If you run marketing for an online store, you know how Black Friday goes. The discount has to be big enough to compete, but not so big that it kills the margin. Your emails land in inboxes already full of other offers. And while you're watching the campaign, someone else is worrying whether the site, the stock and customer service will hold up when the orders al...
Read moreFrom one generic email to full automation and personalisation
How “Four Starlings” Soapworks built its marketing around the customer lifecycle and, in a single quarter, linked 52,75% of its online store revenue to Manago AI campaigns.
Read moreWhat is an ESP, really? And why the term is starting to feel outdated
An ESP, or email service provider, is software that sends marketing and transactional emails to a list of subscribers on a business's behalf and manages the list, templates, deliverability and reporting. For an ecommerce store, choosing one now comes with a bigger decision: keep email in a dedicated ESP, or run it inside a platform that also holds customer data ...
Read more