What is Magento llms.txt?
Short answer Magento llms.txt is an optional Markdown overview of your store, with links and short descriptions that help a supporting tool find useful public content. You can maintain it as a text file or serve it through a generated route. It follows the llms.txt proposal; it does not replace your pages, XML sitemap or crawler rules, and publishing it does not guarantee that an AI service will use or cite your site.
- Define a useful reading path 01
- Select and describe the public pages 02
- Choose how Magento will serve it 03
- Inspect the response and follow the links 04
- Check freshness after content changes 05
Watch for this Promising rankings or citations from a published file
How to publish and maintain llms.txt in Magento
Choose a useful reading path, publish it, then check the actual output. The module behavior described below refers to release 1.5.7, rather than every Magento implementation.
-
01
Define a useful reading path
Start with the questions visitors ask: what do you sell, where is the documentation, and which policies apply? Choose pages that answer those questions directly. The llms.txt proposal uses Markdown headings and links to describe a site or a section of it. It is an optional convention, so decide who will use and maintain your file before building one. A small, stable site can maintain a text file manually; a changing catalogue may benefit from generated output.
-
02
Select and describe the public pages
Use clear link labels and short, factual descriptions. Include representative category pages, useful buying guides, support information and selected products. Leave out private account pages, session URLs and obsolete offers. In the example module, Priority URLs accepts lines such as
Size guide | /size-guide. Its Max CMS Pages default is 100, with eligible pages selected by most recent update first. That is a release default, not a recommendation to fill every available slot. Review the resulting selection for the store view you intend to publish. -
03
Choose how Magento will serve it
A static file and a generated route are both possible. For a concrete example,
mage2kishan/module-llms-txt1.5.7 builds/llms.txtthrough a storefront controller and caches the text; it does not supply a package CLI generator. Configuration is underStores > Configuration > Panth > LLMs.txt. The expanded/llms-full.txtand structured/llms.jsonformats have separate switches and different content. Their availability is a configuration choice, not part of every installation. See the extension details and setup documentation for package-specific controls. -
04
Inspect the response and follow the links
Make a GET request such as
curl -i https://example.com/llms.txtand inspect the status, content type and body. Expect readable Markdown, not a login page or bot challenge. Check the site name, summary, destination URLs and language, then open a sample from each section. The example module returnstext/plain; charset=utf-8and anX-Robots-Tag: noindexheader; disabling its text endpoint returns 404. Noindex on this response is not a command to remove the linked pages. If GET works but HEAD differs, inspect the web-server routing before changing your content. -
05
Check freshness after content changes
Generated output can remain cached after an edit. In module 1.5.7, the output cache lifetime is one hour. Its optional daily warm-up job is scheduled at
30 2 * * *; it clears the parsed-sitemap cache and requests enabled builders, which can still return an existing cached body. It is not a promise of immediate regeneration. When a targeted refresh is needed, usebin/magento cache:clean panth_llms_txtin the correct project, then fetch and inspect the output. Check any CDN cache separately. Include link and policy checks in the content-release routine.
When an llms.txt file may be useful
The value depends on the content, the tool using it and the time you can spend keeping it current. These are practical reasons to consider one.
-
You have documentation worth guiding readers through
A store with product documentation, compatibility notes or detailed support pages can offer a concise starting point for a tool that supports the convention. Link to the actual answers and keep their descriptions specific. The file is useful only when the destination content is accurate, accessible and maintained.
-
A tool or customer workflow explicitly uses the file
If a customer, documentation assistant or integration asks for llms.txt, test that exact workflow. Give the tool the file and check whether it follows the right links and answers the task accurately. That establishes usefulness for the tested workflow; it does not show that every search engine or chat assistant uses the file.
-
Your catalogue needs a short editorial overview
A focused overview can explain which categories fit particular needs without copying every product URL. Keep prices, stock and policy details on their maintained source pages unless you have a reliable refresh process. For multilingual stores, inspect each published store view instead of assuming the generator translates or selects the correct language automatically.
-
You can maintain it after the initial setup
Treat publication as an optional maintenance commitment. If important pages are broken, navigation is difficult or product information is incomplete, fix those issues first. Google says llms.txt does not affect Google Search visibility or rankings, including its generative AI features. A file can be an experiment for another system, but it does not replace that basic website work.
Three mistakes to avoid
Review the promises, destinations and published information before treating the file as ready to use.
-
Promising rankings or citations from a published file
A successful request proves that a client fetched a resource. It does not prove the resource was used in an answer, cited, or included in model training. User-Agent strings alone are not reliable identity checks either. Measure observable requests and referrals separately from actual answer citations, and record the tool, task and date when testing. Google explicitly says it ignores llms.txt for Search visibility and rankings. Do not sell publication as a shortcut to those outcomes.
-
Assuming a generator validates every destination
Inspect final URLs, redirects, canonical tags and page-level indexing rules yourself. Module 1.5.7 constructs links from its content sources; it does not fetch every page and extract its canonical tag. Manually entered priority URLs also need review. Keep the overview concise, but do not apply an invented universal 50KB limit: the proposal sets no such ceiling. Choose a practical size for the client you are testing and keep important links easy to find.
-
Publishing stale or private information
Check generated summaries, public business details and any enabled integrations before publication. Expanded output may include selected CMS policy bodies, while JSON can expose configured company information. Do not put secrets, customer data or private URLs in these public responses. Removing a link from llms.txt does not protect the destination. Use authentication for private content; robots.txt is a crawler policy, not an access-control system. Recheck the output when a page, policy or store configuration changes.
Magento llms.txt, frequently asked questions
-
Is llms.txt the same as robots.txt?
No. llms.txt describes useful content through a Markdown overview. robots.txt gives cooperating crawlers rules about which URLs they may request. Neither provides secure access control. Protect private content with authentication, and manage search indexing with the appropriate page or response directives. A noindex instruction must be accessible to the crawler that needs to read it; blocking the URL in robots.txt can prevent that instruction from being seen. -
Do LLMs actually read llms.txt yet, or is it speculative?
Some tools can consume the convention, but publishing a file does not establish that a particular assistant will discover or use it for a particular answer. Check the documentation and behavior of the tool you intend to support. A server-log request is evidence of a fetch, not evidence of a citation or training use. For Google Search, including AI Overviews and AI Mode, Google says these files do not affect visibility or rankings. -
Does Magento support llms.txt out of the box?
You need a publishing method for your project: a maintained static file, a custom route, or an extension. For example, mage2kishan/module-llms-txt 1.5.7 provides storefront controllers, builders and Admin configuration. It does not provide a package CLI generator. Installation still requires dependency checks and the normal deployment procedure for the project. Review the extension documentation rather than assuming a one-command setup or identical behavior across all Magento versions and hosting configurations. -
Should I list every product detail page in llms.txt?
Choose pages that help someone understand the catalogue and complete the intended task. There is no universal product count or 50KB ceiling in the proposal. A useful selection may include category overviews, buying guidance and representative products. Keep the XML sitemap for search discovery. In module 1.5.7, llms-full.txt adds selected CMS policy bodies to the generated overview when enabled; its name does not mean it exports the entire catalogue or every page in full. -
How is llms.txt different from a sitemap.xml?
An XML sitemap supplies URLs and supported metadata to search engines for discovery. llms.txt is a readable, curated starting point for a tool using the convention. It can add context and descriptions, but it does not replace a sitemap, navigation or the linked pages. The current proposal requires an H1 site name; context and grouped Markdown links are optional. It also recommends clean Markdown versions of useful pages; publishing an index alone does not create those versions. -
Can I block specific pages from appearing in llms.txt?
A manual file can omit any link. In the example module, Exclude CMS Identifiers accepts comma-separated CMS identifiers for the Key Pages list; it is not a universal URL-pattern exclusion for every section. Check priority URLs, sitemap input and optional integrations separately, then inspect each enabled output format. Omission is only a publishing choice. It does not stop other crawlers discovering the page, remove it from search, or make it private.
Need help reviewing your Magento llms.txt?
Share your storefront URL and the tool or workflow you want to support. I can check the response, linked content, store-view settings and refresh behavior, then recommend whether a static file or generated route fits the site.