How to Use AI to Create Product Recommendation Rules

Use AI to turn your own sales data into plain-English rules for what to recommend, to whom, and when — then you translate those rules into the conditions your email tool or store engine can run. In practice that means handing a model your order history and product catalog and asking: which products get bought together, which purchase reliably leads to a second one, and what should we show a buyer of X next? What comes back is a draft rulebook — “buyers of the starter kit reorder pods within 30 days,” “anyone who bought the frame needs the mounting bracket” — that you check against reality and load into your automations. The model proposes the logic. You approve it, and you decide where a human recommendation still beats an algorithm.

This is the mechanics piece: writing the rules. If you’re still deciding whether AI-driven recommendations are worth it at all, start with how AI can help ecommerce stores personalize product recommendations and come back here to build them.

The real problem: recommendation blocks that recommend nothing useful

Most stores already show “you might also like” somewhere. The trouble is what fills it. Too often it’s a random bestseller grid, or “customers also viewed,” bolted on and never tuned. A customer who just bought a large dog crate gets shown three more dog crates. Nobody buys a second crate that week. The slot earns nothing.

The instinct is to blame the feature. The real issue is that no one wrote sensible rules for it. “Show related products” is a setting, not a strategy. Related how? Bought-together, complementary, upgrade, replenishment, next-in-a-series — those are five different logics, and a store that treats them as one gets mush.

Why generic recommendation widgets underdeliver

Off-the-shelf “frequently bought together” blocks lean on volume. They surface whatever co-occurs most across all customers, which on a small or mid-size catalog often means your two or three bestsellers show up next to everything, relevant or not. That’s fine for Amazon’s data scale. On 10,000 orders it produces confident nonsense — pairings that are common because those items are common, not because they belong together.

And a widget can’t know intent. Someone who bought a camera body and someone who bought a phone case both trigger “accessories,” but the first is early in a build-out worth hundreds more and the second is basically done. Same feature, wildly different opportunity. Good rules encode that difference. Default widgets flatten it.

There’s a quieter cost, too. When recommendations are visibly dumb, customers stop trusting the block entirely — they learn to skip it, the way they learned to skip banner ads. Recovering that attention later is harder than earning it once with picks that actually make sense.

⚡ Recommended ecommerce tool
Set it once. Sell automatically.
Turn more of your existing traffic into revenue with automated email and SMS flows.
✓ Recover lost sales
✓ Increase repeat purchases
✓ Get more from paid traffic
START WITH OMNISEND →
 
Already paying for traffic?
🥇 Get more revenue from the traffic you already have.

Where the revenue leaks

Cross-sell and replenishment are usually the cheapest revenue a store has, because the customer already trusts you enough to have paid once. Illustrative math:

  • 500 orders a month, average €50
  • A well-targeted post-purchase recommendation converts, say, 4% of buyers into a second small order averaging €25
  • That’s 20 orders, €500 a month, from people already in your list

Miss it — because your block shows irrelevant items or you never built the rules — and that €500 walks. Over a year it’s real money you left on the table while paying full price for new traffic.

The practical solution: build the rulebook in layers

1. Pull the raw material. Export order history (what sold with what, and in what sequence), your product catalog with categories and attributes, and any margin data. The sequence matters as much as the pairing — AI can spot that product A tends to be followed by product B weeks later, which is a replenishment or next-purchase rule, not a bought-together one.

2. Ask the model for candidate rules, with evidence. A prompt like: “From this order data, list product pairings and purchase sequences worth turning into recommendation rules. For each, state the rule in plain English, how often it occurs, the typical time gap, and whether it’s complementary, an upgrade, or a repeat purchase. Flag any pairing that only looks strong because one item is a bestseller.” That last clause fights the volume-bias problem head-on.

3. Sort rules by type, because each drives a different automation:

  • Complementary (bought-together): show at or right after purchase. Frame → bracket.
  • Consumable / replenishment: time-triggered before they run out. Pods 25 days after the machine.
  • Upgrade / next-tier: for repeat buyers who’ve outgrown the entry product.
  • Category expansion: buyers of one line who statistically move into an adjacent one.

4. Add human sense-checks the data can’t provide. AI sees correlation. It doesn’t know the bracket is out of stock, that two items pair often only because they were in the same launch bundle, or that recommending the cheaper accessory undercuts a better upsell. Overlay margin, stock, and brand judgment. Some rules you’ll kill even though the numbers love them.

5. Write each rule in tool-ready form. Turn “starter kit buyers reorder pods in ~30 days” into the actual condition: segment = bought SKU 1024, timing = 25 days after order, show = SKU 1109, exclude = anyone who already reordered. That translation is the whole point — a rule you can’t express as conditions isn’t a rule, it’s a wish.

What to automate

For a replenishment rule as the worked example:

  • Trigger: order containing the consumable product.
  • Segment: first-time and repeat buyers of that SKU who haven’t reordered.
  • Timing: a few days before the expected run-out (from the model’s typical-gap figure, minus a buffer).
  • Channel: email, with SMS as an option for time-sensitive reorders.
  • Content: the specific product, one-click reorder, and a genuine reason to act now (running low, not a fake deadline).
  • Goal: reorder rate and second-purchase rate, not opens.

A store example

A coffee equipment store exports a year of orders. AI flags that machine buyers who also bought a grinder reorder beans within roughly three to five weeks, while machine-only buyers rarely reorder at all. Two rules fall out: a bean-replenishment flow timed to 21 days for the grinder-owning segment, and a grinder cross-sell for machine-only buyers first, since without it the replenishment revenue never materializes. Neither rule is obvious from staring at the catalog. Both are obvious once the sequence data is grouped. (Illustrative example — your sequences will differ.)

How to measure

  • Recommendation click and conversion rate, split by rule type — replenishment and cross-sell will behave very differently.
  • Second-purchase rate and time between first and second order.
  • Revenue per recipient for the flows driven by each rule.
  • Margin, tracked alongside revenue — a rule that lifts orders but pushes low-margin add-ons can lose you money while looking like a win.

Kill or rewrite any rule that underperforms after a fair run. A rulebook is meant to be pruned.

Where Omnisend fits

Writing rules is one thing; running them is where a tool matters. You need product data flowing in, segments that update as people buy, and recommendation blocks or automations that fire on the conditions you defined. I use Omnisend for this in my own stores — product-based automations, dynamic recommendation blocks, and segment conditions map cleanly onto the kind of rulebook above, and after testing it against Klaviyo I found the setup quicker and the pricing friendlier for a lean store. It won’t invent your rules, and it won’t overrule a bad one for you. It runs the good ones without you touching them. Omnisend is an affiliate partner of Shopimation; the free tier is enough to build and test a first rule.

Your next step

Export one year of orders and run a single “candidate rules with evidence” pass this week. Pick the one rule with the clearest sequence and build it first. To wire it into a real flow, see how to use AI to build product-specific email automations; to make sure you’re targeting the right buyers with it, how to use AI to analyze ecommerce customer segments pairs naturally with the rulebook. When you’re ready to connect the recommendation copy to the behavioral trigger, how to combine AI content creation with behavioral automation shows the join, and how to use email automation to increase customer lifetime value puts the whole thing in the retention picture.

⚡ Unlock more revenue from your traffic
Turn your existing traffic into automated revenue.
Recover lost sales, increase repeat purchases and keep generating revenue from customers you have already paid to acquire.
✓ Recover lost revenue
✓ Increase repeat purchases
✓ Get more from existing traffic
★ Recommended
Done for you
Want us to build it for you?
Welcome · Browse · Cart Recovery · Cross-Sell · Win-Back
BUILD MY AUTOMATIONS
 
One-time implementation · No agency retainer · You own the complete setup
Do it yourself
Prefer to build it yourself?
Start with the ecommerce automation platform we recommend.
START WITH OMNISEND
 
★★★★★ Rated 4.7/5 by 100,000+ stores
Less manual work. More revenue from the traffic you already have.

Leave a Reply

Your email address will not be published. Required fields are marked *