Cloudflare Search for Agents: A New Era for AI-Powered Website Interaction
Cloudflare has unveiled its latest innovation, Search for Agents, a transformative feature designed to streamline how artificial intelligence agents interact with website content. This new offering simplifies the complex process of indexing and making a website’s data discoverable for AI applications. By automating the setup of AI Search instances, Cloudflare empowers site owners to effortlessly integrate their content with AI agents, marking a significant step forward in web accessibility for intelligent systems.
Table of Contents
Previously, integrating AI Search required manual configuration of instances, setting up search endpoints, and ensuring agents could locate and utilize the index. Search for Agents eliminates these hurdles by providing a simple toggle within the Cloudflare dashboard. Once activated, Cloudflare automatically creates an AI Search instance, begins indexing the zone’s content, and makes search capabilities discoverable and accessible directly from the domain.
Technical Architecture and Integration
Search for Agents builds upon Cloudflare’s existing AI Search service, which allows for the indexing of content and the addition of search functionality to any application or agent without requiring extensive retrieval infrastructure. The new feature leverages Cloudflare’s network to convert HTML pages into a machine-readable format, similar to its Markdown for Agents functionality.
Upon enabling Search for Agents, Cloudflare automatically provisions an AI Search instance for the specified zone. This instance crawls and indexes all public content. The service then exposes APIs that are discoverable by AI agents. These APIs are served directly from the customer’s domain, ensuring a seamless and branded experience. For discoverability, Cloudflare injects metadata into the HTML head of each page, including instructions, the search endpoint, HTTP method, and documentation links. This allows agents to easily identify and utilize the search functionality.
The system supports the HTTP QUERY method, an IETF Proposed Standard (RFC 10008), which is ideal for search queries as it allows clients to send search criteria in the request body safely and idempotently. This method can be used with plain text or JSON request bodies, offering flexibility for various agent implementations. This advancement is crucial for enabling sophisticated AI interactions, much like how advancements in hardware, such as the NVIDIA cuDSS 1.0, unlock significant speedups in complex computational tasks.
Engineering Trade-offs and Configuration Options
While Search for Agents automates much of the setup, site owners retain control over their AI Search instance. The instance is created with default settings, but users can customize various options. This includes enabling reranking, adjusting cache settings, and configuring access controls like bot management, AI Crawl Control, and Web Application Firewall (WAF) rules. These configurations ensure that while content is discoverable by agents, it remains protected and adheres to the site owner’s security policies.
The search endpoint returns retrieved content in Markdown format, providing raw information rather than a synthesized answer. This approach ensures that the AI agent, which already possesses its own language model and conversational context, receives the precise data it needs to formulate a response. This separation of concerns is vital for maintaining accuracy and control over the information presented to the end-user.
The usage of Search for Agents is governed by Cloudflare’s AI Search pricing, which includes costs for content ingestion, storage, and query serving. These costs are subject to the included usage and limits within Cloudflare’s Workers Free and Paid plans, ensuring a scalable and predictable cost structure for users.
Field Readiness and Future Verdict
Search for Agents is available to all Cloudflare customers, including those on the Free plan, albeit with certain limits. Cloudflare has been testing this feature internally, enabling it for their Developer Documentation, and reports positive results. Agents have demonstrated a strong ability to discover and effectively utilize the search API during their tasks, leading to accurate information retrieval.
The feature is designed to be robust and scalable, leveraging Cloudflare’s global network. By advertising the search endpoint on every page, it ensures that agents can find and query content efficiently. This move aligns with the broader trend of making web content more accessible to AI, a development that could significantly impact how users interact with information online.
Cloudflare also recommends users consult their Agent Readiness page to optimize their sites for agent interaction. This includes guidance on authentication, content access control, and data formatting. The introduction of Search for Agents represents a significant stride in making the internet more navigable for AI, potentially unlocking new applications and efficiencies across various industries.
Source: Cloudflare Engineering Blog

