robots.txt for AI agents: which bots to let in and which to keep out
Many stores block AI bots in robots.txt without knowing which ones. Some only collect training data, others decide whether your products appear in AI search, and some come only when a person asks. Here they are side by side, from their makers' own pages.
By Kupeta4 min read
Three kinds of AI bots
Every big AI company now runs several bots, and each does something else. Before you write a rule, know which kind you are dealing with:
- Training. Collects pages to train AI models. Blocking it keeps your texts out of future training; it doesn't hide you from AI search.
- Search. Builds the index assistants search in. Block it and your products won't be offered in AI answers.
- On a person's request. Comes when someone asks an assistant to open your page or buy something. This is the AI shopper itself.
For a store, the search and request bots are customers' way in. The training bots are a separate decision about your content.
The bots, side by side
The name in the first column is the token you write in robots.txt. Whether it obeys robots.txt is what its maker says on its own page (checked on November 10, 2026; the sources are at the end).
| Token | Maker | What it does | Obeys robots.txt |
|---|---|---|---|
GPTBot | OpenAI | Training | Yes |
OAI-SearchBot | OpenAI | Search in ChatGPT | Yes |
ChatGPT-User | OpenAI | Visits on a person's request | May not |
ClaudeBot | Anthropic | Training | Yes |
Claude-SearchBot | Anthropic | Search | Yes |
Claude-User | Anthropic | Visits on a person's request | Yes |
PerplexityBot | Perplexity | Search | Yes |
Perplexity-User | Perplexity | Visits on a person's request | Generally no |
Googlebot | Search, including AI answers in Search | Yes | |
Google-Extended | A token for training Gemini, not a separate bot | Yes | |
Google-Agent | Visits on a person's request | No |
Two things follow. First, Google-Extended only says whether Google may use your pages for its AI models; Googlebot still crawls for Search. Second, bots that come on a person's request mostly don't follow robots.txt, by their makers' own words. Blocking them there is a signal, not a lock.
A robots.txt that works for a store
If you want AI assistants to find and sell your products but not to train on your texts, this is a sensible start. Adjust the paths to your store:
# Search and shopping assistants: welcome
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /
Disallow: /account/
Disallow: /checkout/thank-you
# Model training: no (your decision, it doesn't affect AI search)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /
# Everyone else
User-agent: *
Allow: /
Disallow: /account/
Sitemap: https://your-store.com/sitemap.xmlIf you are happy for your texts to be used for training too, leave out the middle group. Either way, don't block the search group: that is where the products disappear from AI answers.
Common mistakes
User-agent: *withDisallow: /left over from development or a pre-launch period. It keeps everyone out, AI assistants and Google include- Blocking everything with “bot” in the name through a plugin or the server. It sweeps away the search bots along with the training ones.
- Forgetting the sitemap line. Without it bots have to find the products by clicking.
- Blocking `/cart` or `/checkout` for everyone. Search bots don't need them, but a shopping agent acting for a person does. Keep it out of the index with
noindexinstead, if you must.
Where to change it on your platform
- Shopify: robots.txt is made from the
robots.txt.liquidtemplate in your theme's code; add the rules there. - WooCommerce / WordPress: a robots.txt file in the website's root folder, or the editor of your SEO plugin (Yoast and Rank Math have their own).
- Other platforms: look in the SEO settings; if there is no editor, ask your platform's support.
Also check bot protection on your server or CDN. It can turn AI assistants away even when robots.txt lets them in, and robots.txt won't tell you. A test with a real agent shows it.
And Kupeta's own agent?
Kupeta's test shoppers always say who they are in the User-Agent and follow robots.txt. They never get around a captcha or bot protection; if they meet one, it's a finding in your report. How to recognise Kupeta's agent or keep it out.
The free Kupeta test reads your robots.txt and tells you which AI assistants it keeps out, with a fix for your platform. How Kupeta tests.
Questions
Does blocking GPTBot remove my store from ChatGPT search?
No. GPTBot collects training data. Search in ChatGPT uses OAI-SearchBot, and visits on a person's request come as ChatGPT-User. Block GPTBot and you only opt out of training.
Does Google-Extended affect my Google rankings?
No. It is a token that only says whether Google may use your content for its Gemini models. Googlebot keeps crawling for Search as before.
Can robots.txt stop an AI agent that shops for a person?
Not reliably. By their makers' own words, several bots that visit on a person's request may not follow robots.txt. If you really need to keep them out, it takes bot protection, and that also stops customers' assistants.