AI · SEO · GEO · Web
Make Your Website AI-Agent Ready: llms.txt, Markdown and Structured Data
Help ChatGPT, Claude, Perplexity and AI search read your site correctly with llms.txt, Markdown content negotiation, JSON-LD and real content in HTML.
People now look for developers, products and services not only on Google but in ChatGPT, Claude, Perplexity and Google's AI answers. These systems don't read your site like a browser; they read it like an agent that consumes text. This article walks through what I did to make sanderyaz.com agent-ready. All of it runs live on this site.
The problem: agents don't like running JavaScript
This site is an OS-style React app. It works great in a browser, but if the first HTML response contained only an empty <div id="root">, an agent that doesn't run JavaScript would see nothing. Search engines can render JavaScript, but that is delayed and not guaranteed; many AI crawlers don't render it at all.
The first step is simple: put real content in the raw HTML.
1. Meaningful content in raw HTML
Inside the homepage's React mount point there is now a static summary that the app replaces on load: who I am, what I do and links to every page. About, Projects and Contact are fully static HTML pages. The easiest way to test your own site:
curl -s https://example.com/ | sed 's/<[^>]*>//g' | tr -s ' \n' | head -50
If you can read your content in that output, so can an agent.
2. llms.txt: a site map for agents
llms.txt is a proposed standard: a Markdown file at the site root that tells a language model what the site is and which pages matter. Think of it as a human-language, annotated sitemap.xml:
# SanderYaz — SanderOS Portfolio
> Portfolio of Senior Full-Stack Developer Sander Yazıcıoğlu.
## Pages
- [About](https://sanderyaz.com/about/): experience, skills, education
- [Projects](https://sanderyaz.com/projects/): selected projects
## Blog (English)
- [Engineering blog](https://sanderyaz.com/en/blog/): all articles
A good llms.txt is short, gives every link a one-sentence description, and answers "when should I use this site". On this site the blog section is generated from the articles on every build, so llms.txt never goes stale.
3. Markdown content negotiation
HTML is noisy for an agent: menus, styles, repeated footers. Better to offer a clean Markdown version of the same page. This site offers two ways:
- Append
index.mdto any page URL to get its Markdown version. - Agents that send
Accept: text/markdownget Markdown from the same URL.
curl -H 'Accept: text/markdown' https://sanderyaz.com/en/about/
A small worker on Cloudflare's edge handles that: it checks the Accept header and returns the pre-built index.md when Markdown is preferred, otherwise the normal HTML. Two details are critical:
Vary: Acceptstops caches from mixing up the HTML and Markdown versions.- Markdown files carry
X-Robots-Tag: noindexand a canonical link to the HTML page, so search engines don't see duplicate content.
A <link rel="alternate" type="text/markdown"> tag on each page also helps agents discover the Markdown version.
4. Structured data (JSON-LD)
Schema.org markup tells machines explicitly what your content is. For a personal site the most valuable types are:
Person: name, title, areas of expertise (knowsAbout), social profiles (sameAs).ProfilePage,WebSite,BreadcrumbList.BlogPostingfor articles: headline, author, published and modified dates.
Declaring the same person with the same @id on every page (https://sanderyaz.com/#person) lets facts from different pages merge into one entity. That matters for Google's knowledge graph and for AI systems that need a consistent answer to "who is this person".
5. A 404 for lost agents
Agents sometimes guess URLs that don't exist. Here, a 404 requested with Accept: text/markdown returns a short Markdown answer with links to the main pages, llms.txt and the sitemap. Instead of hitting a dead end, the agent moves on to the right page.
6. robots.txt: keep the door open
If you want AI crawlers to read your site, don't block them. Which bots you allow is a business decision, but a rule that blocks every bot by accident makes you invisible in AI search. A comment in robots.txt pointing to llms.txt is a harmless extra hint.
No performance cost
None of this adds JavaScript to the browser: the static summary is part of the HTML, Markdown files are generated at build time, and negotiation happens at the edge. Lighthouse scores are unaffected. I cover the edge side in detail in the Cloudflare Pages and Workers article.
Checklist
- Does the raw HTML contain the page's main content?
- Is there an up-to-date llms.txt at the root?
- Do pages have Markdown versions, and is
Accept: text/markdownsupported? - Is there
PersonJSON-LD plus the right type for your content, with consistent@ids? - Is robots.txt blocking AI crawlers you actually want?
Conclusion
Visibility in AI search doesn't replace classic SEO; it builds on it. Clean HTML, structured data and a few agent-friendly extras make sure your site is represented correctly on Google and in AI answers. If you want to use LLMs inside your own product, read shipping LLM features to production.