What is Search for Agents?
Cloudflare Search for Agents lets AI agents search the indexed content of a website at /.well-known/search on its own domain.[1] An agent can send keywords or a question and receive relevant excerpts in Markdown with source references and relevance scores.[2] The agent can use those excerpts as evidence for its own answer.
Cloudflare introduced the feature to reduce the work of setting up on-site search for agents. Previously, website owners using Cloudflare AI Search had to create and configure the index, expose an endpoint on their domain and tell clients how to use it.[1] The dashboard toggle sets up those pieces together.[2] Cloudflare announced the feature on 25 November 2026.[3]
Consider a customer who wants to know how long they have to return a UK trade order. An agent that supports the endpoint can look for the returns policy and its exceptions in one search. Whether the excerpts contain the right deadline and conditions depends on what was indexed and which passages the query retrieves.
How does Cloudflare index your website?
The toggle creates an AI Search instance with your domain as its website data source.[2] Its Discover crawler starts at the source URL and finds candidate pages through sitemaps and links. A sitemap helps it find pages, but Discover can follow links without one.[4] The default crawl follows up to five link hops and excludes subdomains.[2] The crawl obeys access rules and is subject to the page limits of your Workers plan.[4][5]
AI Search converts fetched content to Markdown and divides it into passages called chunks.[6] The default hybrid search uses both a keyword index and vectors that represent the meaning of each chunk.[2] This lets a query match an exact term such as a product code as well as related wording. AI Search combines the two rankings.[6] The endpoint returns up to ten chunks by default.[2]
The index stores a copy of the extracted content.[5] Discover uses its crawl cache age to decide when to re-fetch a page.[4] The crawl cache age and sync interval default to 24 hours, and the similarity cache can reuse search results for similar queries for up to 48 hours by default.[2] When the returns deadline changes, check both the page's indexed text and the result of the original query.
How does an agent discover the search endpoint?
When an agent opens an HTML page on an enabled domain, it can look in the document head for Cloudflare's discovery tags. They describe the endpoint, how to insert the query, which method to start with and where to find documentation.[2] These are illustrative tag values for example.com.
<meta name="agent:instructions" content="Search this site using keywords or a question.">
<meta name="agent:endpoint" content="https://example.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
<meta name="agent:documentation"
content="https://developers.cloudflare.com/ai-search/how-to/search-for-agents/">Markdown for Agents lets a client request a page with Accept: text/markdown.[7] When both features are on, the Markdown response advertises the same instructions, endpoint, method and documentation in a YAML agent block.[2] A client that reads these fields can send a question to the endpoint and follow relevant references back to the pages.
RFC 8615 defines the /.well-known/ prefix for predictable locations on a host.[8] The search path, agent metadata and response format described here are the interface documented by Cloudflare.[2] Check whether the clients you want to support read the metadata and use the endpoint.
How do you query /.well-known/search?
Replace example.com with an enabled domain you manage. For GET, put the URL-encoded search text in the q parameter.[2] This example uses the short keyword form of the trade returns question.
GET /.well-known/search?q=UK%20trade%20returns HTTP/1.1
Host: example.com
curl -i --get "https://example.com/.well-known/search" \
--data-urlencode "q=How long do I have to return a UK trade order?"The endpoint also supports HTTP QUERY, which puts the search text in the request body.[2] RFC 10008 defines QUERY as a safe, idempotent method for processing a request body.[9] Cloudflare accepts UTF-8 text with Content-Type: text/plain or a JSON object with a q field.[2] Test QUERY through the clients and intermediaries you expect to use. The discovery metadata advertises GET.[2]
curl -i -X QUERY "https://example.com/.well-known/search" \
-H "Content-Type: text/plain" \
--data "How long do I have to return a UK trade order?"curl -i -X QUERY "https://example.com/.well-known/search" \
-H "Content-Type: application/json" \
--data '{"q":"How long do I have to return a UK trade order?"}'Both methods return ranked Markdown passages from the index, with source references and relevance scores. Search responses are available independently of Markdown for Agents.[2] This fictional excerpt shows what an agent could receive when a result contains the deadline but omits an exception.
## help/uk-trade-returns.md (score: 0.862)
UK trade customers have 30 days from delivery to return unopened goods.The score describes relevance to the query. Follow the source reference back to the current policy to confirm whether there are exceptions for particular products.
How does it differ from Markdown for Agents and site search?
The right tool depends on whether the client already knows the page it needs. A request for a known URL can ask for a single page in Markdown.[7] A question about the site can go to Search for Agents to find relevant passages across pages.[2]
An llms.txt file is another discovery option. It lists selected sources for a client to fetch, while a search endpoint accepts queries against an index. A website can publish either or both according to the clients and tasks it needs to support.
| Approach | Request | Typical result |
|---|---|---|
| Search for Agents | Send keywords or a question to the domain search endpoint. | Ranked Markdown excerpts with source references. |
| Markdown for Agents | Request a known page with Accept: text/markdown. | A Markdown conversion of the HTML response when conversion is available. |
| Traditional website search | Enter a query in a search box on the site. | A results page with links and snippets for a visitor to open. |
How do you enable and configure Search for Agents?
Start with a domain already onboarded to your Cloudflare account. On the domain Overview page, find Search for Agents under Quick Actions, then review the defaults and pricing notice before confirming.[2] Cloudflare starts indexing as part of setup.[3] Review which content the crawler can reach before turning it on. Wait for the initial crawl and indexing before testing queries.
Open the new instance from the domain Overview page or from AI Search in your account.[2] In Settings, review the crawl depth and how often content syncs.[2][4] Use path filters to control which URLs enter the index, and check the Jobs tab for URLs the filters skipped.[11] If searches return the wrong passages, check the indexed text before tuning the result count, match threshold, reranking or cache. The data source and embedding model are fixed when the instance is created.[10]
The same instance can also power a website search box or be used through a Workers binding. The public REST and MCP endpoints are optional and separate from the domain endpoint.[2]
What should you check about pricing and access?
Cloudflare documents Search for Agents as a beta on all plans, including Free.[2] The AI Search pricing page lists billing from 1 December 2026 and describes monthly included usage per account for ingestion, storage and queries. Hybrid queries use the semantic query rate.[5] Check the Workers plan limits that apply to your account. For example, Workers Free limits crawling to 500 pages a day, even if the Discover crawl is set to allow more.[5] Estimate how much content you will index and how often it changes, then monitor storage and query usage.
Index only the content you intend to make publicly searchable.[2] Use path filters to scope the index.[11] Keep authentication and authorisation on private routes. The Discover crawler identifies itself as Cloudflare-AI-Search and honours robots.txt restrictions. It also checks the search and ai-input purposes in Cloudflare Content Signals and rejects the crawl if either is set to no.[4] Use those directives to express crawl and usage policy, and use access controls to enforce confidentiality.
Requests to /.well-known/search remain subject to the domain's AI Crawl Control and web application firewall (WAF) settings.[2] Bot rules can also affect access.[1] Check the endpoint as a signed-out caller and review the applicable security events if it returns a block or a challenge. AI Search keeps a copy of the extracted content in its index.[5] After excluding or removing content, check the index and search output as well as the original page.
What should you test before and after enabling it?
Before enabling it, pick a few public questions from support or sales and write down the expected answer and source for each. Test the existing route through the site and keep the results as a baseline. For the fictional retailer, assume its current policy gives UK trade customers 30 days from delivery for unopened goods and excludes clearance items. Keep those conditions together in the expected answer.
After the first index completes, inspect the discovery metadata on a page a customer would start from. Send the same question through the endpoint and record the request method, time, HTTP status, source reference and excerpt. If you test a particular AI client, run the question in a fresh session and record whether the client used the endpoint when its trace makes that visible. A curl response establishes what that request received.
If an excerpt gives only part of the policy, open its source. The deadline and the exception may have ended up in different chunks, or the result might point to an older policy that still ranks well. Correct the source or adjust the index scope, wait for the updated content to be indexed and repeat the query. Include one question the public site cannot answer and a harmless test item excluded from the index. Check that neither case leads the client to present an unsupported answer.
| Test | Expected evidence |
|---|---|
| Find the policy | The client reaches the current UK trade policy from a public page or through the search endpoint. |
| Read the conditions | The retrieved text connects 30 days with delivery and unopened goods, and identifies the clearance exclusion. |
| Verify the update | After a policy change and index refresh, the repeated query returns the current terms and source. |
What does this mean for Agent Experience?
For AI discoverability, the endpoint adds a route to the source for clients that know how to use it. For AI readiness, the question is whether the material they receive contains the facts and relationships needed for the task. A smaller site with clear links and complete public pages can support that task without a dedicated search endpoint.
Agent Experience (AX) also includes what happens beyond retrieval. If the customer wants to start a return, the agent needs a usable route to the request form and the usual account permissions. Test that workflow separately from the policy question. To assess AI visibility, observe what a named AI service actually says or cites. Search endpoint availability provides evidence about retrieval on your domain, while rankings and mentions in external services require their own measurements.
Sources
- Cloudflare Blog, Introducing Search for Agents. Published 25 November 2026.
- Cloudflare AI Search docs, Search for Agents. Setup, defaults, discovery metadata and request formats.
- Cloudflare changelog, Introducing Search for Agents. Published 25 November 2026.
- Cloudflare AI Search docs, Parse types. Discover crawl behaviour, controls and Content Signals.
- Cloudflare AI Search docs, Limits & pricing. Plan limits, included usage and billing.
- Cloudflare AI Search docs, How AI Search works. Content extraction, indexing and retrieval.
- Cloudflare Fundamentals docs, Markdown for Agents. Content negotiation and converted page responses.
- IETF RFC 8615, Well-Known Uniform Resource Identifiers (URIs).
- IETF RFC 10008, The HTTP QUERY Method.
- Cloudflare AI Search docs, Configuration and editable settings.
- Cloudflare AI Search docs, Path filtering and indexing job status.


