AI crawlers, robots.txt and llms.txt on Shopify
Whether AI services can read your store starts with a small text file. Here is how to check it, change it deliberately, and where llms.txt fits in.
What robots.txt does
robots.txt is a public file at the root of your domain (for example yourstore.com/robots.txt) that tells automated crawlers which paths they may visit. Well-behaved crawlers follow it; it is a request, not a lock. Search engines use it, and so do the crawlers run by AI companies. Each crawler identifies itself with a user-agent name, and robots.txt rules can target those names individually.
Check what your store allows
- Open
yourdomain.com/robots.txtin a browser. - Shopify's default file blocks private areas such as the cart, checkout and admin, and allows the rest. That is sensible and should stay.
- Look for any
User-agentgroups that name AI crawlers withDisallow: /. Those were usually added on purpose, by you, a developer or an app. - Check the AI services you care about. Their crawler names and purposes are documented by each company, and some separate crawling for training from fetching a page when a user asks a question.
Decide deliberately
Allowing AI crawlers means your public product pages can be read by those services. Blocking them means they may rely on other sources, or have nothing, when a shopper asks about your products. There is no universally right answer: some brands block training crawlers but allow user-triggered fetching; others allow everything public. Make the decision on purpose, write it down, and revisit it occasionally, because the list of crawlers changes.
How to edit robots.txt on Shopify
Shopify generates robots.txt from a theme template. To customise it, add a robots.txt.liquid template to your theme (in the code editor, under Templates) and edit the rules there. Shopify's developer documentation shows how to keep the default rules and add or remove your own. Work on a duplicate theme first, keep the default groups intact, change one thing at a time, and check the live file afterwards. A mistake here can block search engines from your whole store, so be careful.
What llms.txt is
llms.txt is a proposed convention: a plain Markdown file at your site root that summarises what your site is and links to the pages that matter, written for language models to read. It is not an official standard, and AI services are not obliged to use it. Some do read it; many do not say. It is cheap to publish and harmless, so it can be worth adding, but it does not replace good product pages and structured data.
A useful llms.txt for a store is short: a one-line description of the shop, then links to key collections, best sellers, shipping and returns policies, and contact details.
Publishing llms.txt on Shopify
Shopify does not let you upload arbitrary files to the root of your domain. Common approaches are to create a page containing the text and add a URL redirect from /llms.txt to it, or to use an app that serves it. Test the URL after publishing to confirm it returns your text.
Common mistakes
- Blocking everything by accident with a broad
Disallow: /underUser-agent: *while trying to block one crawler. - Deleting Shopify's default rules, which exist to keep the cart, checkout and internal search out of search results.
- Assuming robots.txt hides content. It is a public request to well-behaved crawlers, not access control. Anything private should not be on a public page.
- Forgetting to check after a theme change, since a new theme may not include your custom robots.txt.liquid template.
- Treating llms.txt as a ranking trick. It is a helpful summary at best; the product pages still have to carry the facts.
Where AgentTulip fits
AgentTulip checks your live robots.txt against a list of known AI crawlers, tells you which are allowed or blocked, and gives you the exact line to change if you decide to allow one. It also generates an llms.txt for you to copy. It never edits your theme. Run the free AI readiness check to see your crawler status in seconds.