Technical for Shopify stores

Can I add an llms.txt file to a Shopify store?

The short answer

Yes. At the time of writing Shopify serves an llms.txt file for stores automatically, with the same content as a default agents.md file it generates, and a developer can change it by adding an agents.md.liquid or llms.txt.liquid template to your theme. No major AI company has confirmed that its tools rely on llms.txt, though, so editing it is a low-priority job for most stores.

How llms.txt works on Shopify now

An llms.txt file is a plain text or Markdown file placed at yourdomain.com/llms.txt that summarizes a site and points to its key pages. It is a proposed convention, not a standard that AI companies have adopted.

For a long time Shopify merchants needed an app or a URL redirect to serve one, because files uploaded through the admin are served from Shopify's file CDN, not the store's root. That has changed. At the time of writing, Shopify's developer documentation says every store has a default agents.md file, and that /llms.txt and /llms-full.txt serve the same content unless you override them. Open yourstore.com/llms.txt to see what yours says today.

To change it, a developer adds a template in the theme code editor:

  • agents.md.liquid controls /agents.md, and the two llms paths fall back to it, so one template covers all three.
  • llms.txt.liquid overrides /llms.txt alone, if you want it to differ from the others.

Advice about apps and redirects mostly predates this. Check Shopify's current documentation, because the feature is new and may change.

What llms.txt will and won't do for a store

There is no public confirmation from OpenAI, Google or the other major AI companies that their assistants use llms.txt when deciding what to say or which products to show. Google representatives have said publicly that Google Search does not use it. So adding one is unlikely to change whether ChatGPT names your products. The details are in whether ChatGPT reads llms.txt.

What does affect AI answers for a Shopify store is more ordinary: product pages that describe the product fully, accurate prices and stock, clear collection pages, reviews and coverage on other sites. An llms.txt file doesn't fix any of those.

When it is worth editing

Shopify's default file costs nothing, so there is little reason to remove it. If you or an app customize it, just make sure it doesn't list discontinued products or old prices, since that would be one more source of wrong prices in AI answers. And be wary of anyone selling llms.txt as the centerpiece of AI visibility work for your store.

Related questions

More questions from Shopify stores about AI crawlers and technical AI SEO

  • Can AI crawlers read a Shopify store?Usually, yes. Shopify themes send product titles, descriptions, prices and collection pages as ordinary HTML, which AI crawlers such as OAI-SearchBot and GPTBot can read without running JavaScript.
  • How do I allow or block AI crawlers on a Shopify store?On Shopify you change robots.txt by adding a robots.txt.liquid template to your theme and editing the rules there, which Shopify documents in its help center.
  • How do I add structured data to a Shopify store?Most current Shopify themes already output Product structured data with the name, price, availability and images, so the first step is to check what your theme produces with Google's Rich Results Test.
  • Is Shopify a good platform for AI search visibility?Shopify is a solid technical base: pages are server-rendered, sitemaps and canonical tags are handled for you, and product data can be fed to Google and other channels without much effort.
  • Will moving my store to Shopify affect my AI visibility?It can, mostly because a move to Shopify changes your URLs: products move to /products/ and categories to /collections/, so every old address needs a redirect.
  • Does Shopify's default robots.txt block GPTBot?Shopify's default robots.txt has not, in the versions publicly documented, included a rule blocking GPTBot or OAI-SearchBot; it is mostly aimed at cart, checkout, account and filtered collection URLs.
  • Do Shopify's duplicate product URLs confuse AI tools?Not usually. Shopify can show the same product at /products/name and at /collections/collection-name/products/name, plus variant URLs, but it sets a canonical tag pointing to the main /products/ address, which search engines use to pick one version.
  • Is the product schema in my Shopify theme enough for AI shopping results?Rarely on its own. A typical Shopify theme marks up the product name, price, availability and images, which is a good base, but it often leaves out brand, product identifiers, ratings and detailed attributes, and AI shopping results also draw on product feeds, the page's written content and third-party information, not just on-page schema.

llms.txt and AI-specific files - questions every business asks

Next questionHow do I add structured data to a Shopify store?

Find out whether ChatGPT and other AI tools recommend your Shopify store

Get an AI visibility audit showing whether ChatGPT and other AI tools recommend your Shopify store when people ask for what you offer, which competitors they name instead, and how you compare.

Request my AI visibility audit