AgentenCode · Field guide

Agent-ready websites: Optimizing websites for AI agents

Optimize sites for AI agents: HTML, Markdown, llms.txt, static indexes and Cloudflare Search for Agents, with cost controls.

AgentenCode Editorial · November 26, 2026

Agent-ready websites: Optimizing websites for AI agents
Original editorial illustration by AgentenCode.

An agent-ready website presents publicly accessible content so that people, conventional search engines and AI agents can reliably find, understand and cite it. Stable URLs, semantic HTML, traceable sources, current structured data and optional machine-readable interfaces contribute to this goal. Agent readiness is neither a single SEO plugin nor a guarantee that a particular chatbot will cite a website. It is a technical and editorial property that can be tested. This guide distinguishes SEO, GEO and agent access and explains how a specialist publisher can progressively build a controlled public knowledge interface.

Key takeaways

Useful content and established technical search engine optimization remain the foundation. Additional formats such as Markdown, llms.txt and public search indexes may simplify access, but they are not equally standardized or universally adopted. A website does not need to allow every AI bot or connect its internal search engine to a language model. A documented public data collection that can be retrieved without paid model calls is often a reasonable starting point. Success should be evaluated through verified accessibility, data freshness and evidence of use rather than speculation about generative rankings.

1. SEO, GEO and agent readiness: Three distinct goals

Search engine optimization (SEO) helps search engines discover, process and surface pages for relevant queries. Generative engine optimization (GEO) refers to approaches intended to make content discoverable and usable as evidence in generative answer systems. Agent readiness extends beyond answer presentation: an agent may search a site, retrieve references, analyze data or perform controlled interactions when explicitly supported. These objectives overlap, but they are not interchangeable. An improvement to a site's data interface does not automatically improve its conventional search ranking, and a high ranking does not establish that agents can reliably extract its content.

Google's guide to optimizing for generative AI features continues to emphasize established SEO foundations. There is no general evidence that adding an arbitrary new AI metadata file by itself increases visibility across all answer systems. Publishers can improve the technical conditions without controlling external models or their selection of sources.

GoalTypical measuresWhat these do not guarantee
SEOCrawlable pages, internal links, canonicals and sitemapsParticular rankings or indexing of every URL
GEOOriginal evidence, clear terminology, sources and verifiable claimsCitations or recommendations by specific AI systems
Agent readinessDocumented access, machine-readable formats and explicit interfacesAutomatic use by every agent

2. The technical foundation: Well-structured HTML

Layers of an agent-ready website
Layers of an agent-ready website · AgentenCode

Many websites already have the most important component: publicly accessible HTML documents. Essential information should not exist only in a difficult-to-access interactive widget, in an image or behind unnecessary authentication. A coherent heading hierarchy, unambiguous article titles, descriptive links and consistent document structure help human readers and machine extraction. Tables need informative column labels and explicit units. Diagrams require descriptive alternative text or a nearby explanation of their meaning. These measures are useful independently of any emerging agent-specific protocol.

Every important reference should have a stable canonical URL. Duplicate paths, translations and paginated archives require a considered indexing strategy. German and English versions should identify their own canonical addresses and link to appropriate language alternatives. Search indexes and sitemaps should reference canonical documents instead of temporary preview URLs. Redirects, error responses and access boundaries should remain understandable without JavaScript.

Structured data such as schema.org Article or BreadcrumbList can express documented page properties in machine-readable form. Titles, dates and authors must agree with the visible content. Google's documentation about AI features explains that special schema markup is not required specifically for those features. Structured data remains useful as part of ordinary search practices, but it does not authorize invented claims of authority, reviews or performance. The same principle applies to dates: changing metadata without an actual content update can undermine trust rather than improve it.

3. Markdown, llms.txt and public indexes

Markdown can provide a compact textual version of a page without requiring an agent to remove navigation, layout and other HTML elements itself. Such a representation should preserve the title, sections, important tabular relationships, sources and canonical references. When multiple representations are generated automatically, the publisher must ensure that they contain the same substantive information. A simplified version should not silently omit material limitations or conflicting evidence.

The llms.txt initiative proposes a text file that provides a structured overview of important website content. The proposal is not an universally mandatory web standard or a guarantee of inclusion in search indexes. A carefully maintained file can serve as additional navigation for applications that support it. It does not replace robots.txt or sitemaps and is not an authorization or security control. Its benefits should be evaluated for the specific applications that consume it.

A static JSON index is another option. It can describe every intended public document with a URL, language, title, description and topical keywords. The agent downloads the index and selects relevant entries itself. This is especially attractive for specialist sites with manageable collections. The data remains ordinary files; the publisher does not need a server-side semantic search service. Such an index does not return automatically ranked results in response to arbitrary natural-language queries.

FormatBenefitLimitation
HTML and sitemapGeneral discoverability and complete documentsExtraction may require work for complex layouts
MarkdownText-oriented access to individual documentsMust stay synchronized with the original
llms.txtCurated orientation and important linksVoluntary proposal, not universally consumed
Static JSON indexMany document descriptions in one requestFiltering and ranking occur on the client
Dynamic search endpointQuery-specific retrieval resultsRequires operational, security and cost controls

4. Search for Agents: Cloudflare's new interface

Two paths to knowledge: static indexes and dynamic search
Two paths to knowledge: static indexes and dynamic search · AgentenCode

Cloudflare describes a website search interface in its Search for Agents documentation, updated on 25 November 2026. Enabling the feature creates an AI Search instance and advertises a search endpoint at /.well-known/search. Queries can return relevant passages in Markdown. The interface performs retrieval rather than automatically generating a new answer. According to the documentation, it is in beta. Searches and indexing are subject to the corresponding pricing and plan limits.

This mechanism differs from providing Markdown versions of individual pages. Markdown for a document URL answers the question, “How can I obtain this known content in a simple text format?” Search for Agents answers a different question: “Which content on this website relates to my query?” An agent may combine the two approaches. Drawing conclusions and generating answers remains the responsibility of the requesting system.

A public search interface should not indiscriminately access every available dataset. It needs a controlled public collection, query limits, bounded result sizes and a documented response format. Automated clients can call an openly accessible AI search endpoint at high frequency. A spending alert is not a technical spending cap. Organizations that require a firm upper bound must verify the actual pricing terms and enforcement mechanism or select a purely static approach instead.

5. AgentenCode as a practical example

AgentenCode already maintains public search data for both language versions. On 26 November 2026, additional public index addresses were configured: the German index and the English index. These URLs redirect to static JSON files in the existing Pages project. At setup, 614 German and 609 English index entries were available. These are language-specific index records, not 1,223 distinct agents or independent articles. The two homepages and news hubs advertise the indexes using HTTP Link headers.

The interface is deliberately limited. It does not accept a search query, compute a ranking or generate an answer. A client downloads the corresponding index, searches titles, descriptions and keywords locally and then retrieves the canonical document. Relative paths in the index should be resolved against the primary agentencode.de domain. The static files do not automatically include the three most recent ticker stories added through the editorial Worker at the time of setup. Keeping this collection synchronized remains a technical and editorial task. The counts above are verified point-in-time figures, not a promise about the current or future size of the indexes.

Cost predictability motivated this choice. It serves an existing public Pages index rather than activating a potentially billable managed AI Search instance. Cloudflare documents free and unlimited requests to static Pages assets. Other parts of the site and existing Workers may have their own operating terms. This is not a universal proof that every future website request will cost nothing. The static index delivery itself does not require new model inference or an additional search Worker.

A simple retrieval command is:

curl -L 'https://agentencode.de/.well-known/search/en'

This downloads the entire English static index. It does not call a semantic search API. A client may locally filter titles and descriptions for “MCP” before opening matching documents. Ranking and the quality of that selection remain the client's responsibility. Clients that need exact source passages should retrieve the referenced article rather than treating a short index description as the complete evidence.

6. Access, abuse prevention and cost controls

Agent readiness does not mean providing every automated system with unlimited access. robots.txt can communicate preferences to cooperative crawlers, but it is not access control against uncooperative clients. Confidential material requires authentication and effective authorization. Public indexes must contain only material intended for public access. Hidden internal paths and personal data should not be included merely because the corresponding pages are not prominently linked.

Read-only interfaces must be distinguished from action interfaces. Reading and searching are often relatively low-risk; booking, submitting forms or modifying a user's account can have entirely different consequences. These actions require explicit identity, authorization, input validation and appropriate approvals. Finding a page does not authorize an agent to act on it. The public knowledge interfaces described here should provide read-only access. A tool capable of changing state should be documented and controlled separately from an ordinary content retrieval mechanism.

Dynamic search requires protection against oversized inputs, large responses and uncontrolled retries. Caching must account for when content changes. Per-client limits, a global request budget and a dependable shutdown mechanism are useful controls. Whether a technical quota guarantees a financial ceiling depends on how all components are billed; in some architectures, even rejected requests may consume resources. Static data reduces this complexity without eliminating every general operating or abuse risk. When activating a managed service, include ingestion, storage and retrieval in the budget rather than estimating only generation costs.

7. Testing the quality of an agent interface

Verification plan for an agent-ready website
Verification plan for an agent-ready website · AgentenCode

A site is not agent-ready simply because a new file or endpoint exists. The publisher should test the full access chain. Are discovery links actually present? Does the index return valid data? Are URLs correct and reachable? Do titles, update dates and languages agree with the source pages? Are sensitive records excluded? Automated checks can cover representative agent profiles, foundational guides and news stories in both languages. New releases should update the validation data rather than creating a second stale archive.

Actual usage also requires careful interpretation. Requests to an index, retrieval of documents and mentions in generated AI answers are different observations. A bot request does not prove that the material was used in a response. Conversely, an observed mention cannot necessarily be attributed to a particular endpoint. Measurable properties include successful HTTP responses, freshness, valid links and traceable source references. Visibility in external answer systems is a separate and less controllable question.

A useful pilot compares identical research tasks using conventional navigation and a machine-readable index. Evaluate coverage of relevant pages, the effort required to locate sources and the ability to trace a statement back to the original evidence. Reliable conclusions require defined test conditions and documented samples. Individual favorable chatbot answers do not constitute a general ranking measurement. The test should also include missing information, moved URLs and outdated descriptions so that it does not assess only ideal cases.

8. A practical adoption plan

Start by auditing pages intended for public access. Correct broken links, outdated canonicals and contradictory information. Decide which content types, languages and versions should be published. Then provide a small static index or a maintained textual overview where useful. Document the format, meaning of relative paths, update time and limitations. Advertise the interface with explicit links without claiming capabilities it does not possess. A consistent publication process is more useful than multiple disconnected interfaces that drift out of date.

Only consider dynamic retrieval when concrete queries show that the static solution is inadequate. Define the operating and security boundaries beforehand; the choice between keyword, vector and hybrid search depends on the content and tasks. A managed interface may be worthwhile for a large collection, but a smaller catalog might be adequately served by deterministic indexing. See our knowledge hub for related resources on context engineering, security and agent evaluation.

Frequently asked questions

Does llms.txt automatically improve my ranking in AI search engines? No. It is an additional proposal for application navigation. Support by individual systems and any resulting effect need separate verification.

Does every website require semantic search for agents? No. Small knowledge collections may be adequately accessible through well-structured HTML, a sitemap and optionally a static index.

Can I block particular AI bots? Yes, publishers can establish different technical and editorial access policies. robots.txt provides instructions for cooperative crawlers, not protection of confidential content.

What is the difference between Markdown and search? Markdown presents a known document in a text-oriented form. Search identifies relevant pages or passages based on a query.

Do I need separate content for GEO and SEO? Not necessarily. Original, supported and understandable content benefits both objectives. Additional formats may improve technical accessibility.

Can an agent interface incur unexpected costs? Dynamic services can. Verify each billing component before opening public access. Pure static files do not require new search or model inference.

Conclusion

Agent-ready websites begin with useful, reliable content and a sound web architecture. Machine-readable formats can supplement discovery and extraction, but they must be described accurately, maintained and operated safely. A static index is a pragmatic first step for many specialist publishers. Dynamic agent search becomes worthwhile when its incremental benefits are demonstrable and its technical, financial and editorial boundaries can be managed. Neither a search interface nor a metadata file can guarantee inclusion in external AI answers.

Sources and further reading

Source and documented implementation status: 26 November 2026. No independent measurement of adoption by AI providers or ranking effects is claimed.

NEWSLETTER · FREE · GERMAN EDITION

More signal. Less AI noise.

Our source-backed German-language digest of major AI developments, agent updates and knowledge articles. The weekly edition is being prepared.

Double opt-in: Subscription starts only after email confirmation. Your details are sent to Brevo when you submit.