What AI Agents Do When a Product Is Out of Stock

When an agent finds your product unavailable, it does not wait. It substitutes, and often substitutes a competitor. How stock signals and alternative guidance shape what it recommends next.

A human shopper who finds a product out of stock might join a waitlist, check back Friday, or buy the store's alternative. An AI agent acting on instructions behaves differently: it has a task to complete, a budget, and a shopper waiting, so it moves on. The question for stores is what it moves on to, and how much of that choice the store itself can influence.

Out of stock handling is quietly becoming a competitive surface. Agents read stock states, restock information, and alternative suggestions, and combine them into a decision in seconds. Stores that publish clear signals keep the sale in the family. Stores that publish a bare unavailable leave the substitution entirely to the agent's judgment.

A bare out of stock is an instruction to leave

Agents treat availability as a hard fact and everything else as soft context. A product page that says only out of stock gives the agent nothing to work with: no date, no alternative, no reason to return. Unless the shopper insisted on that exact item, the agent proceeds to the next store that satisfies the request. That is rational behavior given the information, and it means the wording of your unavailable state is doing quiet commercial work every day.

Restock information changes the decision

A specific restock expectation, a date or a window, stated in text, lets an agent offer the shopper a real choice: wait until Tuesday or substitute now. Vague coming soon language is discounted by agents and shoppers alike. If your store offers back in stock alerts, say so beside the stock state, with how the alert works. Agents relay concrete options. They cannot relay a hope, and they will not invent a date on your behalf, or worse, they will invent the wrong one.

Curate the substitution before the agent does

When an item is gone, the best alternative is usually another of your products: a different size, the newer model, the bundle that includes it. Put those suggestions in text on the page, with the reason each is a good substitute. An agent choosing between your stated alternative and a competitor's guess weighs your recommendation heavily, because it is sourced and specific. Stores that leave substitution to the agent's general knowledge are outsourcing a merchandising decision to a system that has never seen their margins.

Variants and partial stock are where agents stumble

One size in stock, three sold out, a color arriving next week: partial availability is where agents misread pages most, reporting an item as available when the needed variant is not, or unavailable when it is. State stock per variant in text, not only through disabled swatches and greyed text that agents cannot interpret reliably. Clear per variant signals prevent the worst outcome: an agent confidently sending a shopper to a page that cannot sell them what they came for.

Related reading

If this topic is useful, these earlier guides go deeper on connected questions: How AI Shopping Agents Read Your Shipping and Delivery Estimates, When an AI Agent Asks Your Store a Question: Chat, Contact Data, and Answer Readiness, and AI Agents Read Your Size Guides and Compatibility Data, So Write Them Clearly.

Frequently asked questions

Do AI agents wait for restocks?

Only when the shopper's instructions allow waiting and the store states a concrete restock expectation. Given a bare out of stock with no date or alternative, agents substitute, usually within the same task, and usually with whichever option is best documented.

Should stores show out of stock products at all?

Keeping the page live with clear status, restock information, and alternatives serves both shoppers and agents better than removing it. A removed page reads as a store that no longer sells the item at all, and the traffic and history the page earned go with it.

What makes an agent choose one substitute over another?

Documented fit: alternatives the store itself recommends with reasons, products with complete specifications and clear availability, and prices it can verify. Agents prefer options they can justify to the shopper from sources, which rewards stores that publish more usable information.

How should per variant stock be published?

As text attached to each variant: available, out of stock, or expected date, updated as stock changes. Color only signals and disabled controls communicate state visually but leave agents and many assistive technologies guessing.

Home / Blog