← Back to AI Search & SEO

Write a robots.txt That Welcomes AI Crawlers

Generate a complete robots.txt with an explicit allow-list for the major AI answer-engine crawlers (GPTBot, PerplexityBot, ClaudeBot, Google-Extended, Applebot-Extended and more) plus a sitemap pointer. Paste-ready for any small business site.

BeginnerPASTE & GOTime-saving

robots-txt · ai-crawlers · infrastructure · aeo · seo · setup

Pro tip

Defaulting to "Allow: /" technically lets every bot in, but explicit allow-listing is a clearer signal to AI engines and protects you if a future default-deny rule ships. Re-run this prompt twice a year: new AI crawler bots appear quarterly, and missing one quietly costs you citations.

How to use this prompt

  1. Pick your AI model. Choose the tab for Claude, ChatGPT, Gemini or Copilot. Each variant is tuned for that model.
  2. Copy the full prompt. Click Copy Full Prompt to copy the text to your clipboard.
  3. Paste into your AI tool. Open your chosen model and paste the prompt into a new chat.
  4. Replace the [placeholders]. Swap any bracketed fields for your company name, audience, product or tone.
  5. Run and refine. Review the output. If anything is off, ask the AI to tighten tone, length or format.

Prompt Variants by Model

Claude Sonnet 5
Act as a technical SEO consultant. Generate a complete, paste-ready robots.txt for a small business site that wants AI answer engines to find and cite it.

Site: domain [YOUR-DOMAIN.COM] · sitemap URL [https://YOUR-DOMAIN.COM/sitemap.xml] (blank for placeholder) · paths to block from all crawlers [LIST or NONE] · paths to block from AI training but allow for search [LIST or NONE] · crawl delay seconds [BLANK or NUMBER]

Requirements:
1. Allow well-behaved crawlers by default
2. Explicit User-agent allow groups, each under a one-line comment naming its purpose: AI search crawlers (OAI-SearchBot, PerplexityBot, Claude-SearchBot); user-request agents, which fetch a page when someone asks an assistant about it (ChatGPT-User, Perplexity-User, Claude-User); search engine crawlers (Bingbot, Applebot); AI training controls plus the open archive crawler, which is where my block-from-AI-training paths go (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot)
3. Sitemap directive
4. Header comment with site name and last-updated date
5. Valid syntax — one directive per line, no trailing whitespace
6. One group per crawler: a crawler obeys only the group that names it and ignores the * group once it has a group of its own, so repeat every block-for-all path as a Disallow line inside every named group

Output:
1. The robots.txt in a single code block, nothing else inside it
2. Deploy notes — where to upload, a curl command plus the robots.txt report and the URL Inspection tool in Google Search Console to verify, a one-line explanation of any block, and which AI crawlers were not included and why I might add them later

Success means the file passes a syntax check as written, my block lists appear exactly as I gave them, and every block-for-all path appears inside every group.

Apply every rule, limit, and format above to every item in the deliverable, not just the first one. Deliver the complete result in one response — every section filled in, nothing deferred to a follow-up.

If a required input is missing, ask for it once before starting; otherwise proceed and label any assumption you made.

Notes: R40 refresh; tuned to vendor prompting guidance

Frequently Asked Questions

What does the Write a robots.txt That Welcomes AI Crawlers prompt do?

Generate a complete robots.txt with an explicit allow-list for the major AI answer-engine crawlers (GPTBot, PerplexityBot, ClaudeBot, Google-Extended, Applebot-Extended and more) plus a sitemap pointer. Paste-ready for any small business site.

Which AI models is this prompt written for?

Claude, ChatGPT, Gemini and Copilot. Each one gets its own version up top, written the way that vendor says to prompt its own model. Pick the tab that matches yours.

Do I need a paid AI account to use this prompt?

No. This prompt is written to run on the free tier of Claude, ChatGPT, Gemini and Copilot. Paid tiers simply give you longer context windows and faster responses.

Can I customize this prompt for my business?

Yes. Any text inside square brackets is a placeholder you replace with your own business details, such as company name, audience, product or tone. You can also ask the AI to adjust format, length or style after the first output.

When was this prompt last checked?

The date is on each version up top. We check every prompt in full every month, and when a major new model lands we rewrite the prompt for it. One glance tells you how current it is before you paste.

Works with

More in AI Search & SEO

Browse all prompts →