With Cloudflare Search for Agents switched on, an AI agent stops reading your site page by page and asks it a question. Whatever comes back is what the agent tells its user about you. The search returns your own text, so the risk is the wrong page of yours winning: last year's pricing, a deprecated doc, a draft somebody left public. If you run an AI product with docs, or a store whose customers now send agents, you'll get a small test to run before you turn it on, and the cases where the test can't help.

What Cloudflare shipped

Cloudflare announced Search for Agents on November 25. In its words: "Turn it on for your zone, and our service will create your AI Search instance, start indexing your content, and make search discoverable and available from your own domain." The Next Web reports it "is in beta and open to every customer, including those on the free plan."

Two details matter for site owners. First, the endpoint is announced to every agent that visits. Cloudflare says it "automatically advertises the search endpoint on every page of your site", using <meta name="agent:endpoint"> and three related tags in the page's head, and YAML front matter for agents that ask for Markdown. Second, "this search endpoint returns retrieved content, in Markdown, not a generated answer." The agent's own model writes the answer from whatever pages your index ranks highest.

Access follows your existing rules: search is "subject to your domain settings (e.g. your bot management settings, AI Crawl Control and web application firewall (WAF) configurations)." Cloudflare also says it tried the feature on its own developer docs first and found "agents do a good job of discovering the search API and using it during their tasks." That's Cloudflare's account of its own docs. Its post doesn't say which mainstream assistants look for the new tags, and its worked example uses OpenCode.

Your index is now the answer

Before this, an agent landing on your site picked pages by following links, much like a person. With a search endpoint, retrieval ranking decides what the agent reads. A question like "Do you support SSO?" returns the pages that score highest for it, and the agent may never see the page you'd have pointed it to.

That makes the index a public interface. Everything crawlable is in it: old changelog entries, a blog post about a feature you've since removed, a pricing page you kept for existing customers. A person skimming your site can tell an old blog post from a current docs page. An agent that gets a high-scoring result in Markdown usually can't.

Test it like an API

Here is a sketch of how we would check it. It's ours, not Cloudflare's. Keep a short list of the questions customers' agents will ask, each paired with the page that should answer it, and run the list against the endpoint in CI or on a schedule. The response parsing follows the result headings in Cloudflare's example (## <path> (score: 0.951)).

// Questions an agent will ask, and the page that
// should answer each one.
const golden: Record<string, string> = {
  "Do you support SSO?": "docs/sso",
  "What are the API rate limits?": "docs/limits",
  "How do I cancel my plan?": "help/cancel",
};

async function topHit(site: string, q: string) {
  const url = new URL("/.well-known/search", site);
  url.searchParams.set("q", q);
  const res = await fetch(url);
  if (!res.ok) throw new Error(`${res.status} for "${q}"`);
  const md = await res.text();
  // Each result opens with "## <path> (score: N)".
  const m = md.match(/^## (\S+) \(score: ([\d.]+)\)/m);
  return m ? { path: m[1], score: Number(m[2]) } : null;
}

let failed = 0;
for (const [q, want] of Object.entries(golden)) {
  const hit = await topHit("https://www.example.com", q);
  if (!hit || !hit.path.startsWith(want)) {
    failed++;
    console.error(`${q}\n  want ${want}, got ${hit?.path}`);
  }
}
process.exit(failed ? 1 : 0);

What to notice: the test checks which page ranks first, not what the answer says, because ranking is the part you control. A failure tells you which page to fix: retire it, block it from the crawl, or rewrite the right page so it ranks first. Add a question whenever support hears an agent got something wrong. Twenty questions covering pricing, limits, security and cancellation is enough to start.

Where this breaks

The check only covers the questions on your list. An agent will ask things you didn't think of, so the cheaper fix is upstream: take stale pages out of the crawl rather than hoping they rank low. Keeping crawlable pages and indexed pages the same set is the real work.

It also can't judge what the agent does with a correct result. The endpoint returns your text and the agent's model writes the answer, so a page that's right but vague can still produce a wrong answer. Short pages that state one fact plainly do better than long ones that hedge.

If your site isn't on Cloudflare, or no agents visit it yet, skip the toggle and keep the list anyway. The same questions work against any site search you expose, and they're a quick way to find the pages that contradict each other. Usage is billed under Cloudflare's AI Search pricing, which The Next Web reports starts charging on December 1, so check the limits on your plan before turning it on for a large site.

This is the same work as building a site for people: one clear page per question, kept current. If you want your site to answer agents as well as it answers buyers, our web design and development studio builds sites that way.

What to remember

  • Search for Agents gives every agent on your site a search endpoint at /.well-known/search and returns your pages as Markdown, not a written answer.
  • Whatever ranks first is what the agent repeats, so stale crawlable pages are now a correctness problem.
  • Keep a list of questions with the page that should answer each one, and fail the build when a different page wins.
  • Take outdated pages out of the crawl instead of relying on ranking.

If agents are already asking your site questions and you want to know what they're being told, book a conversation with us.

Sources