Prompt

How do I set up recommendation rules for out-of-stock items?

Technology / Search & Discovery Tools3 observationsLast seen Nov 10, 2026

Latest observation

Nov 10, 2026OpenAI APIWeb search: off

If you mean product recommendation rules in a storefront/search platform, the usual approach for out-of-stock items is:

1) Decide what should happen to OOS items

Common options:

  • Exclude them from recommendations
  • Show them only if no in-stock alternatives exist
  • Push them to the bottom
  • Replace them with similar in-stock items
  • Keep them in recommendations for preorders/back-in-stock signups

2) Create a stock-based filter rule

Use a condition like:

  • inventory > 0
  • stock_status = in_stock
  • available = true

Then apply it to recommendation placements such as:

  • “Customers also bought”
  • “Similar products”
  • “Trending products”
  • “Frequently bought together”

3) Add fallback behavior

If your rule removes too many items, set a fallback:

  • First: recommend in-stock, same category
  • Then: recommend in-stock, similar price/brand
  • Then: recommend best sellers

4) Exclude specific out-of-stock cases

You may want to treat these differently:

  • Temporarily out of stock → hide from recommendations
  • Discontinued → exclude completely
  • Preorderable → allow in recommendations
  • Backorderable → allow with a label

5) Test the rule

Check:

  • Product detail pages
  • Cart recommendations
  • Email/push recommendations
  • Category page widgets

Make sure the rule works for:

  • logged-in vs guest users
  • regions/warehouses
  • variants vs parent products

Example rule logic

A simple rule might look like:

  • IF product stock is 0
  • THEN do not recommend it
  • ELSE include it in recommendation rankings

Or a ranking rule:

  • In-stock items: score +100
  • Low stock items: score +20
  • Out-of-stock items: score -1000

If you tell me which platform you’re using — for example Shopify, Magento, Salesforce Commerce Cloud, Algolia, Bloomreach, Adobe, or a custom system — I can give you the exact setup steps.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (3 observations for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.