Enabling Search for Agents in the Cloudflare dashboard now triggers the creation of an AI Search instance, indexes your site, and publishes a public .well-known/search endpoint. The change removes the need for a separate search integration and delivers raw markdown snippets that downstream agents can consume with their own models.
How the AI Search Endpoint Works
When you toggle the feature under Quick Actions on the domain Overview page, Cloudflare injects discovery metadata into each HTML page and, if Markdown for Agents is active, into generated markdown responses. The service then begins crawling the site, building an index, and exposing a queryable endpoint at https://your‑domain/.well-known/search. Agents discover this location via the metadata and can issue simple keyword or natural‑language queries.
curl --get "https://example.com/.well-known/search" \ --data-urlencode "q=How do I verify webhook signatures?"
The endpoint accepts both GET and HTTP QUERY requests and returns matching content in markdown format, not a generated answer.
Operational Impact
Because the index is managed by Cloudflare, you no longer provision or maintain a separate search service. Configuration lives in the AI Search instance tied to your domain, and you can adjust settings through the dashboard. All Cloudflare plans support the feature, but usage is bounded by the AI Search pricing and plan limits, so monitoring request volume and indexing quotas is advisable.
Security and Compliance Considerations
The public endpoint reveals markdown excerpts of your site, which may include sensitive documentation if not properly scoped. Since the service does not generate answers, the risk of model‑driven hallucinations is avoided, but you should still audit the metadata injection and ensure that only intended pages are indexed. Rate‑limiting and logging are handled by Cloudflare, but integrating with your own observability stack can provide additional visibility into query patterns.
Related CloudNinjas coverage: hands-on guides.
What This Means For Practitioners
- Enable Search for Agents via the Quick Actions toggle to obtain the endpoint automatically.
- Validate the
.well-known/searchURL and test queries withcurlor your preferred HTTP client. - Review the default discovery metadata to confirm that only public content is exposed.
- Configure any adjustable settings in the AI Search instance to align with your indexing and query‑volume expectations.
- Integrate the endpoint into your agent pipelines, consuming the raw markdown results for downstream processing.
