Machine Discovery & llms.txt

Technical SEO & AI Infrastructure

What llms.txt Does for a Blog and How to Set It Up

The short answer

For blogs, llms.txt is a proposed Markdown guide to the site, with a summary and links to useful pages. PublishAnswers.com generates one for hosted blogs. It can help tools that choose to read it, but it is not a crawler permission file, a Google indexing requirement or a guarantee of AI citations.

What to put in an optional Markdown directory, and how it differs from a sitemap and crawler rules.

PublishAnswers.com Editorial Team(Product and search team)4 min readUpdated
Technical architecture diagram showing how robots.txt crawler rules, llms.txt markdown index, and sitemap.xml feed AI answer engines
Pairing explicit AI crawler permissions in robots.txt with a structured /llms.txt markdown index gives answer engines an instant map of your site.
On this page▸

What is llms.txt, and why isn't sitemap.xml enough?

A sitemap lists public URLs for search engines. An llms.txt file can give a tool that reads it more context about what each page covers.

Place the optional Markdown file at /llms.txt. Describe the site in a few sentences and link to useful canonical pages with a short note about each one.

Keep the pages themselves accessible and useful. The directory is a proposal, and different tools decide whether to read it.

robots.txt vs sitemap.xml vs llms.txt side by side

Each machine discovery file at the root of your blog serves a distinct consumer and purpose:

Comparison of robots.txt, sitemap.xml, feed.xml, and llms.txt on a modern blog
Discovery FileFormatPrimary ConsumersCore Job
/robots.txtPlain text directivesAll search & AI crawlersGrants or denies crawl access per user-agent and points to sitemap.xml
/sitemap.xmlXML Sitemap protocolSearch enginesLists canonical public URLs and their update dates
/feed.xmlRSS 2.0 XMLFeed readers, aggregators, syndicationStreams chronological post headlines, summaries, and publication dates
/llms.txtMarkdown (UTF-8)LLMs, AI agents, RAG retrieversProvides a concise semantic map of site overview, guides, and post excerpts

How to format an llms.txt file (with a production example)

Test the directory the way a reader would. Follow the link to the most important guide, check that it opens the public article and compare its address with the canonical in the HTML. Replace an old alias or a link to a draft with the current public URL. If the Markdown file disappeared tomorrow, your main navigation and sitemap should still lead to the guide.

A clean llms.txt guide follows a predictable Markdown hierarchy: an H1 with your site or publication name, a blockquote summarizing the site in one or two sentences, and H2 sections grouping your core pages and published articles with short descriptions.

Example /llms.txt structure served automatically by a PublishAnswers.com blogmarkdown
# Acme Cloud Engineering Blog

> Practical guides on PostgreSQL scaling, zero-downtime migrations, and Kubernetes cost control by the Acme Cloud team.

## Core Pages

- [Blog Home](https://blog.acme.com/): All engineering articles and tutorials
- [About Acme](https://acme.com/about): Platform architecture and team

## Published Articles

- [Zero-Downtime Postgres Migrations](https://blog.acme.com/zero-downtime-postgres-migrations): How to add columns, backfill data, and swap constraints without locking production tables.
- [Kubernetes Request vs Limit Tuning](https://blog.acme.com/kubernetes-cpu-memory-tuning): Benchmarks for right-sizing pod memory requests and eliminating OOMKilled restarts.

How to set separate policies for AI search and training crawlers

Decide which public articles you want search services to fetch. OAI-SearchBot, Claude-SearchBot and PerplexityBot support search. OpenAI’s GPTBot and Anthropic’s ClaudeBot collect material for model development. Each provider documents how to set its permissions.

In this example, the publisher welcomes search crawlers on the blog and opts out of collection by two training crawlers. The first group excludes application routes, which also need authentication. Replace the example domain with your own.

Example robots.txt for a blog that allows search and opts out of training by GPTBot and ClaudeBottext
User-agent: *
Disallow: /app/
Disallow: /api/

User-agent: GPTBot
User-agent: ClaudeBot
Disallow: /

Sitemap: https://example.com/sitemap.xml

How PublishAnswers.com automates machine discovery files on every blog

Maintaining discovery files by hand breaks down as soon as you publish weekly or translate articles into multiple languages. In PublishAnswers.com, the moment you create a blog—whether on yourname.pixelclaw.app or a custom domain—the platform automatically serves /sitemap.xml, /robots.txt, /feed.xml, and /llms.txt.

When a new article clears the publish bar and goes live, it is added to sitemap.xml and llms.txt immediately, and eligible blogs can notify IndexNow and Google Search Console without manual scripts.

Key Takeaways
  • While sitemap.xml lists raw URLs for traditional crawlers, llms.txt gives language models a curated Markdown directory with titles and descriptions.
  • Check your crawler settings and firewall rules. Training crawlers, search crawlers and user-requested fetchers have different purposes; allow or block them according to your publishing preferences.
  • Protect private routes with authentication. robots.txt guides compliant crawlers but does not prevent unauthorized access or guarantee removal from search.
  • Every hosted PublishAnswers.com blog automatically generates and updates /llms.txt, /sitemap.xml, /robots.txt, and /feed.xml whenever a post is published or unpublished.
  • Use supported sitemap submission and IndexNow notifications to report updates. Search engines control crawl timing, indexing and rankings.

Frequently Asked Questions

Does llms.txt replace sitemap.xml or robots.txt?

No. A sitemap lists the canonical pages you want crawled. Robots.txt describes which paths a compliant crawler may visit. You can also publish an llms.txt guide for tools that choose to use it.

What is the difference between /llms.txt and /llms-full.txt?

The root /llms.txt file is a compact index listing your site summary and annotated links to key pages and posts so an AI agent can quickly choose which URL to fetch. An optional /llms-full.txt file expands the full documentation or product specifications inline in a single Markdown document.

What happens if my robots.txt blocks AI crawlers?

A robots.txt rule applies to the crawler named in that rule. Blocking a training crawler is different from blocking a search crawler. Review each provider's documented user agents and your firewall settings; crawler access alone does not guarantee that an assistant will retrieve or cite a page.

How does IndexNow work with my blog's sitemap?

IndexNow can notify participating search engines when a URL changes. Keep the sitemap current as a separate record of public URLs. The search engine decides when to crawl and index the page.

Do translated blog posts appear in sitemap.xml and llms.txt?

Yes. Published translations appear as distinct public URLs with their own localized titles and excerpts, paired with hreflang alternate tags so search and AI engines serve the right language version.

Sources

  1. llmstxt.org: The /llms.txt Proposed Standard Specification — llmstxt.org (Defines the markdown format for /llms.txt and /llms-full.txt files at the root of a domain.)
  2. OpenAI Platform Documentation: GPTBot and OAI-SearchBot User-Agent Tokens — OpenAI (Lists official robots.txt user-agent tokens and IP ranges for OpenAI crawlers.)
  3. How Anthropic uses its web crawlers — Anthropic (Explains the purposes of Claude-SearchBot, Claude-User and ClaudeBot.)
  4. Perplexity crawlers — Perplexity (Describes which crawler surfaces links in search and how user-requested fetches work.)
  5. IndexNow.org: Instant Search Engine URL Notification Protocol — IndexNow (Documents real-time URL ping mechanics supported by Microsoft Bing, Yandex, Naver, and Seznam.)
Tags:llms.txtGPTBotClaudeBotPerplexityBotrobots.txtIndexNow

Built & scored using PublishAnswers.com

More from this blog

Continue exploring autoblogging architecture, AI blog writing, and SEO / AEO / GEO playbooks.

All posts
Diagram of the five areas in PublishAnswers.com's content score
Search & AI DiscoveryAEO & GEO Playbook
Score: 100/100

AEO vs GEO vs SEO: What Each One Means for Your Blog

Search visibility now spans traditional blue links, direct answer snippets, and generative AI citations. Here is how SEO, AEO, AIO, GEO, and SXO work together on every post.

PA

PublishAnswers.com Editorial Team

Product and search team

5 min

Playbooks · Programmatic SEO vs Autoblogging: Which Architecture Builds Stronger Organic Traffic?, Source-Grounded AI Writing: How to Reduce Hallucinated Stats and Dead Links in Automated Blogs, B2B SaaS Autoblogging: Build Useful Guides and Measure Qualified Demos