- A machine-readable website lets AI agents get in, read the page, and, where you choose, take actions on it.
- Each AI company runs separate crawlers for training, search, and live user requests, and robots.txt lets you allow or block each one separately.
- Most AI crawlers don't run JavaScript, so content that only appears after scripts run is invisible to them.
- WebMCP lets agents use your forms directly. Chrome is testing it now.
- Chrome's Lighthouse now has an Agentic Browsing check you can run on any page today.
To make a website work for AI agents, start with access: allow the AI crawlers you want in robots.txt and your firewall. Then make sure each key page's text is in the HTML the server sends, without JavaScript.
Last, if you want agents to do things on your site, like book a demo or search a catalog, expose those actions as tools through WebMCP or an MCP server.
What Is a Machine-Readable Website?
A machine-readable website is one an AI agent can use without a person in between. The agent can fetch the pages, read what's on them, and, where the site allows it, take an action such as searching a catalog or booking a call.
That's a different goal from answer engine optimization. AEO is about getting your brand cited in an AI answer, while this is about whether an agent can get through your site at all.
The work splits into three layers, and each one only pays off once the one before it works:

If the difference between an agent and other AI tools is fuzzy, we cover it in AI Tools vs AI Agents vs AI Workflows.
Layer 1: Let the Right AI Crawlers In
AI crawler optimization starts with a decision most sites make by accident: which bots get through. OpenAI and Anthropic each run separate crawlers for separate jobs, and robots.txt lets you allow or block each one separately.
| Company | Crawler | What it does | If you block it |
|---|---|---|---|
| OpenAI | GPTBot | Collects content that may train OpenAI's models | Your future content stays out of training |
| OpenAI | OAI-SearchBot | Indexes pages for ChatGPT search | Your pages stop showing in ChatGPT search answers |
| OpenAI | ChatGPT-User | Fetches a page when a user asks ChatGPT about it | Robots.txt may not apply, since a person asked |
| Anthropic | ClaudeBot | Collects content that may train Claude | Your future content stays out of training |
| Anthropic | Claude-SearchBot | Indexes pages for Claude's search results | Your site may show up less in Claude's answers |
| Anthropic | Claude-User | Fetches a page when a user asks Claude about it | Claude can't read your page for that user |
The table comes from OpenAI's crawler documentation and Anthropic's crawler article. Most B2B sites want the search and user agents in, whatever they decide about training.
A robots.txt that keeps both companies' training crawlers out and lets their search and user agents in looks like this:
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: Claude-SearchBot
Allow: /Keep three things in mind. First, OpenAI says a robots.txt change can take about 24 hours to reach its search. Second, Anthropic asks for rules on every subdomain you want covered.
Third, a firewall or CDN bot setting can block AI crawlers before they read robots.txt at all. If your server logs show no visits from these bots, check those settings first.
As of October 30, 2026, Anthropic also honors a newer machine-readable "no AI training" signal, based on IETF draft work. A rule that names ClaudeBot still wins over it.
Last, keep your sitemap current. Short redirects matter too: in Vercel's crawl study, ChatGPT's and Claude's crawlers spent about 34% of their fetches on 404 pages, against about 8% for Googlebot.
Layer 2: Make Every Page Readable Without JavaScript
A crawler that can reach a page can't always read it. In a December 2024 study, Vercel and MERJ watched AI crawler traffic for months, and none of the major AI crawlers ran JavaScript, including OpenAI's three, Anthropic's ClaudeBot, and PerplexityBot.
The crawlers did download JavaScript files. They never ran them. Only Google's Gemini, which uses Googlebot, and Apple's crawler rendered pages fully.
So a pricing table, a product spec, or an FAQ that loads after the page's scripts run is blank to most AI tools, even when it ranks in Google. To see what a crawler gets, fetch the page without a browser:
curl -s https://yoursite.com/pricing | grep -i "per month"If the words you need aren't in that output, render that content on the server.
For a full guide to rendering for AI crawlers, with a 30-minute audit you can run on your own pages, read TripleDart's research: Why Your Site Is Invisible to ChatGPT and Claude.
Describe the Page in Structured Data
Schema.org markup tells any parser what a page is: a product, an event, an article, an organization. It's also what Microsoft's NLWeb, covered below, reads to answer questions about your site.
Add an llms.txt File
llms.txt is a proposal by Jeremy Howard for a Markdown file at your site's root that points AI tools to your most useful pages. Version 2, published August 10, 2026, adds standard links from each HTML page to a Markdown copy of it.
It's still a proposal, with no promise that any given AI crawler reads it. It costs little to add. OpenAI, Anthropic, and Google each publish one for their own developer docs.
Label Every Button and Field
Agents that use a page, as well as read it, work from the page's accessibility tree. That's the same structure screen readers use. Chrome's guidance on agentic browsing calls it agents' primary data model.
So accessibility work is also agent work. Every button, link, and form field needs a name a machine can read. The layout should also stay still while the page loads, since an agent clicks where it saw an element.
Layer 3: Let Agents Take Actions on Your Site
An agent that can read your site can still get stuck on it. It has to guess which field is which. Then it clicks through your forms like a person would, and hopes nothing moves.
The third layer replaces that guessing with tools: actions you name and describe, which an agent calls directly. Three routes exist today, each at a different stage.
| Route | Where it runs | What you build | Status as of November 2026 |
|---|---|---|---|
| WebMCP | In the visitor's browser, on your page | Attributes on your existing forms, or JavaScript tools | A proposed web standard, in a Chrome origin trial from Chrome 149, with experimental support in React, Angular, and Vue |
| An MCP server, such as NLWeb | On your server | A server agents connect to, often built from the Schema.org you already publish | MCP is an open protocol, and NLWeb is open-source code from Microsoft |
| agents.json | A file on your site, over your API | A JSON file describing multi-step API flows, built on your OpenAPI spec | An early open proposal at version 0.1.0 |
WebMCP: Turn Your Forms Into Tools
WebMCP is a proposed web standard from Google's Chrome team and Microsoft's Edge team. Its simplest form needs no new code: you add two attributes to a form you already have, and an agent in the browser sees it as a named tool.
<form toolname="book_demo"
tooldescription="Book a 30-minute product demo with the sales team">
...your existing fields...
</form>For anything more complex, a page can register JavaScript tools with document.modelContext.registerTool(). Chrome's WebMCP docs cover both, plus the origin trial that lets a site run it for live visitors.
Older tutorials use navigator.modelContext, an earlier name the current draft replaced, so check the date on any guide you follow.
MCP for Websites: NLWeb and Your Own Server
The Model Context Protocol is how AI assistants connect to outside tools. A website can run an MCP server so that agents query it directly, with no page loads at all.
Microsoft's NLWeb is the shortest route there for a content-heavy site. In Microsoft's announcement, every NLWeb instance is also an MCP server, answering natural-language questions from the Schema.org and RSS a site already publishes.
agents.json: Describe Your API's Flows
agents.json is an open specification from Wildcard AI, built on OpenAPI. It adds flows, which chain several API calls into one outcome, and proposes a home at /.well-known/agents.json.
It suits a product with a public API more than a marketing site, and at version 0.1.0 it's early. A team that already maintains an OpenAPI spec can try it at little cost.
Where to Start: An AI Agent Website Optimization Checklist
Work through these in order, since each step depends on the one before it:
- Read your server logs. Look for GPTBot, OAI-SearchBot, ClaudeBot, and Claude-SearchBot.
- Set robots.txt per crawler. Decide on training and search separately.
- Fetch your five most important pages without a browser. Use the curl test above on your home page, pricing, and top product pages, and move anything missing into the HTML the server sends.
- Run Lighthouse's Agentic Browsing check. It checks the accessibility tree, layout stability, llms.txt, and any WebMCP tools.
- Add structured data and an llms.txt file. Mark up products, events, and articles, and point the llms.txt file to the pages you'd want an agent to read first.
- Pick one action to hand to agents. A demo booking or a product search is a good first tool, since the form already exists.
The Lighthouse check in step 4 is new and labeled experimental. It needs Chrome 150 or later. It reports a pass ratio in place of a score out of 100, because in Chrome's words the standards for the agentic web are still emerging.