llms.txt for ecommerce: what belongs there, what doesn’t

Written by

in

,

The quietest file on the internet right now is /llms.txt. Most stores don’t ship one. Most owners I talk to haven’t even heard of it. And most of the writeups you’ll find online are about documentation sites — which is useful if you ship an SDK, and not very useful if you sell running shoes.

I think it’s also the file most likely to decide whether an AI agent cites your store in a shopping answer next year. So this piece is a practical, opinionated reference for the ecommerce case — a bit of a deep dive on one of the seven items from an earlier piece I wrote on being readable by AI agents. A docs site and a product catalogue send very different signals, and a well-written llms.txt is the shortest way to tell an agent what you’re actually known for.

1. What llms.txt is — and what it’s not

Jeremy Howard proposed llms.txt back in September 2024. It’s a plain markdown file at your site’s root — https://yourstore.com/llms.txt — and that’s really all it is. Think of it as a curated map, not an access control list. It says what you want AI agents to read; it doesn’t say whether they can.

Three files sit near each other in your root and people confuse them all the time. They do different jobs:

  • robots.txt — access control. Allow or deny crawlers. Binary.
  • sitemap.xml — full URL index for search engines. Exhaustive.
  • llms.txt — curated best-of for AI agents. Opinionated.

If sitemap.xml is your warehouse inventory list, llms.txt is your window display.

It’s still a convention, not an RFC. No standards body governs it (yet). But adoption is quietly compounding, and the upside of shipping one is wildly disproportionate to the fifteen minutes it takes to write.

2. The three files

Three related files have emerged around the convention. Honestly, you probably don’t need all three — I certainly don’t ship all three.

  • /llms.txt — short index with links to your key pages. The main file. If you only ship one, this is it. Aim for under 50 KB.
  • /llms-full.txt — the concatenated full text of those key pages inline. Saves the agent N fetches. Worth shipping if your catalogue is small and your policy pages are stable. Practical ceiling: around 500 KB.
  • /llms-ctx.txt — a context-trimmed variant for faster, cheaper agent runs. Rare in practice. Skip it for v1.

For almost every store: just ship /llms.txt. If your catalogue is small and your policy pages are stable, add /llms-full.txt too — it genuinely saves the agent round trips, and it’s easy to generate. Ignore /llms-ctx.txt until you have a specific reason not to.

3. The format

Pure markdown, specific shape. One H1 at the top (your store or brand name), an optional one-line blockquote as a summary, then H2 section headings, each with a bullet list of [Link title](URL): one-line description. Here’s what it looks like in full:

Keep descriptions tight. One line, no marketing adjectives. Agents cite facts, not vibes — a product is “waterproof, 280g, 4mm drop” rather than “our premium flagship trail companion”. The second one reads as filler and gets skipped.

4. llms.txt for ecommerce: what belongs, what doesn’t

This is where every generic llms.txt writeup falls apart: they’re written for documentation sites, where the structure is a tree of concepts with a few canonical entry points. A product catalogue is a completely different shape. Here’s what actually belongs in a store’s llms.txt:

  • Homepage, with a one-line description of what you sell.
  • Top-level category pages (not every facet combination).
  • Policies: shipping, returns, size guide, warranty, materials, sustainability. These are the pages agents cite most often in answers.
  • About or brand story page — the “who are you” page agents cite for provenance.
  • FAQ, if it’s real. Not SEO-filler FAQ.
  • Top 10 to 20 products that represent your catalogue. Not more.

And here’s what doesn’t belong:

  • The full product catalogue. Giving an agent all 10,000 products is the same as giving it none.
  • Cart, checkout, account, login, wishlist, order tracking. No public value.
  • Search results, facet filters, sort variants — anything with ?color=blue or ?sort=price.
  • Thank-you pages, 404s, duplicate canonical variants.
  • Blog or press, unless they’re your main content asset — then only the evergreen top five.

The thing to internalise is “top N, not all N”. llms.txt is a quality signal, not an exhaustive index. That’s what sitemap.xml is for. Curate ruthlessly — if an agent summarising your store couldn’t name what you’re known for after reading the file, you’ve included too much.

Which ten to twenty products? Pick your hero SKUs: the ones your best customers actually mention, the ones your merchandiser puts on the homepage, the ones you’d demo on a pitch call. If you sell 500 running shoes, five of them represent the brand. List those five. The other 495 live in sitemap.xml and they’re fine there.

5. Common mistakes

Six patterns I keep running into that silently hurt citations.

  • Copying sitemap.xml wholesale. Every other mistake on this list follows from this one. llms.txt is curated. sitemap.xml is comprehensive. Keep them separate.
  • Tracking parameters in URLs. ?utm_source=llms defeats the purpose. Use clean canonicals.
  • Non-canonical variants. Listing /products/x1?color=black instead of /products/x1. If the URL changes based on options, link to the canonical form.
  • Blocking the same agents in robots.txt that you’re inviting in llms.txt. Check your robots.txt doesn’t Disallow: / for GPTBot, ClaudeBot, PerplexityBot, Google-Extended.
  • Stale links. Your relaunch moved /shop/items/* to /products/* and your llms.txt still points at the old paths. 404s teach agents to stop reading the file.
  • Marketing copy instead of facts. “Our premium flagship product” is unquotable. “Trail-running shoe, 280g, 4mm drop, Portuguese-made” is a shopping answer waiting to happen.

6. Who actually reads llms.txt in late 2026

Honest answer to the question everyone asks. Nothing in this section is official — none of the vendors below publish formal support docs for llms.txt — but all of it is observable in agent behaviour and server logs if you watch for it.

  • Perplexity — reads and uses it. Routinely cites llms.txt-listed pages in shopping and research answers.
  • ChatGPT with web browsing — fetches /llms.txt opportunistically when GPT visits a domain. Uses it to decide which pages to read next.
  • Claude (search and fetch tools) — reads it when an agent is pointed at your site, and uses the index as its retrieval plan.
  • Google Gemini / AI Overviews — inconsistent in practice. No public statement. Citation behaviour has been observed but unreliably.
  • Open-source agents (LangChain-based pipelines, autonomous frameworks, custom retrievers) — a common pattern is to probe /llms.txt first before falling back to crawling.
  • Bing, DuckDuckGo, Yandex — no visible support.

My honest reading: llms.txt is already load-bearing in the retreival ecosystem that drives Perplexity, Claude and ChatGPT. Adoption is uneven, sure, but the asymmetry works in your favour — the cost of shipping one is fifteen minutes, and the cost of not shipping one compounds every quarter as more agents check for it first.

7. Generating and updating it

The right generation strategy depends on your stack. The right update cadence is “whenever your top-products list changes” — which for most of the stores I work with means once a month, give or take.

Static sites (Framer, Astro, Hugo, Next.js): commit llms.txt to the repo and ship it with each release. Treat it as a first-class source file.

WordPress: a few plugins exist as of late 2026 but honestly, they’re mostly immature. For most sites, a small snippet in a mu-plugin keeps it under your control and avoids an extra dependency:

Shopify: no native support here. Either use a Liquid page with a text/plain output, a dedicated app, or host the file on a subdomain you control. Webflow and Framer: use their static file options with the right MIME type and you’re done.

One more thing on updates: if your URL structure changes, update llms.txt first and only then redirect the old URLs. Otherwise agents hit 404s before your redirects land, and they learn to stop trusting the file. I’ve seen this kill citations after a migration more than once.

8. Verify yours works

Four checks, in this order. Run them after your first publish and then whenever you edit the file:

  • The response must be 200 OK with Content-Type: text/plain. Plain text renders everywhere; text/markdown fails on some agents.
  • Every URL in the file must return 200. No 404s, no redirects to different URLs.
  • The markdown must parse — a broken list breaks the whole index.
  • Final check: paste the content of your llms.txt into an AI agent and ask “based on this file, what does this store sell?”. The answer should match your positioning. If it doesn’t, your file is the problem, not the agent.

If you’re reading this at 11pm and want to just get started: write a twenty-line llms.txt with your homepage, your top five policy pages, your top ten products, and your about page. Ship it tonight. Audit the URLs tomorrow. Put a monthly reminder somewhere you’ll actually see it.

The file costs essentially nothing to ship, and every quarter more agents respect it. The cost of not shipping it is becoming invisible to exactly the kind traffic that’s growing fastest — the shopper who just asked ChatGPT “what’s a good trail shoe under €150 made in Europe” and expected a real answer.

Comments

Leave a Reply

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

Let’s see if we should work together.

Thirty minutes, no pitch.

Or email hello@samuelsilva.pt