No secret that AI search is becoming a new source people use when looking for products or services.
Now it’s enough to simply write “find me the best price for running shoes”, and AI systems like ChatGPT, Gemini, and Perplexity will provide you with the available options right away.
For Magento store owners, it’s a new opportunity to reach customers through a new traffic channel.
But how can you help AI systems understand and potentially cite your Magento store? The answer is llms.txt – a structured summary of your store.
Why llms.txt matters?
LLM (Large Language Model) is the “brain” of an AI assistant that understands human language and generates answers. It searches and picks the most important information from your website that corresponds to the questions users ask.
Without any guide, the AI has to decide for itself where the most relevant information is. However, AI assistants don’t process a Magento store the way customers do.
They may ignore the important content or misunderstand relationships between products, categories, and prices while providing the answers.
This is what the llms.txt file is designed for. It helps to highlight the important parts.
Yet, the llms.txt file can’t be viewed as a replacement for traditional Magento SEO. It doesn’t improve your ranking. It serves as a companion that helps AI systems interpret your store along with existing schema and content strategy.
| File | Main purpose | What it provides | Designed for |
|---|---|---|---|
robots.txt |
Crawler instructions | Rules about which areas of a website crawlers should or shouldn’t access | Search engines and other web crawlers |
sitemap.xml |
URL discovery | A list of important URLs on a website | Search engines and crawlers |
llms.txt |
AI-oriented content guidance | A list of important URLs on a website | AI systems |
What is llms.txt?
llms.txt is a text file written in Markdown that serves as a simplified instruction to your website AI can use to generate its answers. Here, you can specify categories, products, policies, and informational pages.
The file is stored at https://yourstore.com/llms.txt and looks like this:
# My Store
## Categories
- Men's Shoes
- Women's Shoes
- Running Shoes
## Products
- Galaxy 7 Running Shoes:https://example.com/galaxy-7-running-shoes
- Supernova Rise 3 Running Shoes://example.com/supernova-rise-3-running-shoes
## Important Pages
- About Us: https://example.com/about-us
- Returns: https://example.com/returns
- Shipping: https://example.com/shipping
where "#" symbol shows headings and the "-" symbol shows lists.
How to generate llms.txt in Magento?
You can generate llms.txt for Magento either manually via the server or automatically using Magefan LLMs TXT Generator for Magento. Everything depends on your technical skills and the quantity of pages you want to add to llms.txt.
Create llms.txt on the server
If you have access to the server and have technical knowledge, you can create llms.txt manually.
- Open the Magento root directory with SSH, cPanel, or FTP.
- Create a UTF-8 text file with the name llms.txt and make it publicly available at https://yourstore.com/llms.txt.
- Add relevant information about your store (a short business description, main categories, important products, blog pages, and other useful resources) using the format shown above.
- Open https://yourstore.com/llms.txt in a browser to check if the file is correct and accessible.
However, for stores with a rich catalog and frequently changing products and content, it may become difficult to maintain the file. This is where automation can help.
Generate and update llms.txt automatically
To generate llms.txt automatically, use the Magento 2 LLMs TXT Generator by Magefan. This tool allows merchants to automatically create and update a structured llms.txt file in the store’s root directory.
All you need to do is configure the extension, and it will take care of the rest.
- Go to Stores > Configuration > Magefan Extensions > LLMs TXT.
- Add products you want to include in llms.txt by enabling the Include in LLMs.txt field.
- Choose the product information you want to include from the Use Fields option.
- Configure the cron scheduling settings to let the extension generate and update the llms.txt automatically.
That’s it. From this point on, the extension keeps the llms.txt file in the background, without any manual interference.
Although AI search is becoming a new way for people to find products, most Magento stores haven’t adapted to it yet.
This creates an opportunity to get ahead and optimize your store for AI-driven search.
And even though llms.txt can’t guarantee your store will be in AI answers, it’s still worth adding to your Magento. Together with a clean robots.txt and an accurate sitemap, it can broaden your overall AI visibility strategy.
Top comments (0)