Cloudflare Search for Agents: Make Website Content Discoverable Safely
A practical guide to Cloudflare Search for Agents: what it indexes, how its /.well-known/search endpoint works, how to scope crawl access, and why agent search is not a Google ranking shortcut.
By BoundLayer Engineering Team
BoundLayer is a senior engineering partner for SaaS, fintech, AI automation, cloud infrastructure, legacy modernization, Web3, IoT, GPU computing, and data systems.
AI agents often need to answer a narrow question from a company’s public website: which service supports a particular integration, how a feature is priced, or what steps a technical guide recommends. Agents can crawl pages one by one, but that is often inefficient and can return noisy or outdated context.
On November 25, 2026, Cloudflare introduced Search for Agents, a beta feature that creates an AI Search index for a Cloudflare zone and exposes a discoverable search endpoint at /.well-known/search. The endpoint returns retrieved source content in Markdown; it does not generate the final answer. Cloudflare documents the feature as available on all plans, subject to AI Search usage limits and pricing. See the Search for Agents announcement and developer documentation.
This can be useful for public documentation, product catalogs, support articles, and other content that a site owner intentionally wants agents to find. It is not a Google ranking feature, a guarantee of citations in AI answers, or a safe way to expose authenticated application data. The architecture decision starts with content scope and access policy, not with the dashboard toggle.
What Search for Agents does
When enabled for an onboarded Cloudflare domain, the feature creates an AI Search instance, crawls website content, indexes it, and advertises the endpoint in metadata on HTML pages. An agent that understands the metadata can query the endpoint using GET with a q parameter or the HTTP QUERY method. The results contain retrieved text in Markdown and source references; the agent’s own model or application decides what to do with them.
The distinction from related patterns matters:
- Search for Agents retrieves relevant chunks from a site-wide index.
- Markdown for Agents serves an individual page as Markdown on request.
- WebMCP exposes structured actions from a page open in a compatible browser.
- MCP servers and APIs expose application capabilities, which may include authenticated or transactional operations.
These are different interfaces. Search can help an agent find a public product page; it does not authorize an agent to change a subscription or read a customer’s account. For browser-side actions, see our guide to WebMCP for SaaS websites.
A typical request path
Public pages and approved content
|
Cloudflare AI Search crawler
|
Parse, convert to Markdown, split into chunks, index
|
Page metadata advertises /.well-known/search
|
Agent sends a keyword or natural-language query
|
Search endpoint returns relevant source chunks and references
|
Agent synthesizes an answer using its own model and policies
There are two independent paths to validate: ingestion and retrieval. A page may be crawlable but absent from the index; it may be in the index but poorly ranked for a query; it may be retrieved accurately but then summarized incorrectly by the agent. Checking only that the endpoint returns HTTP 200 proves very little about answer quality.
Decide what should be searchable before enabling it
Make an explicit allowlist of content classes first. Good candidates are often public developer documentation, published blog posts, stable support articles, public product details, and a public catalog. Exclude drafts, preview deployments, authenticated customer portals, internal runbooks, private price lists, personal data, and pages whose license or contractual terms do not permit this use.
Cloudflare’s website-source documentation explains that pages are discovered through sitemaps and links, converted to Markdown, chunked, and indexed. The website data-source configuration supports path filtering, CSS content selectors, metadata extraction, crawl behavior, and other settings. Use these controls deliberately:
- Start with the smallest useful path scope. Include only selected public sections, such as
/docs/and/blog/, rather than indexing the whole zone by default. - Exclude unstable or sensitive paths. Filter drafts, staging routes, search results, user-generated content, and pages that should not become a separate retrieval surface.
- Restrict page content when templates are noisy. A content selector can avoid indexing repeated navigation and footer text that pollutes retrieval.
- Review the discovered items. Inspect actual indexed pages and chunks; do not infer inclusion from the sitemap alone.
- Set an owner and review date. Content scope should change when product, legal, privacy, or security boundaries change.
Do not treat “publicly reachable” as equivalent to “approved for agent search.” Search results can make a page easier for automated systems to retrieve at scale and can preserve indexed content beyond a page’s ordinary browsing context. Review the provider’s data handling, retention, and contractual terms for your requirements before enabling it.
Understand defaults, limits, and freshness
Cloudflare’s current documentation lists defaults including Discover crawling through sitemaps and links, a crawl depth of five hops, a 24-hour sync interval, hybrid keyword/vector search, a 1,024-token chunk size, and a maximum of ten returned chunks. Some configuration choices, including the data source and embedding model, are fixed at instance creation, while others can be changed later. These defaults and limits may evolve during beta; check the current Search for Agents settings before deployment.
Several practical consequences follow:
- A sitemap is useful but not a content policy. Discover mode can follow links as well as read sitemaps. Use path filters and review the indexed item list.
- A sync interval is not an immediate purge guarantee. If you remove or correct sensitive or inaccurate content, verify the index state and understand the provider’s deletion and refresh behavior.
- Chunk retrieval can lose context. A chunk may omit a heading, disclaimer, version, or table relationship that changes the meaning. Test documents with tables, code, versioned docs, and long pages.
- A similarity score is not a correctness score. High retrieval relevance indicates a match to the query, not that the content is current, authoritative, or appropriate to answer with.
- Usage has cost and service limits. Account for crawl ingestion, stored index content, and query volume. Monitor these separately from ordinary website traffic.
Make sure your security controls still apply
The endpoint is designed to be usable by agents on the public internet, subject to domain settings. Cloudflare states that requests remain subject to AI Crawl Control and WAF configuration. Its AI Search crawler can also be blocked by bot controls, WAF rules, or Turnstile on the source website; the website-source docs describe how to allowlist the verified crawler when appropriate.
That creates two security checks:
- Can the approved crawler fetch the intended public pages without opening a broad exception for unrelated bots?
- Can the public search endpoint return only content approved for public retrieval?
Avoid a blanket WAF skip for all bot traffic. Prefer the provider’s verified bot identity and the narrowest rule that supports the intended crawl. Test with existing rate limits, bot rules, and application firewall policies in place. Keep authentication, authorization, and private-data access in the application’s normal API layer; a public search index must never be used as an authorization boundary.
If your site mixes public and private content on the same domain, define explicit URL boundaries and test those boundaries with adversarial queries. A misconfigured path rule can turn an otherwise sound feature into an unintended content-disclosure channel.
Test retrieval quality before you promote the endpoint
Build a small evaluation set from questions real users or partners ask. Include exact terminology, synonyms, ambiguous wording, version-specific questions, and questions that should return no result. For each query, define the expected source pages and an acceptable retrieval outcome.
Check:
- whether all intended pages are indexed and excluded pages are absent;
- whether results include the right current version and source reference;
- whether the returned chunk contains necessary context and disclaimers;
- whether stale, duplicate, or contradictory pages outrank the canonical source;
- whether requests from expected agents pass security and rate-control rules;
- whether high-volume or repeated queries fit the usage budget.
Run the same questions after material content changes and before expanding the indexed path scope. Track index coverage, zero-result queries, stale-content reports, query volume, and source selection. Do not measure success only by whether an agent can make a plausible answer; measure whether it retrieves the page you intended and preserves the source context.
It does not replace SEO
Search for Agents adds an agent-facing retrieval path; it does not replace crawlable HTML, semantic page structure, canonical URLs, sitemap quality, internal links, Google Search Console, or traditional technical SEO. Its endpoint is not a Google Search ranking factor by definition, and enabling it does not promise inclusion in any assistant’s answer or citation.
Likewise, making content readable to agents does not require giving every crawler unrestricted access. Separate the goals of search discovery, model training, user-requested retrieval, and authenticated actions. Apply the site’s crawl and access policies to each category instead of relying on a single “allow AI” or “block bots” switch. Our guide to SEO landing pages and business websites covers conventional search visibility and conversion fundamentals.
A staged implementation plan
Phase 1: Scope. Select a public content collection, identify excluded URL patterns, confirm data and licensing requirements, and assign an owner.
Phase 2: Enable in beta. Create the instance, review immutable choices and usage terms, configure path filters and content selection, then allow the crawler through narrowly scoped bot controls.
Phase 3: Inspect. Wait for the initial crawl, review indexed items and representative chunks, test the endpoint, and confirm private and draft content is absent.
Phase 4: Evaluate. Run a query set, inspect references, measure coverage and freshness, and test expected security rules and abuse limits.
Phase 5: Operate. Monitor queries and spend, periodically re-check content scope, test removal and refresh behavior, and revisit configuration as the beta and product evolve.
Cloudflare Search for Agents can reduce the engineering required to make a public site searchable to compatible agents, but it does not remove the site owner’s responsibility for scope, accuracy, cost, and access policy. BoundLayer helps businesses make websites and software integrations agent-ready while preserving security boundaries. A useful first deployment is narrow, measurable, and reversible—not a switch that indexes every path on the domain.
Product behavior, beta availability, defaults, limits, and pricing can change. Confirm the latest Cloudflare documentation and terms before enabling the feature. This article is technical guidance, not legal or SEO-ranking advice.
Related engineering articles
SEO for Landing Pages and Business Websites: A Practical Google Search Growth System
A practical guide to SEO for landing pages and business websites: technical audits, search intent, site architecture, people-first content, internal linking, structured data, performance, and Search Console measurement.
Google Cloud Agent Gateway for GKE: Govern AI Agent Traffic at the Network Layer
A practical architecture guide to governing AI agent ingress, egress, and east-west traffic on GKE with Agent Gateway, workload identity, policy enforcement, and operational safeguards.
Critical Open-Source Vulnerabilities: A Practical Patch Response Playbook
A production-focused process for triaging critical open-source vulnerabilities: map exposure, verify vendor and distro fixes, deploy mitigations safely, validate remediation, and preserve incident evidence.
Making your public website useful to AI agents?
BoundLayer helps teams prepare public content, search interfaces, and security controls for agent discovery without exposing private application data.