For a Shopify store, the robots.txt file is the first thing an AI crawler meets. It decides whether assistants like ChatGPT, Claude, and Perplexity can read your product pages and recommend them. Shopify handles this file in its own way, and that way catches many store owners off guard.
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.
Your theme builds the file, on demand
On Shopify you never open a robots.txt file and type in it directly. Each time a crawler requests the file, Shopify builds it from code stored in your theme. That code is a template named robots.txt.liquid. You will not find a real file with a file manager, because Shopify creates the output fresh on every request.
Two facts about that template shape everything else.
First, part of the template prints Shopify's built-in protections for checkout, cart, and admin pages. That part is a loop in the code. Leave it exactly as Shopify wrote it. If you remove it or break it, those protections drop out of the file crawlers receive.
Second, the template lives inside a single theme. It does not follow you when you switch themes, and a theme update can leave it behind. When that happens your AI crawler rules disappear without any warning from Shopify, and the file quietly returns to its standard form.
Here is the encouraging part. Shopify's standard file was written with classic search engines in mind, and it neither welcomes nor blocks AI crawlers. So you are not fighting a block. You are adding a clear, explicit welcome, and then making sure it stays put.
The steps
Begin by seeing what visitors and crawlers see today. Visit yourdomain.com/robots.txt in a browser, using your real domain instead of the placeholder. Read what is there before you change anything.
The theme code is next. From the admin, open Online Store, then Themes. Look for the three dots on your live theme. That actions menu holds Edit code.
In the Templates section, create a new template and select robots.txt. Shopify pre-fills it with its standard code, including the loop that prints the built-in rules. Keep that loop untouched.
Underneath that loop, add a group for each AI crawler you want to welcome. Place these groups high in the file, ahead of any broad block rules:
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Claude-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: meta-webindexer
Allow: /
User-agent: bingbot
Allow: /
One limit to know: ChatGPT-User only shows up when a person asks ChatGPT to look at a page. Your allow line gives it permission, but it cannot steer a fetcher that pays no attention to robots.txt.
Save your work, then reload yourdomain.com/robots.txt and look for your new groups before the broader rules. What shows in your browser is what crawlers will receive, since Shopify renders the file per request.
Undoing it is one move: delete the robots.txt.liquid template, and Shopify goes back to serving its standard file.
Check the theme first when things go quiet
Imagine a small soap shop on Shopify. The owner sets up the template, checks the file, and sees the new groups in place. A few months later, a scan shows AI crawlers no longer reaching the product pages. Nothing about the rules themselves had gone wrong. A theme update the month before had replaced the theme, and the template never made it into the new one. The file had reverted without anyone noticing.
On Shopify, that is always the first place to look when AI traffic drops. Open your live theme and confirm the template is still there, before you investigate anything else.
The file alone is not the whole story
Robots.txt states what you intend. It cannot force a result. If a bot manager or a content delivery network stops an AI crawler before it reads the file, your allow rules never get a chance to matter. Checking that outer layer, and keeping an eye on it over time, sits outside this edit.
Frequently Asked Questions
Why can I not find a robots.txt file to edit on Shopify?
Because Shopify does not store one as a file. It builds the file on each request from the robots.txt.liquid template in your theme, so the template is what you edit.
Will my new rules expose checkout or admin pages?
Not if you leave the built-in rules loop alone. That loop keeps the protections for checkout, cart, and admin paths in the file crawlers receive.
My AI crawler rules vanished. What most likely happened?
A theme change is the usual cause. Switching themes or updating one can drop the template, and Shopify gives no warning when the file falls back to its standard form. Confirm the template still exists in your live theme.
Does Shopify block AI crawlers unless I add these rules?
No. The standard file says nothing about AI crawlers, so they are not blocked by default. Explicit allow groups turn an unspoken default into a clear welcome that you can verify.
Verified Sources & Technical Documentation
- Shopify: robots.txt.liquid template Specific https://shopify.dev/docs/storefronts/themes/architecture/templates/robots-txt-liquid
- Shopify: customize robots.txt Specific https://shopify.dev/docs/storefronts/themes/seo/robots-txt
- Shopify developer docs, theme templates General Docs https://shopify.dev/docs/storefronts/themes/architecture/templates
- Shopify Help Center, editing theme code General Docs https://help.shopify.com/en/manual/online-store/themes/customizing-themes/edit-code/edit-theme-code
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.