← All guides · Ingenious AI team · November 14, 2026 · Reviewed November 14, 2026
How Should robots.txt Be Set for AI Shopping Agents?
Definition
robots.txt is the file at a store's root that tells crawlers which paths they may read, per named user-agent. For agent commerce it is a door notice: a Disallow of all paths for an agent crawler means that agent's catalog reads never happen. The audit tests five named agent crawlers against it, and separately whether the file exists at all.
The short answer
Let the named agent crawlers read the pages that sell: no Disallow of all paths for GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot or Google-Extended — scope any disallows to paths agents do not need. The audit's robots_present and robots_allows_agents checks fetch your robots.txt and test exactly those bots. A store that blocks them has opted out of agent commerce before the first product is seen. Check yours with the free store audit.
The door notice
Every agent visit starts with a permission question, and robots.txt is where the answer lives. The audit fetches /robots.txt, notes whether it answers at all (robots_present — a missing file earns a warn, because crawlers then guess), and then parses it the way a crawler does: tracking which user-agent groups apply, and whether any group that covers a named agent bot disallows all paths. If GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot or Google-Extended is disallowed everywhere, robots_allows_agents fails with the blocked bots named in the evidence.
The subtle case is the wildcard group. A User-agent: * group with Disallow: / applies to every bot that has no group of its own — including agent crawlers a store never consciously considered. Many stores block 'all bots' in a line added years ago for scraper worries and have, in effect, hung a closed sign for agent shoppers without ever deciding to.
Blocking is a legitimate choice — made by accident, it is a bug
Nothing in the audit says a store must welcome every crawler. What it reports is the consequence: a blocked agent crawler cannot read the catalog it is asked to buy from. If the block is deliberate, the fail is information. If it is inherited — a platform default, a copied template, a security plugin's preset — it is a bug with a revenue shape. The distinction matters because the fix differs: deliberate blocks get scoped (allow product and policy paths, disallow the rest), accidental ones get removed.
Scoping is the middle path most stores want. Agents need product pages, the feed, policy pages, cart and checkout entry. They do not need your admin paths, internal search results or checkout POST endpoints as crawlable pages. A robots.txt that disallows those, while allowing the selling surface, passes the audit and keeps the store's boundaries.
Permission is not the same as equal treatment
A robots.txt that allows a bot is only the first half of the door. The Pro bot-differential check (bot_differential) fetches the home, product and cart pages as each named bot and as a plain browser, and compares status, challenge markers and price. A bot that is allowed on paper but served a challenge page — or a different price — is being shown a different, worse store, and the check fails with the difference named. Stores are often surprised by this one: the bot-management layer, not robots.txt, is doing the blocking, and nobody connected the two settings.
So the work has two steps: write the permission correctly in robots.txt, then verify the treatment matches it. The bot differential test explains the comparison in detail, and the agent crawlers, explained profiles each named bot.
Writing the file
Keep it explicit. Name the agent crawlers you welcome in their own groups with no disallow, or a disallow scoped away from the selling surface; make sure no wildcard group disallows everything beneath them; and reference the sitemap, which the audit separately checks for product pages (sitemap_present, sitemap_lists_products). Then retest — robots parsing has edge cases (group ordering, blank paths, comments) that a careful read at a desk routinely misses and a deterministic check does not.
Also keep the file stable. An agent that was allowed last month and blocked this month does not file a complaint; it routes around you. The drift watch on Pro and Team exists partly for this: a robots.txt change that blocks agents shows up as a flipped check and a badge at risk, described in store drift watch.
Sources
- RFC 9309, Robots Exclusion Protocol, the standard behind the robots.txt checks (rfc-editor.org, 2022).
- Schema.org Product vocabulary, the structured-data type the Catalog checks parse (schema.org, 2026).
- The Sitemaps protocol, the format the sitemap checks read (sitemaps.org, 2026).
Five actions to take
- Publish the file. /robots.txt answers 200 — a missing file earns a warn and leaves crawlers guessing.
- Do not disallow the named agent crawlers. No Disallow: / for GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot or Google-Extended, directly or through a wildcard group.
- Scope the disallows you keep. Admin and internal paths may stay disallowed; product, feed, policy, cart and checkout-entry paths must stay readable.
- Point to the sitemap. Reference sitemap.xml, and make sure it lists product pages.
- Verify treatment matches permission. Run the audit, and on Pro read the bot-differential result — allowed bots must get the same store a browser gets.
Worked example: Fernwood Furniture, 52 to 83
Example — a fictional store, shown to illustrate how the audit's findings and fixes fit together. These are the example's numbers, not a customer's results.
Fernwood Furniture is a fictional 43-product furniture store. Its first audit scored 52/100:
- Access: robots.txt disallowed all paths for GPTBot and ClaudeBot (robots_allows_agents, fail) — a line added by a security plugin preset two years earlier.
- Access (Pro): PerplexityBot was allowed in robots.txt but served a challenge marker on the product page (bot_differential, fail) — permission and treatment disagreed.
- Access: the sitemap answered and listed products, so the catalog map existed for any bot permitted to use it.
The fixes, in the order the audit's impact weights dictate:
- Replaced the blanket disallow with explicit groups: the five named agent crawlers allowed on the selling surface; admin and internal-search paths still disallowed.
- Exempted the named agent crawlers from the bot-management challenge on public product and policy pages.
- Retested: all five bots received the same status and price as the browser on home, product and cart pages.
The re-audit scored 83/100. Two different layers — a text file and a bot-management preset — had each been quietly closing the same door; the audit's two checks, robots_allows_agents and bot_differential, are what separated them.
Run the free store audit · See pricing · Ingenious AI
Frequently asked questions
Which crawlers does the audit test in robots.txt?
Five named agent crawlers: GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended. The check fails if any of them is disallowed all paths, including through a User-agent: * group that disallows everything.
What if my store has no robots.txt?
That earns a warn, not a fail: the file's absence leaves crawlers to guess. Publish one that allows agent crawlers on product and policy pages and references your sitemap — it converts a guess into a stated permission.
Can I block some paths and still pass?
Yes. The check is about disallowing all paths. Scoped disallows — admin, internal search, account paths — do not fail it, as long as product, feed, policy, cart and checkout-entry paths stay readable for agent crawlers.
robots.txt allows the bots, but the audit still flags access — why?
Probably treatment, not permission: the Pro bot-differential check fetches pages as each named bot and as a browser. A challenge page or a different price served to a bot fails that check even when robots.txt is correct.
Does allowing agent crawlers mean agents will buy?
No — it means they can read the catalog they are asked to buy from. Permission is step one of the visit; the catalog, policies and purchase path still have to work. But a blocked crawler ends the visit before any of those are reached.
Keep reading
Start from the top of the subject: Why AI Shopping Agents Skip Your Store · Can AI Agents Buy From Your Store? · Agentic Commerce Checklist for Online Stores. Then run the instrument itself: the free store audit, the Store Audit lab, and the pricing page. All guides are listed in the guides index.
Previous guide: How Do I Add JSON-LD Product Schema to My Store? · Next guide: What Is llms.txt and Does Your Online Store Need One?