DocumentationLogin
Enterspeed logo
Enterspeed Blog
Product

Is your website ready for agents? Markdown, structured data and WebMCP

Jesper Weber
Jesper Weber
Developer Experience Engineer at Enterspeed
Thumbnail for blog post: Is your website ready for agents? Markdown, structured data and WebMCP

Your website was built for people. It has navigation, layout, images, cookie banners and carefully designed product pages. All of that helps a person find their way around.

For an AI agent, most of it is noise.

When someone asks an assistant to compare two of your products, find a page in your docs or check your opening hours, the agent often ends up reading your website. It downloads HTML built for a browser, strips away what it can, and tries to reconstruct the facts. Sometimes it gets it right. Sometimes it picks up a price from a "related products" box or misses the table that had the answer.

You can make that a lot easier. Here are the main options, starting with what works today.

1. Markdown versions of your pages

Markdown is the format language models are most comfortable with. It keeps headings, lists, tables and links, and leaves out everything else. A markdown version of a page is often a fraction of the size of the HTML, and much easier to read correctly.

There are a few common ways to offer it:

  • A .md version of each page, so /products/cordless-drill is also available at /products/cordless-drill.md. To avoid duplicate content in search engines, serve the .md version with a canonical Link header pointing to the HTML page, or with an X-Robots-Tag: noindex header.

  • Content negotiation, where a request with Accept: text/markdown gets markdown back from the same URL. Set a Vary: Accept response header and include the Accept header in your CDN or cache key, so a cached markdown response isn't served to browsers, or a cached HTML response to agents.

  • A link in the page head, such as <link rel="alternate" type="text/markdown" href="...">, so agents that read HTML can find the markdown version.

Our own documentation works this way: every page is also available as markdown, which makes it easier for coding agents to use the docs correctly.

2. An llms.txt index

llms.txt is a proposed convention: a markdown file at the root of your site that lists your most important pages with a short description of each, linking to their markdown versions. Think of it as a table of contents for agents.

It's cheap to add and doesn't hurt, but be realistic about it. Support among agents is still uneven, and it's no substitute for good pages. Treat it as a useful extra, not the main strategy.

3. Structured data (schema.org)

Structured data in JSON-LD has been around for years, mostly for search engines. It describes the facts on a page in a standard vocabulary: this is a Product, it has this name, this price, this availability. Search engines and agents already read it.

It's not exciting, but it's widely supported, it works today, and it removes guesswork for the facts that matter most. If your product pages don't have it yet, that's probably the highest-value item on this list.

4. Looking ahead: WebMCP

WebMCP is a proposed web standard that lets a website register tools that an agent in the user's browser can call. Instead of clicking through a search form, the agent could call a searchProducts tool your page provides, with typed parameters and a structured result.

It's a promising idea, because the website declares what it can do instead of the agent guessing from the page. But it's early. It's currently (November 2026) being trialled in Chrome, and the API has already changed once during 2026. We'd suggest following it and experimenting, but not building anything critical on it yet.

Where Enterspeed fits

All of these are different representations of the same content. The HTML page, the markdown version, the JSON-LD block, the llms.txt entry and a WebMCP tool result all describe the same product or article.

If your website is built headless on Enterspeed, that content already exists in structured form, as views shaped by schemas. That makes agent-friendly formats much easier to produce, because you're generating them from structured data rather than converting HTML after the fact.

Markdown from the view your page already uses. The simplest approach is often to let the frontend render markdown from the same view it uses for HTML. Same data, different template. If you'd rather keep it in Enterspeed, you can create a schema that produces a markdown representation and give it a route, so the frontend or an edge function can serve it on the .md URL:

1/** @type {Enterspeed.FullSchema} */
2export default {
3  triggers: function (context) {
4    context.triggers('cms', ['article']);
5  },
6  routes: function (sourceEntity, context) {
7    context.url(`${sourceEntity.url}.md`)
8  },
9  properties: function (sourceEntity, context) {
10    const p = sourceEntity.properties;
11    return {
12      markdown: `# ${p.title}\n\n${p.teaser}\n\n${p.bodyMarkdown}`
13    };
14  }
15};

One thing to be aware of: if the body is stored as rich text HTML in the CMS, converting it to markdown inside a schema can get messy. That's usually a good reason to do the conversion in the frontend instead.

Structured data as part of the view. JSON-LD can be built in the schema as a property on the view, so the frontend just outputs it. The facts in the JSON-LD then come from exactly the same data as the facts on the page, which avoids the classic problem of the two drifting apart.

llms.txt from an index. An index of your pages with title, URL and a short description is all you need to generate an llms.txt file. A small function on your site can query the index and output the list, so it stays up to date as content changes. See examples on our doc site.

WebMCP tools backed by your existing APIs. When WebMCP matures, the tools a page registers will need data to return. If your site already reads from Enterspeed, the tool handlers can call your own backend, which reads from the same views and indexes. Route those calls through your backend rather than exposing an Enterspeed key in the browser.

Things to plan for

Keep representations consistent. The more formats you offer, the more places a price or a date can drift. Generating them all from the same data, rather than maintaining them separately, is what keeps them in sync.

Decide what you want agents to see. Agent-friendly formats make your content easier to use, including by crawlers training models. Have a clear policy for which agents and crawlers you allow, and express it in robots.txt alongside the formats you offer.

Measure it. Look at your logs for requests to .md URLs, Accept: text/markdown headers and known agent user agents. It tells you whether the effort is paying off and which content agents actually use.

Don't forget the basics. Clear headings, real tables instead of images of tables, descriptive link text and server-rendered content help agents as much as any new format. They help people too.

In general, most of what you already do to optimise your website for SEO also helps agents, so you don't have to start over when optimising for agents.

Summary

Agents are already visiting your website on behalf of your users, and most websites make them work harder than necessary. Markdown versions of pages and structured data are practical improvements you can make today. llms.txt is a cheap extra, and WebMCP is worth following as it develops.

If your content lives in a data layer like Enterspeed, all of these are just different representations of data you already have in structured form. You add a template or a schema rather than a new pipeline.

Build for people, and make it easy for the agents working on their behalf.

Want to know how agents can query your data directly instead of going through your website? Read Agents are your newest consumer.

Jesper Weber
Jesper Weber
Developer Experience Engineer at Enterspeed

Loves building software that makes an impact on businesses. Untalented but happy ice hockey player (the beers just taste better in a locker room after a game...)

Ready to try out Enterspeed? 🚀

Start connecting & combining your services today

Solutions

Product OnboardingPublish-ready product dataGoverned AI contentReplatform and migration
Enterspeed logo

© 2020 - 2026 Enterspeed A/S. All rights reserved.

Made with ❤️ and ☕ in Denmark.