Is AI Telling Shoppers Your Products Are Out of Stock? Here's Why (and How to Fix It)
Ever had one of those "wait, what?" moments when an AI assistant tells a customer your product is out of stock, but you know it's not? That's exactly the frustrating scenario a fellow store owner, Becky, brought to the Shopify community recently. Her thread sparked a deep dive into how AI agents actually "read" your online store, and the insights are gold for any merchant navigating the evolving digital landscape.
The "Out of Stock" Conundrum: What AI Sees vs. What You Show
Becky initially suspected her theme's backend code was the culprit, specifically a JavaScript dictionary like window.variantStrings = { addToCart: "Add to bag", preOrder: "Pre-order", soldOut: "Out of stock", unavailable: "Unavailable" }. She thought LLMs (Large Language Models) might be misinterpreting these UI labels as current product status. While a logical thought, experts like Maximus3 quickly clarified these are typically harmless. Sophisticated AI crawlers usually differentiate between inert UI text and actual product status. In fact, as Ploqo demonstrated, even when crawlers are served the exact same HTML a human sees, these UI strings are present but not the cause:

The real issue, as the community uncovered, lies in signals beyond what a human eye typically sees on a product page.
Decoding AI's Perspective: Structured Data & Dedicated Feeds
AI assistants don't just browse your page; they look for explicit, machine-readable instructions. Here’s what truly matters:
1. Your Store's Structured Data (Schema.org)
This is paramount. As Jarid and Appify_Commerce emphasized, AI agents heavily rely on Product schema, specifically the availability property. For an in-stock item, this must explicitly state https://schema.org/InStock.
A common problem, as Bristan_FARRE discovered on Becky's store (graes.co/products/night-c-a-p), is having multiple Product blocks. Themes, SEO apps, or review apps can sometimes inject duplicates. In Becky's case, one block was even invalid JSON due to an unescaped newline! While both blocks still reported InStock, conflicting or broken schema can absolutely confuse crawlers and lead to misinterpretations.
2. Shopify's AI Agent Feeds: robots.txt, llms.txt, and Shopify Catalog
This was a breakthrough insight from contributors like Robert_Dainowski and v.marychenka. Shopify now offers a separate, behind-the-scenes feed built specifically for AI agents. Agents are often instructed to prioritize this feed over your product page's raw HTML.
yourstore.com/robots.txt: This file guides crawlers. While it doesn't state stock, it can point agents to dedicated AI resources. You'll often see agent instructions like this:yourstore.com/llms.txt: This is a key agent surface. For Becky's store, it declared a UCP profile and an MCP endpoint with asearch_catalogtool, instructing agents to pass buyer country and currency for accurate data. An agent querying without this context might receive incorrect availability.

You can manage this within your Shopify admin under Sales channels > Agentic. The default "Allow Shopify to manage for me" enables the Shopify Catalog to publish your inventory to these agentic storefronts. Turning this off reveals "Shopify Catalog access," which, if disabled, can impact direct checkout and take days to stop sharing data.
3. The Role of Caching
Sometimes the simplest answer is best: an AI might be working from an outdated, cached version of your page. Icey.Lane and Maximus3 suggested asking the specific LLM for the exact URL and date it fetched the information to rule this out.
Your AI Stock Fix-It Plan: Step-by-Step
Ready to ensure AI agents report your stock accurately? Here’s your actionable guide:
Step 1: Scrutinize Your Product Page's Raw HTML for Structured Data
Forget the browser inspector; you need the raw source code.
- Open your product page.
- Right-click and select "View Page Source" (Ctrl+U on Windows/Linux, Cmd+Option+U on Mac).
- Search (Ctrl+F or Cmd+F) for "Product block" or "availability".
- Identify
Productblocks: Count them. More than one? Note their sources. - Verify
availability: Within each block, confirm"availability": "https://schema.org/InStock". AnyOutOfStockfor an available product is a red flag. - Fix invalid JSON: If you find broken JSON (like an unescaped newline in a description), edit your theme files (e.g.,
product-template.liquid) to escape characters or remove duplicates.
Step 2: Check Your Shopify AI Agent Feeds
These are crucial for AI-specific data sharing.
- Visit
yourstore.com/robots.txt(replace with your domain). Look for agent-specific directives. - Visit
yourstore.com/llms.txt. Review instructions for agents, especially regarding buyer context (country/currency). An AI not using this context could get stale or inaccurate data.
Step 3: Review Shopify Admin Settings for Agentic Sales Channels
Ensure your Shopify settings align with accurate AI reporting.
- In your Shopify admin, go to Sales channels > Agentic.
- Confirm "Allow Shopify to manage for me" is enabled to ensure your inventory is published to these channels. If customized, verify "Shopify Catalog access" is active.
Step 4: Confirm Product Publication & Address Caching
- Verify the product is actively published to your "Online Store" sales channel.
- If an AI reported an issue, try to get the exact URL and fetch date from it. This helps determine if caching is the culprit.
Navigating how AI interacts with your store adds a new layer of complexity to eCommerce. It’s no longer just about optimizing for human visitors or traditional search engines. Ensuring your structured data, dedicated AI feeds, and Shopify Catalog settings are accurate is paramount. It’s a bit like learning a new language, but one that guarantees your products are always presented correctly, no matter who (or what) is doing the "shopping." Staying proactive on these technical details can significantly impact your store's performance in this evolving digital landscape. If you're ready to dive into the world of online selling and need a robust platform that keeps pace with these innovations, consider starting a Shopify store today to leverage their evolving tools and community support.