Agent-ready responses
Last reviewed
AI agents that ask for Markdown get a clean Markdown copy of the same rendered page. Crawlers keep getting the full HTML page, and people keep getting your site exactly as it is today. The feature is off until you turn it on for a domain.
What it does
An agent can ask for Markdown in two ways:
- A
.mdURL:https://example.com/pricing.mdasks for the Markdown ofhttps://example.com/pricing./index.mdmaps to the home page. - An
Acceptheader: a request forhttps://example.com/pricingwithAccept: text/markdown(ortext/markdownwith a higher q value thantext/html). AnAcceptof*/*alone never asks for Markdown.
Your integration sends these requests to Prebaked whatever the user agent. Prebaked takes the rendered HTML of that page and returns its main content as Markdown: navigation, the site header and footer, sidebars, cookie and consent banners, scripts and styles are left out. A request that does not ask for Markdown takes the normal route: crawlers get the prerendered HTML and people get your site.
Same content, a different format
The Markdown is made from the same rendered page a crawler gets. Nothing is added and nothing is written for agents only. Only the format changes, so this is not cloaking. See SEO safety and cloaking.
Every Markdown answer carries these headers:
| Header | Value | Why |
|---|---|---|
Content-Type |
text/markdown; charset=utf-8 |
The agent knows it got Markdown. |
Link |
<https://example.com/pricing>; rel="canonical" |
Points to the HTML page as the original. |
X-Robots-Tag |
noindex |
Search engines do not index the Markdown copy next to your page. |
Vary |
Accept |
Caches keep the HTML and Markdown answers apart. |
Redirects and error pages keep their status: a page that answers 404 to a crawler answers 404 as Markdown too.
It counts as the same page
The Markdown copy is stored next to the HTML of the page and counts as the same page on your plan. Turning the feature on does not add pages to your count. It is included on every plan, the free trial too. See What counts as a page.
Turn it on and choose pages
- Open the domain's Settings and find Agent-ready responses.
- Turn it on. The default is All pages, with exceptions, with no exceptions.
- Choose which pages:
- All pages, with exceptions: every page is agent-ready except the path patterns you list.
- Only these pages: nothing is agent-ready until you list it.
Switching between the two clears the list.
Path patterns:
| Pattern | Matches |
|---|---|
/pricing |
That page only. |
/docs/* |
One level below /docs, for example /docs/setup. |
/blog/** |
/blog and every page below it, at any depth. |
A trailing slash makes no difference, and paths are case sensitive. Leave out the query (?) and the fragment (#).
You can also switch single pages in the dashboard's Bots view. The table Pages AI reads most shows how many times agents asked for each page as Markdown (Markdown asks) and has an Agent-ready switch per page. View opens a dialog with the HTML a crawler gets next to the Markdown an agent gets, and the same switch.
When Markdown is off for a domain or a page, Prebaked answers the integration with X-Prebaked-Markdown: off, and your integration serves the request as it did before: a .md URL goes to your site, and a crawler that asked with Accept gets the normal prerendered HTML.
Integrations that support it
| Integration | Markdown requests |
|---|---|
| Cloudflare Worker | Yes |
| Netlify | Yes |
| Vercel | Yes |
| nginx | Yes, with one limit (below) |
| Express | Yes, with the prebakedMarkdown middleware mounted before the prerender middleware |
nginx limit: plain nginx cannot compare q values in the Accept header. It sends a request as Markdown only when text/markdown is listed without a q value (q=1) and text/html is not listed before it at q=1. An Accept with a fractional q for Markdown takes the normal route. .md URLs work as on the other integrations, except that a Markdown answer for a page that is itself 404 goes to your site.
If your integration was installed before agent-ready responses existed, update it from the setup guide. See Choose an integration and the guides on Integrations.
Test it with curl
Ask with a .md URL:
curl -s https://example.com/pricing.md
Ask with the Accept header:
curl -s -H "Accept: text/markdown" https://example.com/pricing
Both should print Markdown. Add -i to see the headers: Content-Type: text/markdown; charset=utf-8, the canonical Link and X-Robots-Tag: noindex. If you get your normal page instead, check that the feature is on for the domain and the page, and that your integration is up to date. A page Prebaked has not rendered yet may take a moment the first time. For HTML checks, see Check that it works.
FAQ
Is serving Markdown to agents cloaking?
No. The Markdown is the main content of the same rendered page that crawlers and people get, in a different format. Nothing is added or changed for agents.
Will the Markdown copy show up in search results?
It is sent with X-Robots-Tag: noindex and a canonical link to the HTML page, so search engines keep indexing your HTML page.
Does it cost extra?
No. It is on every plan, the free trial included, and the Markdown copy counts as the same page as its HTML.
Do crawlers start getting Markdown?
No. Only requests that ask for Markdown with a .md URL or the Accept header get it. Crawlers that ask for HTML keep getting the prerendered HTML.
What happens to my own .md files?
When Markdown is off for that path, or Prebaked cannot answer, the request goes to your site as before. To keep your own .md files served by your site, add their paths as exceptions without the .md ending: /notes for /notes.md, or /guides/** for a folder of them.