WooCommerce stores run on WordPress, which you control yourself. That is good news: nothing on the platform stands in front of your domain root. Publishing the file is easy. Choosing how to maintain it is the real work. You can write it by hand and upload it yourself, or you can let a search plugin build it for you. Either path can work well. Running both kinds of generator at once is where trouble starts.
Platform screens change over time. If a menu name in this guide does not match what you see, check the vendor docs linked in Sources for the current path.
An llms.txt file is a short briefing for AI tools, kept at your domain followed by /llms.txt. It opens with your business name and a brief summary, then lists your most important pages with a short note on each. It helps AI assistants answer questions about your business with your best pages in view, instead of whatever scattered pages they happen to find.
Start by picking one method
You have three sound options. Write the file yourself and place it in your web root. Turn on the llms.txt feature in Yoast SEO, which is free and has been included since version 25.3, with custom controls added in version 25.6. Or turn on the LLMs Txt module in Rank Math. Pick one and stick with it.
One pairing is safe, and it surprises people. If you already have a hand written file in place, Yoast will not replace a file it did not create. It steps aside and leaves yours alone. So a hand written file plus Yoast switched on is not a clash. The clash to avoid is two automatic generators, each writing its own version. Then nobody, including you, knows which file AI tools are actually reading.
What belongs in the file
Whether a person or a plugin writes the first draft, the contents follow the same shape: your name, one paragraph about what you do, and grouped links with one line descriptions. Keep it focused on pages that earn their place. Your main shop page, your top product categories, and your shipping and returns policy usually belong. Thin blog posts and filler pages usually do not.
Here is a fictional running shop example, to show the shape:
# Trailhead Running Co.
> Trailhead Running Co. sells road and trail running shoes, apparel, and accessories from a neighborhood shop, with free gait analysis in store and online ordering across the country.
## Shop
- [Trail shoes](https://examplerunning.com/shop/trail-shoes): Trail shoes sorted by terrain, grip, and cushion level.
- [Road shoes](https://examplerunning.com/shop/road-shoes): Road shoes sorted by pace, fit, and support needs.
- [Apparel](https://examplerunning.com/shop/apparel): Shorts, tops, and layers for training in heat, cold, and rain.
## Guides
- [Choosing trail shoes](https://examplerunning.com/guides/choosing-trail-shoes): How to match a shoe to terrain and weekly mileage.
- [Gait analysis](https://examplerunning.com/guides/gait-analysis): What the in store analysis covers and how to book it.
## Policies
- [Shipping and returns](https://examplerunning.com/pages/shipping-returns): Free returns within 60 days on unworn shoes.
## Optional
- [Training notes](https://examplerunning.com/blog/training-notes): Short notes on routes, races, and gear care.
Use your own business and your own links. This example is only there to show the layout.
If you use a plugin
In Yoast, open SEO, then Settings, find the site features area, and switch the llms.txt feature on. Yoast will build the file from your content and refresh it on a schedule. Since version 25.6 you can shape what it includes, and you should. The automatic pick is drawn from your pages in general, not from your sales priorities. In Rank Math, switch on its LLMs Txt module from the Rank Math dashboard and set it up under its settings. Plugin menus move between versions, so if a toggle is not where you expect it, check the plugin's own current docs before hunting further.
Then comes the step people skip: read what the plugin produced. A generator understands your posts and pages. It does not understand your business. It may list a dozen blog posts while leaving out your best selling category and your returns policy. Add the money pages yourself, and trim the thin pages it pulled in. That review is the difference between a file that exists and a file that helps.
If you write it by hand
Write the file on your computer and upload it to your site's web root, which is the public_html folder, beside wp-config.php. Use SFTP or your host's file manager for the upload. Keep it out of the media library. The media library rewrites file paths, so a file placed there will not end up at /llms.txt.
Verify the result
Type your domain followed by /llms.txt into a browser. You should see plain text and a successful load, which is a 200 status in technical terms. If a hand written file and a plugin file both seem to be present, remember the rule: the plugin declines to overwrite a file it did not create, so your hand written file is the one being served. Decide which version you want to keep, and remove the confusion by settling on one method.
A note on upkeep: a generated file refreshes itself, but its choices still need your review after big site changes. A hand written file never refreshes itself at all. Either way, put a file check on your list whenever you launch a category, retire a product line, or rewrite a policy.
Crawler permissions do not live in this file. They live in robots.txt, which is a separate file and a separate decision. And this file is not a checkout. It guides AI tools to your pages. It does not sell anything by itself.
Frequently Asked Questions
Should I write the file myself or let a plugin build it?
Both work. A plugin saves maintenance time, but you still need to review and curate what it picks. A hand written file gives you full control, but you own every update. Pick one method and stay with it.
Can I use Yoast if I already have a hand written file?
Yes. Yoast refuses to overwrite a file it did not create, so it steps aside and your hand written file stays in place. The problem case is two generators writing two different files.
Where does a hand written file go?
In your web root, the public_html folder beside wp-config.php. Do not place it in the media library, because that rewrites the path.
What do plugins usually get wrong?
Priorities. They list pages they know, not pages that matter most to your sales. Check the output, add your top categories and policies, and cut thin pages.
Verified Sources & Technical Documentation
- WooCommerce documentation, core products General Docs https://woocommerce.com/documentation/woocommerce/core-products/
- Rank Math knowledge base, indexing in ChatGPT Search, including the llms.txt module General Docs https://rankmath.com/kb/indexing-in-chatgpt-search/
- Yoast help, editing robots.txt through Yoast SEO General Docs https://yoast.com/help/how-to-edit-robots-txt-through-yoast-seo/
- llms.txt proposal Specific https://llmstxt.org
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.