# What is Markdown content negotiation, and how should a website serve agents?

> Markdown content negotiation is answering the same URL with Markdown when the client asks for it (`Accept: text/markdown` or a `.md` path) and with the HTML page otherwise, so a browser, a search crawler and an AI agent each get the representation they can use, with `Vary` set so caches keep them apart.

## What is Markdown content negotiation?

Markdown content negotiation is an HTTP convention: one URL, two representations. A browser or a crawler that sends `Accept: text/html` receives the HTML page with its title, description, canonical link and structured data; a client that sends `Accept: text/markdown`, or requests the `.md` twin of the path, receives the page's words as Markdown, which is smaller and easier for a language model to read. The server adds `Vary: Accept` (and `Vary: User-Agent` if the user agent is part of the decision) so a cache never hands the Markdown body to a browser or the HTML body to an agent. The convention sits next to `llms.txt`, which indexes the pages, and `llms-full.txt`, which bundles their text; the [llms.txt proposal](https://llmstxt.org/) describes the `.md` twin as the per-page companion of that index.

## Who should get HTML, and who should get Markdown?

HTML should go to anything that indexes or quotes pages, and Markdown to anything that only reads them. Search engines and answer engines (Googlebot, Bingbot, OAI-SearchBot, Claude-SearchBot, PerplexityBot, Applebot) index the HTML's title, description, canonical and JSON-LD, so a Markdown body served to them loses the metadata that decides how the page appears and is cited; the same is true of the training crawlers (GPTBot, ClaudeBot), which read HTML fine. Plain tools with no stated preference (curl, python-requests, Go and Node HTTP clients, an MCP client) are usually a script or an agent reading for a task, and Markdown serves them better. Keep the two representations content-equivalent: Google's guidance on serving different content to different clients treats a Markdown body that says something else as cloaking, and a page nobody can compare is a page nobody should trust.

## Do AI crawlers like GPTBot ask for Markdown?

No crawler vendor documents it, and the clients known to ask for Markdown are coding agents, not crawlers. OpenAI's [bots page](https://developers.openai.com/api/docs/bots) documents GPTBot, OAI-SearchBot, ChatGPT-User and OAI-AdsBot by user agent and says nothing about the `Accept` header they send or about Markdown; Anthropic's [crawler page](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler) documents ClaudeBot, Claude-User and Claude-SearchBot the same way. Cloudflare's [Markdown for Agents](https://blog.cloudflare.com/markdown-for-agents/) post (12 February 2026) names Claude Code and OpenCode as clients that send `Accept: text/markdown`, converts the origin's HTML for any request that lists `text/markdown` in `Accept` ([reference](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)), and reports an 80% token reduction on one of its own posts (16,180 HTML tokens against 3,150 as Markdown); its Radar data in the same post shows Markdown being returned to OAI-SearchBot, which under that feature only happens on a request that asked for it. So the practical rule stands: let the crawlers keep the HTML they index from, answer `Accept: text/markdown` with Markdown for the agents that send it, and test both with `curl` rather than assume what a bot sends.

## How does wakeagents.ai do it?

wakeagents.ai serves every docs page three ways from one URL. A request with `Accept: text/html`, or from a browser or a named crawler, gets the HTML page; a request for `/wake/docs/<slug>.md`, or with `Accept: text/markdown`, gets the Markdown; a plain tool with `Accept: */*` and a non-browser user agent gets Markdown too. Each response carries `Vary: Accept, User-Agent` and a `<link rel="alternate" type="text/markdown">` points from the HTML to its twin. For example:

```bash
curl -s -H "Accept: text/markdown" https://wakeagents.ai/wake/docs/agent-ready | head -5
curl -s -o /dev/null -w "%{content_type}\n" -A "Mozilla/5.0 (compatible; PerplexityBot/1.0)" https://wakeagents.ai/wake/docs/agent-ready
```

The first prints Markdown; the second prints `text/html; charset=utf-8`. The landing page does the same at `/` and `/index.md`, and the public agent readiness score comes as JSON at `/api/v1/wake/score?host=` or as Markdown at `/api/v1/wake/score.md?host=`.

## How does a Wake customer turn it on for their own site?

A Wake customer switches on "Serve Markdown to agents" under Fixes, and the Wake tracker on their site (a Cloudflare Worker, Express middleware or Next.js middleware) answers an agent that prefers `text/markdown` with the page's own words plus, at the end, the links to what can be done on the site. Browsers, requests with a cookie and search crawlers keep getting the HTML. The check is one request: `curl -s -H "Accept: text/markdown" -A "WakeMarkdownCheck/1.0" https://your-site/`. The Read question of the [agent readiness score](/wake/docs/agent-ready) checks whether a site answers Markdown when asked, next to the checks that the HTML itself carries its content without JavaScript.

## How do I start, with no account and no key?

Starting with Wake is one GET request for the free report and one POST request for the 7-day trial; neither needs an account or a key. What the report measures is defined in [What is an agent-ready website?](/wake/docs/agent-ready).

- The free readiness report for any public site: `GET https://wakeagents.ai/api/wake/v1/public/readiness?host=example.com`
- Start the free 7-day trial for a site you own: `POST https://wakeagents.ai/api/wake/v1/public/signup` with JSON `{"site":"https://your-site.example","email":"you@your-site.example","terms_accepted":true}` (a GET on that URL returns the exact request). The answer carries the desk URL, an API key and the tracker file to install.
- The same three tools over MCP: `https://wakeagents.ai/api/wake/v1/public/mcp` (wake_check_site, wake_signup, wake_about).
