Home › Guides › Guide
Guide

AI crawlers and robots.txt on Shopify: what to block, what to allow

AI companies now separate their bots by job: some collect training data, some build search indexes, and some fetch a page when a user asks. On Shopify you can control them by adding a robots.txt.liquid template to your theme. For most stores that want to sell through AI assistants, the sensible default is to allow the search and user bots and decide separately about training bots.

By Alexandre Des Lauriers · Updated October 9, 2026

The main AI bots and what they do

The roles below come from each company's own documentation, checked in October 2026. Bot names change; check the linked pages before you write rules.

User agentCompanyDocumented roleFollows robots.txt?
OAI-SearchBotOpenAIIndexes sites for ChatGPT search resultsYes
GPTBotOpenAICollects content that may be used to train OpenAI modelsYes
ChatGPT-UserOpenAIVisits a page when a ChatGPT user's request needs it; not used for automatic crawlingOpenAI says robots.txt rules "may not apply" because the visit is user-initiated
PerplexityBotPerplexitySurfaces sites in Perplexity search results; not used for training foundation modelsYes
Perplexity-UserPerplexityFetches a page in response to a user's questionPerplexity says it "generally ignores" robots.txt
ClaudeBotAnthropicCollects content that may be used for trainingYes
Claude-SearchBotAnthropicIndexes content to improve search results in ClaudeYes
Claude-UserAnthropicFetches pages when a Claude user asksYes, per Anthropic
Google-ExtendedGoogleA control token, not a separate crawler: governs use of content for Gemini training and groundingYes; Google says it does not affect Google Search inclusion or ranking
BingbotMicrosoftBing's search crawler; Microsoft Copilot's web answers draw on the Bing indexYes

Two practical consequences:

The trade-off for a store

For a publisher, blocking AI bots can protect content. For a store, the calculation is different: you generally want shoppers using ChatGPT, Perplexity, Copilot or Gemini to find your products with correct details. A reasonable split:

Also note that being in an AI shopping surface often depends on feeds and integrations, not crawling alone: Shopify Catalog and Agentic Storefronts, Google Merchant Center, or the OpenAI merchant program. robots.txt is one piece, not the switch.

How robots.txt works on Shopify

Shopify generates a default robots.txt for every store. To change it, you add a robots.txt.liquid template to your theme:

  1. Before anything, open https://yourstore.com/robots.txt and save a copy of the current output. Shopify's documentation asks you to compare it with your template's output before publishing.
  2. Go to Online Store > Themes, click ... > Edit code.
  3. Right-click the Templates folder, choose New file, and name it robots.txt.liquid. Shopify pre-fills it with Liquid that reproduces the default rules from robots.default_groups.
  4. Keep that loop intact. Add your own groups after it, as plain lines. For example, to block OpenAI's training bot while leaving its search bot alone:
    • User-agent: GPTBot
    • Disallow: /
  5. Save, then reload /robots.txt and check that the default rules are still there and your new group appears once.

Cautions from Shopify's documentation: adding the template replaces the generated file, so a mistake applies to your whole store; and you should use the provided Liquid objects rather than pasting a full static file, so Shopify's default rules stay current. If you use Shopify Markets with separate domains, request.host lets you vary rules per domain.

Things robots.txt cannot do

Reading your current robots.txt

Before changing anything, look at what you already have. Open /robots.txt and scan for User-agent: lines. Shopify's default file contains groups for all bots (User-agent: *) and a few specific crawlers, with Disallow rules for paths such as the cart, checkout, account and internal search. That is normal and protects you from duplicate or private pages being crawled.

If you see a group naming an AI bot that you did not add, it may come from an earlier developer, an app, or a template copied from another store. Ask whoever maintains your theme before removing it. If your store is on a headless setup, robots.txt is served by your own code, not by this template.

A rule only applies to the user agent named in its group. Disallow: / under User-agent: GPTBot does nothing to OAI-SearchBot, and a rule under * applies to bots that have no group of their own.

Quick checklist

What AI Sales Assurance does and does not check

To be clear: AI Sales Assurance does not check your robots.txt or tell you which AI bots are blocked. Use the steps above, or a crawler-access tool, for that.

What it does check is the next question: once an agent can read your store, is the data it gets correct? It compares what ChatGPT, Gemini / AI Mode, Copilot and Perplexity-style agents receive with your live product pages, covering price, currency, stock, structured data, variants, links, policies and the cart path up to (never through) payment. Run a free check.

Check what AI shopping agents see in your store

Free, read-only check: prices, stock, variants, structured data and links compared with your real product pages. No credit card.

Run my free check

Frequently asked questions

How do I block GPTBot on Shopify?

Create templates/robots.txt.liquid in your theme code, keep Shopify's default loop, and add the lines User-agent: GPTBot and Disallow: / after it. Then reload /robots.txt to check.

Will blocking GPTBot remove my store from ChatGPT search?

Not by itself. OpenAI uses OAI-SearchBot for ChatGPT search and GPTBot for training, and each is controlled separately in robots.txt.

Does blocking Google-Extended remove me from AI Overviews or AI Mode?

No. Google says Google-Extended does not affect inclusion in Google Search, and AI Overviews and AI Mode are part of Search.

Can I edit robots.txt on Shopify?

Yes. Add a robots.txt.liquid template under Online Store > Themes > Edit code. It replaces the generated file, so save a copy of the current output first.

Does AI Sales Assurance check robots.txt?

No. It checks whether the product data AI agents receive matches your live pages, not which bots are allowed.

Related guides

Sources

Alexandre Des Lauriers
Founder, Bromont, Québec, Canada · adeslauriers@wixi.ca