NewThe tragent CLI is on npm: npx @tragent/cli scan your-store.com

Reference

robots.txt for AI agents: which bots to allow and block

Search crawlers, shopping assistants and training bots need different rules. A robots.txt generator for stores, and where robots.txt stops working.

The tragent teamPublished 8 min read

Every AI company publishes its own crawler names, and merchant guides tend to answer one question: how do I block them? For a store that wants to sell to AI shopping agents, that is the wrong question. The useful one is which AI clients to let in, where, and why.

This guide sorts the AI user agents into the three kinds that matter, gives a robots.txt you can copy, and explains where robots.txt stops and your bot manager takes over.

What are the three kinds of AI crawler?#

Search crawlers, user-triggered assistants, and training crawlers. Each major AI company now runs separate user agents for each, so you can treat them separately.

KindWhat it doesExamples (robots.txt token)Most stores should
Search and answerIndexes pages so an assistant can find and cite themOAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot, BingbotAllow on catalogue pages
Assistant, user-triggeredFetches a page because a person asked it to, right nowChatGPT-User, Claude-User, Perplexity-UserAllow on the whole purchase path
TrainingCollects content to train future modelsGPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBotDecide on content grounds; it does not affect shopping

OpenAI's documentation states the separation directly: blocking GPTBot keeps content out of training and does not affect search, which OAI-SearchBot controls. Anthropic splits its agents the same way. Google-Extended is a token rather than a crawler: it has no user agent of its own and only tells Google whether content may be used for Gemini training and grounding. It does not affect Google Search.

Which AI user agents should a store allow?#

Allow search crawlers on product and category pages, and allow user-triggered assistants everywhere a shopper goes, including the basket and checkout. Keep accounts and admin private for everyone.

The reasoning is simple once the kinds are separate:

  • Search crawlers decide whether you appear. If OAI-SearchBot cannot read your products, ChatGPT search cannot recommend them. They have no reason to index your basket or checkout, so those can stay disallowed for them.
  • Assistants are customers. A ChatGPT-User or Claude-User request is a person's assistant looking at your store on their behalf. Disallowing the purchase path for them tells the agents that honour robots.txt not to buy.
  • Training is a separate choice. Whether models may learn from your product copy is about your content, not your sales. Many merchants opt out; it costs them nothing in AI shopping.

What should your robots.txt say?#

Use separate groups for each kind of client, with the paths each needs. Pick your policy below and copy the result. Multiple User-agent lines can share one group, and a crawler follows the group that names it most specifically.

Search and answer engines

Crawlers that index products for ChatGPT search, Claude, Perplexity, Google and Bing. Blocking removes you from their results, Google Search included.

Assistants shopping for someone

Fetches a person asked for. Operators say robots.txt may not apply to these, so this is a statement of intent.

Model training

Crawlers that collect content to train models. A separate decision about your content; blocking does not hide you from shopping.

# Search and answer engines: index products, skip private and purchase pages
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: Googlebot
User-agent: Bingbot
User-agent: Applebot
Allow: /
Disallow: /admin
Disallow: /account
Disallow: /orders
Disallow: /cart
Disallow: /checkout

# Assistants fetching for a shopper: allow the whole purchase path
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
Allow: /
Disallow: /admin
Disallow: /account
Disallow: /orders

# Model training: opted out (does not affect search or shopping)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: CCBot
Disallow: /

# Everyone else
User-agent: *
Disallow: /admin
Disallow: /account
Disallow: /orders
Disallow: /cart
Disallow: /checkout

Sitemap: https://your-store.example/sitemap.xml
A robots.txt generator for stores selling to AI agents. Tokens are the operators' documented names as of October 2026. Nothing you enter leaves your browser.

Two notes on the output. Allow: / followed by Disallow: lines works because the most specific matching rule wins, so /cart stays disallowed for search crawlers while product pages are open. And the final * group covers every client not named above, which keeps unknown bots out of accounts and checkout while leaving the rest of the site as it was.

Does robots.txt actually control AI shopping agents?#

Partly. It is a request that well-behaved crawlers honour, and user-triggered assistants may not follow it at all. It is not access control.

OpenAI says this about ChatGPT-User: because its actions are initiated by a user, robots.txt rules may not apply. Third-party documentation describes Perplexity's user-triggered agent the same way. ChatGPT's browsing agent has no robots.txt token at all; it identifies itself with a Web Bot Auth signature instead. So a robots.txt that disallows checkout will not reliably stop an assistant from reaching it, and one that allows checkout will not get an assistant past a bot manager that blocks it.

That second case is the common one. A store can welcome every AI agent in robots.txt and still refuse them at the basket, because its bot management product applies its own policy. robots.txt says what you want. Your firewall decides what happens. If agents are not completing purchases, look there next: why AI shopping agents get a 403 at your checkout.

What else belongs in robots.txt for agents?#

A sitemap line, and nothing that blocks the pages agents use to answer questions. Three small things make a measurable difference:

  1. List your sitemap. Sitemap: https://your-store.example/sitemap.xml tells every crawler where your product URLs are. A sitemap that lists no product pages is nearly as bad as none (sitemap lists no product pages).
  2. Do not disallow policy pages. Shipping, returns and cancellation policies answer the questions shoppers ask assistants most. Blocking them makes the assistant guess or say it does not know (no returns path for agents to find).
  3. Do not block everything by accident. A single Disallow: / under User-agent: *, left over from a staging site, hides the whole store (robots.txt blocks every agent).

Which AI user agents should you know about?#

About a dozen tokens cover the AI clients that matter to a store in 2026. Names change, so check each operator's documentation before you rely on one.

OperatorTokenKindNotes
OpenAIOAI-SearchBotSearchControls appearing in ChatGPT search
OpenAIChatGPT-UserAssistantUser-initiated; OpenAI says robots.txt may not apply
OpenAIGPTBotTrainingIndependent of search
AnthropicClaude-SearchBotSearchIndexing for Claude's search
AnthropicClaude-UserAssistantFetches at a user's request
AnthropicClaudeBotTrainingAnthropic documents opting out with this token
PerplexityPerplexityBotSearchIndexing for Perplexity answers
PerplexityPerplexity-UserAssistantUser-triggered fetches
GoogleGooglebotSearchAlso feeds AI Overviews and AI Mode
GoogleGoogle-ExtendedTraining and groundingA token, not a crawler; does not affect Search
AppleApplebot-ExtendedTrainingA token controlling use for Apple's models
Common CrawlCCBotTrainingIts archive is used to train many models

Two agents you will not find in robots.txt: ChatGPT's browsing agent, which identifies itself with a Web Bot Auth signature instead of a token, and general browser agents that look like ordinary Chrome. For those, the bot manager is the only control there is; see Web Bot Auth explained.

What are the common robots.txt mistakes for AI agents?#

Blocking a whole company because of one bot, and copying a "block all AI" snippet without reading it.

  • One rule for every bot from a company. Disallowing GPTBot to opt out of training is fine. Copying the same rule to OAI-SearchBot removes you from ChatGPT search, which was probably not the intent.
  • Blocklists from the internet. Snippets that "block all AI crawlers" often include search and assistant tokens alongside training ones. Read each line before you paste it.
  • Wildcards that catch too much. Disallow: /*? to stop crawlers on filtered URLs can also block product URLs that carry a variant parameter.
  • Different files on different hosts. robots.txt applies per host. shop.example and www.shop.example each need the right file, and so does any checkout subdomain.

How do you check it is working?#

Test it per user agent, then test what the server does. robots.txt testers show what a rule means; only a request shows what your stack does.

  • Parse it for each token. Google Search Console's robots.txt report shows how Google reads your file. For other tokens, a robots.txt parser library or a scanner that evaluates rules per user agent tells you which paths each one may fetch.
  • Request the paths. Fetch a product page, the basket and the first checkout step as each kind of agent and read the status codes. A path robots.txt allows but your firewall refuses is the failure that costs sales.
  • Re-check after platform updates. Theme changes, apps and platform upgrades can rewrite robots.txt. A check in your deploy pipeline catches it; see how to test your store with AI shopping agents in CI.

Frequently asked questions

Should I block GPTBot?
That is a decision about model training, not shopping. Blocking GPTBot keeps your content out of OpenAI's training data and, according to OpenAI, does not affect whether you appear in ChatGPT search, which OAI-SearchBot controls.
Does blocking Google-Extended remove me from Google Search or AI Overviews?
No. Google-Extended only controls use for Gemini training and grounding. Google Search, including AI Overviews, is fed by Googlebot.
Do AI shopping agents obey robots.txt?
Crawlers generally do. User-triggered assistants may not: OpenAI says robots.txt rules may not apply to ChatGPT-User because a person initiated the request, and ChatGPT's browsing agent has no robots.txt token.
Should AI agents be allowed to access /cart and /checkout?
User-triggered assistants, yes, if you want them to buy. Search crawlers have no reason to index those pages. Separate groups in robots.txt let you treat them differently.
Why are AI agents still blocked when my robots.txt allows them?
Because robots.txt is not enforced. A bot manager or firewall in front of your store applies its own rules and often blocks automated traffic at the basket and checkout regardless of robots.txt.

Sources

  1. Overview of OpenAI crawlers — OpenAI for Developers
  2. Does Anthropic crawl data from the web, and how can site owners block the crawler? — Anthropic Help Center
  3. Google's common crawlers, including Google-Extended — Google Search Central
  4. RFC 9309: Robots Exclusion Protocol — IETF
  5. Editing robots.txt.liquid — Shopify Help Center
  6. ChatGPT agent allowlisting — OpenAI Help Center

Written by the tragent team and checked against the sources listed above on October 19, 2026. See how we write and correct posts in our editorial policy.

Guide

Why AI shopping agents get a 403 at your checkout

Bot management built to stop scrapers also stops AI shopping agents at checkout. Why it happens, how to test for it, and the fix for each major bot manager.

October 18, 2026 · 12 min read

How-to

Product data AI agents can read: Schema.org fixes that work

What complete Product and Offer markup looks like, the mistakes that hide products from AI shopping agents, and how to test the fix across a catalogue.

October 19, 2026 · 8 min read

Technical explainer

Web Bot Auth explained: how signed AI agents prove identity

How AI agents sign HTTP requests with RFC 9421, how a site verifies the signature step by step, and what a valid signature does and does not prove.

October 19, 2026 · 9 min read

Find out before your customers' agents do. Start with a free scan, look around the sample store, or create an account and test your own staging site.

View the demo