A practical llms.txt and AI crawler visibility guide
How to write an llms.txt file, which robots.txt rules actually control GPTBot, ClaudeBot, PerplexityBot and Google-Extended, and how to audit a site for AI-search readiness. llms.txt is a proposed convention, not a ranking guarantee.
If you want ChatGPT, Claude, Perplexity or Google’s generative products to be able to read your site, start with robots.txt, not with a blog post about “GEO”. An /llms.txt file is a useful, human-readable map of your best pages, but it is a proposed convention (published at llmstxt.org by Jeremy Howard of Answer.AI) and not a guarantee that any answer engine will cite you.
This guide separates what you can actually control (crawler access, canonical pages, structured data, content in the HTML) from what you cannot (whether a model chooses to mention you). It also shows how to audit a URL with Apizap’s SEO & AI Search Readiness Audit at $4 per 1,000 pages plus a $0.005 start fee.
What is llms.txt, and what is it not?
llms.txt is a Markdown file meant to live at https://your-domain.com/llms.txt. The proposal is that AI systems can fetch that one file to learn which pages matter, in a format that is easier to parse than a typical homepage. A companion file, /llms-full.txt, can hold longer source material.
It is not an IETF standard, not a Google ranking factor, and not a replacement for robots.txt or a sitemap. As of this writing, no major search engine has documented llms.txt as something that improves rankings or guarantees a citation in AI Overviews, ChatGPT, Claude or Perplexity. Treat it as a courtesy map: cheap to add, useful for agents and for humans who find it, not a switch you flip to “be in the answers”.
A reasonable file looks like this:
# Example Co
> Example Co makes billing software for small businesses.
## Docs
- [Getting started](https://example.com/docs/start): install and first invoice
- [API reference](https://example.com/docs/api): REST endpoints
## Product
- [Pricing](https://example.com/pricing): plans and limits
- [Security](https://example.com/security): SOC reports and data handling
## Optional
- [Blog](https://example.com/blog)
Keep it short, use absolute URLs, and link to pages that already explain the product clearly. Do not stuff keywords, and do not list every URL in the sitemap — that is what the sitemap is for. Serve the file as text/plain or text/markdown with a 200 status, at the site root (or on each host you care about, including www if that is canonical).
Which robots.txt rules actually matter?
robots.txt is the access-control file crawlers that honour the standard will read. AI products use several user-agent names, and they do not all mean the same thing. The important distinction is training / generative use versus user-initiated fetching versus search indexing.
| User-agent | Operator | Typical purpose |
|---|---|---|
GPTBot |
OpenAI | Crawling used in model training |
OAI-SearchBot |
OpenAI | Crawling used to ground ChatGPT search-style answers |
ChatGPT-User |
OpenAI | A fetch made when a user asks ChatGPT to look at a page |
ClaudeBot |
Anthropic | Crawling used in model training |
Claude-SearchBot / Claude-User |
Anthropic | Search and user-initiated fetches (check Anthropic’s current docs for the exact names they publish) |
PerplexityBot |
Perplexity | Crawler for Perplexity’s answers |
Google-Extended |
Controls use of content for Google’s generative AI / Gemini products, not Google Search ranking | |
Applebot-Extended |
Apple | Controls use of content for Apple’s generative features, not ordinary Applebot search crawling |
Googlebot / Bingbot |
Google / Microsoft | Classic search indexing |
A mistake we see often: blocking Google-Extended and thinking you have left Google Search. You have not. Google-Extended is documented by Google as a control for generative AI use of your content. Googlebot is still what indexes you for Search. Similarly, allowing GPTBot is not the same as allowing OAI-SearchBot or ChatGPT-User.
If you want to be readable by answer engines, a conservative starting point is: allow the search and user-fetch bots you care about, make a deliberate choice about training bots, and do not accidentally Disallow: / for them while leaving Googlebot open (or the reverse). If you want to stay out of training but remain fetchable when a user pastes your URL, allow the *-User agents and disallow the training agents — according to each vendor’s published documentation, which does change.
Keep a sitemap URL in robots.txt (Sitemap: https://example.com/sitemap.xml). You can reuse that list when you draft llms.txt.
What else decides whether a page is usable by AI systems?
Crawler access is necessary, not sufficient. Most AI crawlers do not run your JavaScript the way a full Chrome session does. If the article text, product name or price is only injected in the browser, a fetch of the HTML may look thin or empty.
Other checks that actually change what a bot or an answer engine can see:
- The page returns 200, not a soft-404 or a blocked interstitial.
- There is one clear
title, a useful meta description, and a single H1 that matches the topic. - A canonical URL points at the page you want cited, not at a duplicate or a tracking variant.
noindexis not set in<meta name="robots">or in HTTP headers if you want the page used.- JSON-LD (
Organization,Article,FAQPage,Product,HowTowhere they are accurate) describes the same facts as the visible HTML. Do not mark up an FAQ that is not on the page. - Important content is in the server-rendered HTML.
- Images that matter have alt text.
None of these forces a citation. They remove obvious reasons to ignore or misread the page.
Step-by-step
1. Read your current robots.txt and sitemap
Open https://your-domain.com/robots.txt and note every User-agent / Disallow group that mentions an AI bot, plus any blanket Disallow: /. Confirm that a sitemap is declared and that it loads.
2. Decide training versus fetch access
Write down, for OpenAI, Anthropic, Perplexity and Google-Extended, whether you want training use, on-demand fetching, both, or neither. Edit robots.txt to match, using the exact user-agent names the vendor documents. Deploy, then fetch the file again from a clean URL to make sure a CDN is not serving a stale copy.
3. Publish a short llms.txt at the root
List the handful of pages a model should read first: docs, pricing, about, and your best evergreen explainers. Use absolute URLs. Optionally add /llms-full.txt for longer source text. Link the file from your footer or documentation so humans can find it too.
4. Audit the live URLs, including the homepage
Run an audit that fetches the page without executing JavaScript, parses robots.txt, looks for llms.txt and a sitemap, and lists structured data and on-page issues. Fix high-severity problems (blocked crawlers you meant to allow, noindex, missing title, JS-only main content) before you worry about meta-description length.
Working Python example
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("apizap.com/ai-seo-readiness-audit").call(
run_input={
"urls": ["https://apizap.com"],
"maxPagesPerSite": 5,
"checkSiteFiles": True,
}
)
pages = client.dataset(run["defaultDatasetId"]).list_items().items
for page in pages:
print(page["url"], page.get("score"), page.get("grade"))
print(" llms.txt:", page.get("hasLlmsTxt"))
blocked = page.get("aiCrawlersBlocked") or []
if blocked:
print(" blocked:", ", ".join(blocked))
for issue in (page.get("issues") or [])[:5]:
print(" ", issue.get("severity"), issue.get("message"))
Working JavaScript example
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("apizap.com/ai-seo-readiness-audit").call({
urls: ["https://apizap.com"],
maxPagesPerSite: 5,
checkSiteFiles: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const page of items) {
console.log(page.url, page.score, page.grade, "llms.txt=", page.hasLlmsTxt);
console.log("blocked:", page.aiCrawlersBlocked);
}
The actor checks robots.txt for a fixed list of AI and search bots (including GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, Applebot-Extended, CCBot, Bytespider, meta-externalagent and Amazonbot), looks for /llms.txt and /llms-full.txt, discovers sitemaps, parses JSON-LD, and flags likely JavaScript-only content. Scores are a heuristic for prioritizing work, not a Google rating.
If you need a complete URL list before choosing what to put in llms.txt, extract the sitemap first with the Sitemap URL Extractor and then pick the important docs and product pages from that list.
What does an audit cost?
The audit is $0.004 per page returned ($4 per 1,000) plus $0.005 per run. maxPagesPerSite of 1 audits only the URLs you pass in. A higher value also follows internal links on the same host, which is useful for a quick sample and easy to overdo on a large site — set maxPagesPerSite deliberately.
| Pages audited | Start fee | Page events | Total |
|---|---|---|---|
| 1 | $0.005 | $0.004 | $0.009 |
| 5 (homepage plus a few links) | $0.005 | $0.020 | $0.025 |
| 50 | $0.005 | $0.20 | $0.205 |
| 1,000 | $0.005 | $4.00 | $4.005 |
A five-page sample of a client site therefore costs about two and a half US cents. That is cheap enough to run after every important deploy, which is the point: crawler blocks and accidental noindex are the kind of mistake you want to catch the same day.
FAQ
Will adding llms.txt get me cited in ChatGPT or Google AI Overviews?
There is no public, official guarantee of that. llms.txt is a proposed Markdown convention for pointing language models at useful pages. robots.txt and accessible HTML decide whether a bot can read you. Citations are a separate, unpublished choice by each product.
Is Google-Extended the same as Googlebot?
No. Googlebot is Search. Google-Extended is the token Google documents for generative AI / Gemini use of your content. You can allow one and not the other. Read Google’s current publisher documentation before you change either rule.
Should I block all AI crawlers?
Only if that is a conscious policy. Blocking training bots (GPTBot, ClaudeBot, and similar) is a different decision from blocking user-initiated fetches (ChatGPT-User) or from blocking Google Search. Many sites allow search and user fetches and restrict training; others allow all of them, or none. The wrong outcome is a copy-pasted Disallow you did not mean.
Does the audit execute JavaScript?
No. It fetches public pages and site files with its own user agent and parses the HTML it receives. That is intentional: it approximates what a non-JS crawler sees. If your main content appears only after scripts run, the audit will flag that.
Can I use this as a Google Search Console replacement?
No. Search Console tells you how Google indexed and ranked you. This audit is a page-level checklist for on-page SEO and AI-crawler access. Use both.
SEO & AI Search Readiness Audit on Apify StoreTool pageSitemap URL Extractor on Apify StoreTool page