On 25 November Cloudflare launched Search for Agents: one toggle in the dashboard that indexes your website and gives AI agents a search endpoint on your own domain. Instead of an agent fetching ten product pages to answer “do you have this in a size 40, and what is the return window?”, it can ask your site one question and get the matching passages back.
If your shop’s domain already sits in your own Cloudflare account (common for WooCommerce, PrestaShop and other self-hosted stores), this is a few minutes of work. Here is what it does, what it costs, which pages to keep out of it, and how to check that it answers questions about your real products.
What the toggle actually does
Turning it on creates an AI Search instance for your domain and sets three things up for you:
- An index of your site. Cloudflare crawls your pages (starting at your domain, using your sitemaps and the links it finds), converts them to Markdown and indexes them. By default it re-syncs every 24 hours and follows links up to five hops deep.
- A search endpoint on your domain at
/.well-known/search. An agent sends a question as?q=and gets back ranked passages from your pages, in Markdown, with a relevance score and the page they came from. - A signpost on every page. Cloudflare adds four
<meta>tags to the<head>of your HTML pages telling agents the endpoint exists and to use it instead of crawling.
The tags look like this (with your own domain in place of the example):
<meta name="agent:instructions" content="...">
<meta name="agent:endpoint" content="https://example.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
<meta name="agent:documentation" content="...">One thing to be clear about: the endpoint returns your own text, not a generated answer. Cloudflare’s post puts it plainly: the endpoint returns retrieved content, “not a generated answer”. The agent still writes the reply to the shopper. What changes is that it reads the right paragraph of your shipping page instead of guessing from whatever it managed to crawl.
Why a small shop might want it
Shopping agents compare shops by reading them. When an agent cannot find a size chart, a delivery time or the returns rule quickly, it moves on or fills the gap from somewhere else. A search endpoint gives it a short path to the page you wrote. Cloudflare says agents “do a good job” of discovering and using it on its own developer docs, but there is no guarantee any particular assistant will use it, so treat it as a cheap improvement, not a sales channel.
How to turn it on
- In the Cloudflare dashboard, open your domain’s Overview page.
- Under Quick Actions, switch on Search for Agents.
- Read the default settings and the pricing notice, then confirm.
- Wait for the first crawl to finish. The instance appears under AI → AI Search, named
search-for-agents-followed by your zone ID.
The docs list it as available on all plans and in beta. Two settings, the embedding model and the data source, are fixed when the instance is created, so you cannot change them later without starting a new one.
What it costs
Usage is billed as AI Search, and AI Search billing starts on 1 December 2026. Every account gets, each month: 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic queries and 1,000 full-text queries. Beyond that, Cloudflare’s price list says:
- Ingestion: $0.75 per million tokens (image processing: an extra $0.50 per million tokens)
- Storage: $2.00 per GB-month
- Semantic (meaning-based) queries: $0.75 per 1,000
- Full-text queries: $0.10 per 1,000
On the Workers Free plan the limit that matters for a website is crawling: 500 pages per day. A shop with a few hundred product pages is indexed in a day or two; a catalogue of several thousand pages takes much longer to index fully on Free. The Paid plan has no daily crawl cap.
For most small shops the included 1,000 semantic queries a month will be the first ceiling. The price list does not spell out whether a Free-plan account is stopped or billed once it passes the allowance, so check the AI Search usage page in the first weeks and decide before you get there.
Which pages to keep out

The docs are blunt: only index content you intend to be public. Anything the crawler can reach can come back word for word in a search result. Before you switch it on, list the pages that should never appear in an answer:
- Cart, checkout and account pages (they add noise even when they hold no personal data)
- Wholesale price lists, trade or VIP discount pages, and unreleased products
- Draft or test pages, old campaign landing pages with expired prices
- Order-tracking or thank-you pages
In the instance settings you can add include and exclude rules. They match the full URL, scheme and hostname included, so write them with a leading **. The docs’ own example: include **/blog/**, exclude **/blog/drafts/**; a rule written as /blog/** will not match. For a shop that could be excluding **/cart/**, **/checkout/**, **/my-account/** and **/wholesale/**. Copy your own paths exactly as they appear in the address bar: a pattern without the trailing slash, such as **/cart**, also matches unrelated URLs like /blog/cart-care.
Use these exclude rules as the control. The Cloudflare pages we read do not say whether this crawler follows robots.txt, so do not count on it. And if a page must stay private, protect it with a login, not just a rule.
Your firewall still applies
Requests to the search endpoint go through your existing bot management, AI Crawl Control and WAF settings. That cuts both ways. If you block AI bots broadly, agents may be blocked from the endpoint too. And your bot protection can block Cloudflare’s own crawler from indexing the site in the first place. The website data source docs say Bot Management, WAF and Turnstile rules apply to the AI Search crawler, and suggest a WAF exception that skips for the Bot Detection ID 122933950. If the first crawl indexes almost nothing, check this first.
The two-minute test

Once the crawl has finished, ask your own shop the kind of question a shopper’s agent would. Replace the domain and the question with yours:
curl --get "https://your-shop.example/.well-known/search" --data-urlencode "q=how long does delivery to Germany take and what does it cost"The answer is Markdown: a heading with your query, then the best-matching passages, each with the page it came from and a score. Run three or four questions you get from real customers:
- a product question (“is the linen apron machine washable”)
- a policy question (returns window, who pays return postage)
- a stock or size question
- one question you know your site does not answer
Read what comes back the way an agent would. If the returns question surfaces an old banner instead of your returns page, that page needs clearer wording, and that fix helps human shoppers too. If the unanswerable question returns a confident-looking passage from an unrelated page, you have learned how an agent could be misled by your site.
To check the signpost, view the source of any product page and search for agent:endpoint.
Should you switch it on?
If your domain is already on Cloudflare and your public pages are the ones you want quoted: yes, it is cheap to try and easy to inspect. Set your exclude rules first, check the crawl went through your bot rules, run the test questions, and look at query usage after a couple of weeks. If your shop runs on a hosted platform where you cannot put the domain in your own Cloudflare account, this feature is not available to you, and the work that matters is the same as before: clear product, delivery and returns pages that any agent can read.


