Shopify

How do I allow ChatGPT and other AI agents on my Shopify store?

On most Shopify stores you don't need to do anything: Shopify's default robots.txt names no AI crawler and lets every crawler read public product, collection, page and blog URLs. You only need to act if your theme has a robots.txt.liquid template or an app added AI rules, and then you edit that template or delete it to go back to Shopify's current default.

Author
Aiscovery team
Published
Updated
Reading time
8 min read

Check what your store serves today

  1. Step 1: Open your live robots.txt

    Go to https://yourstore.com/robots.txt. Shopify's current default starts with a comment block (# Shopify storefront.) that points AI agents to /agents.md and the store's UCP endpoints, then has only two groups: User-agent: * and User-agent: adsbot-google.

  2. Step 2: Look for AI crawler names

    Search the file for GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot and Google-Extended. A group that names one of them with Disallow: / blocks that crawler from the whole store.

  3. Step 3: Check whether your theme has a template

    In Shopify admin, go to Online Store, click the three dots next to your published theme and choose Edit code. Look under Templates for robots.txt.liquid. Themes don't include it by default, so if it's there, someone added it.

  4. Step 4: Spot an outdated template

    A file with groups for Nutch, AhrefsBot or MJ12bot, or with Disallow: /search and Disallow: /policies/, comes from a template. Shopify says such templates can include rules the default file no longer has, and that deleting the template returns the store to the current default.

Two ways AI reaches a Shopify store

robots.txt only covers crawlers and agents that read your storefront. Shopify also sends product data straight to AI channels through Shopify Catalog. The two are controlled in different places, and blocking one doesn't affect the other.

How AI tools get your Shopify product data
PathWho uses itControlled by
Crawling your storefrontAI search crawlers such as OAI-SearchBot and PerplexityBot, and agents that browse for a shopperrobots.txt.liquid (a request crawlers may follow) and Shopify's own bot protection
Shopify Catalog and agentic storefrontsChatGPT, Google AI Mode and Gemini, Microsoft Copilot and MetaSales channels, then Agentic, in Shopify admin. Active by default for eligible stores.
Agent filesAgents that look for /agents.md or /llms.txtShopify-managed by default; theme templates override them

Shopify says it plainly: blocking AI crawlers at the robots.txt or network layer affects only open-web discoverability, and doesn't stop Shopify Catalog sending product data to the agentic storefronts you've turned on.

Remove an AI crawler block

  1. Step 1: Save a copy of your current robots.txt

    Shopify recommends this before you publish changes, so you can compare the rendered template with what the store served before.

  2. Step 2: Open the template

    Online Store, then the three dots next to your theme, then Edit code, then templates/robots.txt.liquid.

  3. Step 3: Delete the group that blocks AI crawlers

    Remove the User-agent lines for the AI crawlers you want to let in and the Disallow: / under them. Leave the robots.default_groups loop alone.

    Remove a block like this from robots.txt.liquid
    User-agent: GPTBot
    User-agent: OAI-SearchBot
    User-agent: ClaudeBot
    User-agent: PerplexityBot
    Disallow: /
  4. Step 4: Or delete the template entirely

    If the template only existed to add AI rules, delete it: right-click robots.txt.liquid, choose Delete permanently, then Delete. The store goes back to Shopify's current default file.

  5. Step 5: Check the live file again

    Shopify says changes are instant but crawlers don't react immediately. OpenAI says its crawlers can take about 24 hours to pick up a robots.txt change.

Keep AI search and agents, opt out of training

If you want ChatGPT search, Perplexity and shopping agents to read your store but don't want your pages used for model training, add one group for the training tokens after Shopify's default loop. Search crawlers have no group of their own, so they keep following User-agent: * and its cart, checkout and account rules.

templates/robots.txt.liquid
{% for group in robots.default_groups %}
  {{- group.user_agent }}

  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

# Opt out of AI model training.
# Search crawlers and shopping agents follow the * group above.
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
Disallow: /

Which token does what is in does blocking GPTBot hurt your store.

What robots.txt can't do on Shopify

  • It can't take you out of agentic storefronts. Use Sales channels, then Agentic, and turn off Allow Shopify to manage for me to pick channels one by one. You can also turn off Shopify Catalog access for third-party AI channels there; it can take up to 7 days. Only Unlisted hides a product from Shop too.
  • It can't hide a single product from AI only. Shopify's one full method is setting the product to Unlisted, which also hides it from sitemaps, Google and your store search.
  • It can't change Shopify's bot protection. Shopify handles that at the network layer and doesn't support a Cloudflare proxy in front of the store. See does Cloudflare block AI agents.
  • It doesn't bind user-triggered fetchers. OpenAI says robots.txt rules may not apply to ChatGPT-User, because a person asked for the page.

Access is only the first step. Once an agent is in, it still has to find the price, the variant and the delivery cost. That's where most stores lose it: see why AI agents can't find your delivery price and product variants and stock for AI agents.

Keep going

Questions store owners ask

Does Shopify block GPTBot or ClaudeBot by default?

No. Shopify's current default robots.txt doesn't name any AI crawler, and its User-agent: * group allows public product, collection, page, blog and policy URLs.

Is it safe to edit robots.txt.liquid?

Shopify calls it an unsupported customization and warns that incorrect use can result in loss of all traffic. Save your current robots.txt first, change only the AI groups, and compare the output before you leave it live.

If I block AI crawlers, will my products disappear from ChatGPT?

Not if ChatGPT is on in your agentic storefronts. Shopify says Shopify Catalog sends product data to the channels you've activated independently of robots.txt. Turn the channel off under Sales channels, then Agentic.

Do I need an app to allow AI crawlers?

No. The default file already allows them, and robots.txt.liquid is built into every theme's code editor.

My robots.txt has Disallow: /search. Is that a problem?

It means a template is serving older rules. Shopify's current default no longer blocks /search or /policies/. Deleting the template returns the store to the current default.

Sources

Every technical claim on this page comes from the vendor's own documentation, checked on the date shown as Updated. Crawler names and settings change, so check the source before you edit a live store.

  1. 01Customize robots.txtShopify.dev
  2. 02Editing robots.txt.liquidShopify Help Center
  3. 03robots.txt.liquid templateShopify.dev
  4. 04Shopify agentic storefrontsShopify Help Center
  5. 05Managing agentic storefrontsShopify Help Center
  6. 06Shopify CatalogShopify Help Center
  7. 07Protecting your store from botsShopify Help Center
  8. 08Overview of OpenAI CrawlersOpenAI
  9. 09RFC 9309: Robots Exclusion ProtocolIETF

See what AI agents do in your store.

A short call: we run the site check on your store, show what robots.txt tells each AI crawler, and walk through a test run where named AI agents try key shopping tasks.

Have a real workflow to test now? Apply as a launch partner

We only use this to arrange your demo. Privacy notice