Content Negotiation: how to prepare your company website for AI agents

Content Negotiation: the same URL answers a request with Accept text/html and one with Accept text/markdown, with Vary: Accept

A few days ago I started asking a simple question about my own website: does it make sense to give an AI agent exactly what I give a person? Menus, buttons, scripts, footers, the lot. A person needs all of that. An agent that only wants to answer a question probably doesn't.

The answer I'm testing has an unglamorous name and decades of history: Content Negotiation. The same URL serves HTML to whoever asks for HTML and Markdown to whoever asks for Markdown. In this article I explain how it works, how it differs from the other options people talk about (Markdown files, llms.txt, Cloudflare's services), how to implement it without breaking your SEO and, above all, what you can and cannot expect from it.

What is Content Negotiation?

Content Negotiation is an HTTP mechanism that lets a server choose, among several representations of the same resource, the one that matches what the client asked for. There is one resource (the "Services" page, say) with one URL. What changes is the representation: format, language or encoding.

Nothing new here. It is defined in section 12 of RFC 9110 and explained in the MDN guide. It is the same principle that already lets a server send WebP images to browsers that support them and JPEG to the rest. What is new is applying it to a reader that barely existed three years ago: the AI agent.

Why should a website think about people and agents?

Because they read differently. A person needs navigation, visual hierarchy, images and forms. An agent looking for an answer needs the text, its structure (headings, lists, tables) and its references. Everything else is noise it has to download, parse and throw away.

And noise has a cost. Language models process text as tokens, and navigation HTML eats tokens without adding anything to the answer. A cleaner version reduces what has to be processed and makes reading more reliable.

Be careful with how far this argument goes. It is about efficiency. It does not prove the content will be used, cited or ranked more. I'll come back to this, because it is exactly where many people jump to conclusions.

HTML, Markdown and Content Negotiation: what is the difference?

Several approaches are doing the rounds, often presented as if they were the same thing. They aren't. And none of them is mandatory.

ApproachWhat it isDoes the agent need to know the address?
Standard HTMLThe page as it has always been served. Still the format search engines index.No
Markdown files with their own URLA Markdown copy published at another address (for example /page.md).Yes, it has to find it
HTTP Content NegotiationThe same URL returns HTML or Markdown depending on the request's Accept header.No
Cloudflare Markdown for AgentsCloudflare converts HTML to Markdown on its network when the request includes Accept: text/markdown.No
Cloudflare Search for AgentsA search index of the site, open to agents at /.well-known/search, returning Markdown excerpts.Found through meta tags
llms.txtA proposed file at the site root listing key pages with short descriptions. Not a standard.Yes

If you take one idea from this table, make it this one: having a Markdown version is not the same as doing Content Negotiation. In the first case the agent has to discover that the version exists and where it lives. In the second, it requests the URL it already knows and says which format it prefers.

Cloudflare's two services are easy to mix up too. Markdown for Agents is Content Negotiation done by the network: it fetches the HTML from the origin, converts it and replies with Content-Type: text/markdown and Vary: Accept. It is available on Pro, Business and Enterprise plans. Search for Agents, announced on 25 November 2026, does something else: it indexes the domain's content so an agent can search inside it instead of opening pages one by one. It returns excerpts with relevance scores, not a written answer. One handles format. The other handles search.

How does Content Negotiation work?

Three HTTP headers. That's it.

  • Accept, in the request: the client says which formats it accepts and in what order. A browser sends something like text/html,application/xhtml+xml,.... A compatible agent can send Accept: text/markdown.
  • Content-Type, in the response: the server says which format it actually delivered, for example text/markdown; charset=utf-8.
  • Vary: Accept, in the response: tells every cache along the way (CDN, proxies, browser) that the response depends on the Accept header. Without it, a cache may store the Markdown version and serve it to a human visitor. Or the other way round.
Browser
GET /servicosAccept: text/html
Content-Type: text/htmlVary: Accept
Full page: navigation, images, forms
Compatible AI agent
GET /servicosAccept: text/markdown
Content-Type: text/markdownVary: Accept
Text, headings, lists, tables and references
One URL serves HTML to the browser and Markdown to the agent that asks for it.

It looks simple, and it is. The problems are in the details, and there are three.

Caching. Without a properly configured Vary: Accept, caches mix representations up. It is the most common mistake and the one that reaches real visitors fastest.

Indexing. Search engines should keep indexing the HTML page. If a separate Markdown URL also exists, it points its canonical to the HTML page and, if you choose not to index it, carries noindex. The care lies in never letting noindex reach the canonical URL (sounds obvious, but it is exactly the kind of thing that happens on a Friday afternoon). The sitemap keeps HTML URLs only.

Equivalence. The Markdown version must say the same as the HTML one. Same content, same facts, same dates. If you show the agent one thing and the person another, you are no longer negotiating formats. You are drifting towards what search engines treat as cloaking. The safest way to guarantee equivalence is to generate the Markdown automatically from the HTML instead of writing it separately.

Case study: what I did on my own website

Before recommending this to clients, I wanted to test it where the risk is mine alone: my personal site, rui-martins.com. I describe the Content Negotiation and AI Search experiment run by Rui Martins in detail on the site itself, and I log every decision in the Build in Public diary, including whatever doesn't go well.

The setup:

  • Development: code built with ChatGPT and Codex, version control on GitHub.
  • Infrastructure: build and delivery on Cloudflare.
  • Automatic Markdown: on every build, Markdown is generated from the HTML in Portuguese and English, keeping headings, lists, tables, references and FAQs.
  • Search for Agents: enabled on the domain.
  • Discovery: alternative versions are advertised through HTTP Link headers and in the page head.
  • Small pilot: Content Negotiation only on the Portuguese and English homepages. HTML remains the default response.
  • SEO untouched: self-referencing canonicals on HTML pages, Markdown versions with noindex and a canonical to the HTML page, sitemap with HTML URLs only, reciprocal hreflang between Portuguese and English.
  • Cookie-free measurement: contact requests are measured server-side, on Cloudflare.
  • No llms.txt: my choice. I want to understand first what the existing mechanisms allow.

Let me be clear about what this is not. It is not a success story. The experiment started at the end of November 2026, I'm still collecting the baseline and, to date, I have no results to show. If someone sells you this as a proven case, be suspicious (even if it's me).

What the case already shows is something else: the implementation is feasible for a small team, it can be done without touching existing SEO, and measurement can be designed from day one. Which, incidentally, is the part most often forgotten.

How to implement Content Negotiation on your company's website

It depends a lot on the CMS and infrastructure. On a custom-coded site, hosted on a platform that lets you control HTTP responses, it is fairly direct. On a hosted CMS where you don't control the server, negotiation usually has to happen in a layer in front of the site (a CDN or a proxy), where the platform allows it. Either way, the sequence we recommend is the same:

  1. Audit the architecture and technical SEO. Indexing, canonicals, hreflang, sitemap, cache and bot rules. Problems here get fixed first. There is no point negotiating formats for a site Google already struggles to read.
  2. Pick a few pages to test. Homepage, one or two service pages, one reference article.
  3. Create equivalent Markdown representations. Ideally generated automatically from the HTML.
  4. Configure negotiation and discovery. Responses by Accept, correct Content-Type, Vary: Accept and discovery mechanisms (Link headers, meta tags).
  5. Validate headers, caching and indexability. Requests with Accept: text/html and Accept: text/markdown, confirm the HTML is still indexable and that caches don't swap representations.
  6. Monitor requests. Which agents ask for Markdown, for which pages, how often.
  7. Measure before rolling out. Widen the scope only when the data justifies it.
1HTMLPrimary source. Indexed. Self-referencing canonical.
2MarkdownGenerated at build time from the HTML. Equivalent content.
3DiscoveryLink headers, meta tags, Search for Agents.
4HTTP negotiationAccept, Content-Type and Vary: Accept.
5MeasurementAgent requests, citations, contacts, opportunities.
SEO preserved: HTML-only sitemap, Markdown with noindex and canonical to HTML, reciprocal hreflang.
Delivery architecture: HTML is the source, Markdown is derived, and everything is measured.

Does Content Negotiation improve SEO or AI Search visibility?

Short answer: we don't know. And today there isn't enough evidence to present it as a ranking factor.

Long answer: five things usually get mixed up and need separating.

  • Access: can the agent reach and read the content?
  • Efficiency: how much noise does it have to process to get to the information?
  • Use: does the system actually use that information to build the answer?
  • Citation: does the answer name your company as a source?
  • Recommendation: does the answer suggest your company as an option?

Content Negotiation affects the first two. The other three depend on things no format solves on its own: the quality and originality of the information, brand authority, presence in third-party sources and how each system picks its sources.

Google leaves little room for doubt. Its guidance on AI features in Search says there are no additional technical requirements to appear in AI Overviews or AI Mode, and no need to create new machine-readable files. The page must be indexed and eligible to show with a snippet. The rest is SEO, as it always was.

So Content Negotiation is a reasonable experiment for sites that already have the basics in place. It is not a shortcut for those that don't.

How to measure impact

At SmartLinks we work on AI Search with a five-step model. Each step depends on the one before:

Findable → Interpretable → Citable → Recommendable → Actionable

01 · Content NegotiationFindableContent is reachable and crawlable.
02 · Content NegotiationInterpretableInformation is read without ambiguity.
03CitableUsed and cited as a source.
04RecommendableThe brand is suggested as an option.
05 · commercial measurementActionableDrives contacts and opportunities.
Content Negotiation acts mainly on the first steps. Commercial measurement starts when visibility turns into action.

Content Negotiation acts mainly on the first two: it makes content easier to reach and consume. So counting Markdown requests and stopping there means measuring half the journey (and the less interesting half). Evaluation has to cover the whole chain:

  • crawling by agents (who asks, how often);
  • resource consumption (which pages, in which format, how much is saved);
  • mentions and citations in AI answers, using repeatable, documented tests;
  • brand recommendations in relevant commercial questions;
  • traffic from AI platforms;
  • contact requests;
  • qualified sales opportunities;
  • revenue.

Two caveats, because they matter. AI Search monitoring tools don't cover every platform in the same way, so know exactly what each one measures before comparing numbers. And a rise in contacts after a change does not prove the change caused it.

In the end, the metric that matters is neither traffic nor citations. It is the contribution to the business, measured as opportunities in the CRM.

Frequently asked questions

What is HTTP Content Negotiation?

It is the HTTP mechanism, defined in RFC 9110, that lets a server choose between several representations of the same resource (format, language, encoding) based on what the client says it accepts, while keeping the same URL.

Do I need Markdown versions to appear in ChatGPT?

No. There is no evidence that it is a requirement. ChatGPT and the other systems read HTML. Markdown can make reading more efficient, but it is not a condition for access.

Does Content Negotiation improve Google rankings?

No direct benefit has been shown. Google says no special formats or files are needed to appear in its AI features. It is a delivery mechanism, not a ranking factor.

Do I have to use Cloudflare?

No. Content Negotiation is part of HTTP and can be implemented on any server or CDN that lets you control responses. Cloudflare has services that make it easier, but it is not the only option.

What is the difference between Markdown for Agents and Search for Agents?

Markdown for Agents converts HTML pages to Markdown when an agent asks for it. Search for Agents builds an index of the site and lets the agent search inside it, returning relevant excerpts. One handles the format of each page. The other handles search within the site.

Do I need llms.txt?

It is neither a requirement nor a standard. It can be an interesting experiment, but it does not replace technical SEO, good content architecture or quality information. On my site, for now, I chose not to have one.

How can I test whether a website supports Content Negotiation?

Send two requests to the same URL (with curl or another command-line tool), one with Accept: text/html and one with Accept: text/markdown. Compare the Content-Type, whether Vary: Accept is there, and the content that comes back.

Are there risks for traditional SEO?

Yes, if implementation is careless: caching without Vary: Accept, noindex applied by mistake to the canonical page, Markdown URLs in the sitemap or versions with different content. With a prior audit, a small pilot and validation, the risks are easy to control.

Diagnose before you implement

Before implementing new technology, it is worth knowing whether your company's website is ready to be found, interpreted and used by search engines and AI agents.

On most sites we analyse, what holds visibility back is not the content format. It is indexing, architecture or, quite simply, a lack of clear information about what the company does. And no Markdown fixes that.

If you want to know where your website stands, talk to us about an SEO and AI Search diagnostic. You can also see how we work on SEO and AI Search.

This article was produced with the support of generative artificial intelligence and reviewed by SmartLinks specialists, namely the article's author.

Insights · 46 articles published

Get the Insights, without the noise

Frameworks and analysis for people building predictable revenue in B2B. We write when we have something to say, not to fill a calendar.

One email per post. Unsubscribe anytime.

Next step

Where is your system failing?

Before we make any proposal, we assess your growth system. 10–15 working days. No obligation.

10–15 working days · No obligation · B2B companies