Book a free call

How AI Product Recommendations Work in Ecommerce

AI product recommendations show each shopper items based on what they viewed and bought, plus what similar shoppers liked. Here is how to add them.

Hertiv engineering teamReviewed by a senior engineer
6 min read
How AI Product Recommendations Work in Ecommerce
On this page

Short answer

AI product recommendations in ecommerce show each shopper items based on their views, purchases and searches, plus what similar shoppers bought. They appear on product pages, in the cart, on the home page and in email, and they work best when you start with one placement and measure the extra revenue per visitor.

What are AI product recommendations in ecommerce?

AI product recommendations in ecommerce are suggestions a store shows each shopper based on what that person has viewed, bought and searched for, plus what similar shoppers liked. Instead of showing every visitor the same bestsellers, the store shows each person items they are more likely to buy.

The recommendations appear in familiar places: a "you may also like" row on a product page, a "frequently bought together" box in the cart, a personalised home page, and follow-up emails after a purchase. The AI behind them looks at patterns across many shoppers, such as which items are often bought together and which products people with similar tastes chose next.

Recommendation type What it shows Where it appears
Similar items Products like the one being viewed Product page
Frequently bought together Items often purchased in one order Product page and cart
Personalised picks Items matched to one shopper's history Home page and email
Recently viewed Items the shopper already looked at Header and home page
Trending now Popular items across the store Home page and category pages

Good recommendations feel helpful, not pushy. They show a small number of relevant items at the moment a shopper is deciding, and they never hide the product the shopper came for. How recommendation systems work explains the methods behind the suggestions in more depth.

Where do recommendations appear in a store?

Recommendations appear wherever a shopper makes a decision: the home page, the product page, the cart and the checkout, plus email and search results. Each spot has a different job. The home page sets the tone for the visit, the product page helps a shopper compare, and the cart is the last chance to add a useful extra item.

The product page is usually the strongest spot, because the shopper has already shown interest in one item. A "similar items" row helps when the first item is the wrong size, colour or price, while a "frequently bought together" box helps when the item needs an accessory. The cart works well for small, low-risk additions, such as a matching item or a refill.

Email is the other strong channel. A follow-up email after a purchase can suggest a refill, a matching item or a next step, and it reaches shoppers who have already bought once. The key is timing: an email sent too soon feels like spam, while one sent after the product has been used feels like a service.

What data do recommendations need?

Recommendations need three kinds of data: what shoppers do, what the products are, and what happens after the suggestion is shown. Behaviour data includes views, searches, cart additions and purchases. Product data includes category, price, brand, size and colour. Outcome data records whether a shown item was clicked or bought.

New stores face a cold-start problem: with few shoppers and few orders, there is not enough behaviour data to personalise well. The fix is to start with simple rules, such as showing bestsellers and similar items by category, and to add personalisation as orders grow. A store with a few hundred orders a month can already learn which items are bought together.

Data quality matters more than data volume. Product titles, categories and attributes must be consistent, or the system will group the wrong items together. Before adding recommendations, clean up the catalogue: one category per product, consistent sizes and colours, and no duplicate listings for the same item. AI for retail and ecommerce covers the data foundations a store needs before adding AI features.

How to add recommendations to your store

You add recommendations to your store by starting with one placement, using a ready-made tool or your platform's built-in feature, and measuring the result before you expand.

  1. Pick one placement. Start with a "similar items" row on the product page, where the effect is easiest to measure.
  2. Choose a ready tool first. Most ecommerce platforms have built-in recommendations or a plug-in; use one before building anything custom.
  3. Clean the catalogue. Fix categories, attributes and duplicates so the system groups the right items together.
  4. Set the rules. Decide how many items to show, what to exclude, and whether to hide out-of-stock products.
  5. Run a simple comparison. Show recommendations to half of visitors and compare clicks and orders against the other half.
  6. Expand what works. Add the cart, the home page and email placements only after the first one shows a clear gain.

A ready tool is the right start for most stores. A custom recommendation system only makes sense when the catalogue is large, the rules are unusual, or the ready tools cannot use your data. How to implement an AI recommendation system covers the custom route for teams that outgrow a ready tool.

Example (hypothetical): a fashion store adds recommendations

Example (hypothetical): a fashion store with 10,000 visitors a month adds a "similar items" row to its product pages. In the first month, 4% of visitors click a recommended item, which is 400 clicks. Of those, 25% buy something, which is 100 extra orders.

Each extra order is worth $60 on average, so 100 extra orders add $6,000 in revenue for the month. The recommendation tool costs $200 a month, so the store keeps $5,800 before product costs. The store also checks that the extra orders are not just replacing orders that would have happened anyway, by comparing against the month before the change.

The store then adds a "frequently bought together" box in the cart. It shows a matching accessory for the item in the cart, priced under $20, and it adds a further 40 orders a month. The store keeps both placements because each one was measured separately and each one paid for itself.

How do you know if recommendations are working?

You know recommendations are working when the shoppers who see them buy more, and buy more per order, than shoppers who do not. The two numbers to watch are the click rate on recommended items and the extra revenue per visitor. A high click rate with no extra revenue means the suggestions are interesting but not persuasive.

The cleanest test is a comparison: show recommendations to half of visitors and hide them from the other half for two to four weeks, then compare orders and revenue per visitor. This removes the effect of seasons, sales and traffic changes, which can otherwise make a bad change look good.

Watch for side effects too. Recommendations that only push bestsellers can hide new products, and recommendations that repeat the same items can bore returning shoppers. A monthly check of which products are being recommended, and whether new products ever appear, keeps the system honest.

What are the common mistakes?

The most common mistakes are showing too many recommendations, personalising before there is enough data, and never measuring the result. Each of these turns a useful feature into clutter.

  • Too many suggestions. A row of twelve items is a catalogue, not a recommendation; four to six relevant items work better.
  • Personalising too early. A new store with little order data should start with bestsellers and similar items, not personal picks.
  • Recommending out-of-stock items. Nothing frustrates a shopper more than clicking a suggestion that cannot be bought.
  • Never measuring. Without a comparison test, you cannot tell whether recommendations help or just look busy.
  • Only pushing bestsellers. New and slow-moving products never get seen, so the catalogue goes stale.
  • Ignoring privacy. Shoppers should know their behaviour shapes what they see, and they should be able to turn it off.

Recommendations work best when they are treated as a feature to measure, not a box to tick. AI shopping assistants cover the next step, when a store wants to guide shoppers with a conversation instead of a row of items.

Key takeaways

  • Recommendations use behaviour, product and outcome data to match items to each shopper
  • The product page is usually the strongest placement, with the cart second
  • New stores should start with bestsellers and similar items, not personal picks
  • Measure with a comparison test: half of visitors see them, half do not
  • Four to six relevant items beat a row of twelve
  • Never recommend out-of-stock items, and let shoppers turn personalisation off

Frequently asked questions

Do AI product recommendations increase sales?

They can, when the suggestions are relevant and measured. A store should compare shoppers who see recommendations with shoppers who do not, and look at extra revenue per visitor. If the test shows no gain, the placement or the data needs fixing, not more placements.

What is the difference between recommendations and a shopping assistant?

Recommendations show a row of suggested items based on past behaviour, while a shopping assistant guides the shopper through a conversation, asking questions and narrowing the choice. Recommendations suit browsing; assistants suit shoppers who need help deciding.

How much data does a store need for recommendations?

A store with a few hundred orders a month can already learn which items are bought together. Personalised picks need more data, so new stores should start with bestsellers and similar items by category and add personalisation as orders grow.

Are product recommendations the same as ads?

No. Recommendations suggest items from your own catalogue to help a shopper find what they need, while ads promote items, often paid for by a brand. Recommendations should serve the shopper first; if they only push high-margin items, shoppers stop trusting them.

Should small stores use AI recommendations?

Yes, through a ready-made tool or their platform's built-in feature. A small store does not need a custom system; a simple similar-items row and a frequently-bought-together box are enough to start, and both are easy to measure.

Do recommendations work for services as well as products?

Yes, the same idea applies. A booking site can suggest a related service, a course platform can suggest the next course, and a rental site can suggest similar properties. The data is different, but the pattern is the same: show the next useful thing.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Want product recommendations added to your store and measured properly? Talk to Hertiv.

A senior engineer replies within one business day. Or see our AI Product Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call