🚀Publish FREEJoin WriterDock's early community of writers.Start Writing — It's Free

Cloudflare Search for Agents: AI Discoverability

Suraj Kumar

Suraj Kumar

Founding Writer #1Contributor

November 26, 2026•10 min read

Illustration for "Cloudflare Search for Agents: AI Discoverability"

If you want your website to be found by AI agents, Cloudflare has made that significantly easier with the release of Search for Agents. This new feature automates the process of making your site’s content indexable and searchable by artificial intelligence systems without requiring you to build a custom retrieval infrastructure. This guide explains how Cloudflare Search for Agents works, why it matters for modern web discoverability, and the specific steps to enable it on your zone.

What Is Cloudflare Search for Agents?

Traditionally, integrating a website with AI search capabilities involved considerable manual effort. Developers had to create and configure an AI Search instance, then undertake the complex integration work to expose search endpoints on their domain. Furthermore, they needed to ensure that AI agents could effectively discover and utilize that index. This process was often cumbersome, time-consuming, and susceptible to configuration errors.

Cloudflare Search for Agents streamlines this entire workflow into a single toggle within your Cloudflare dashboard. When enabled for a zone, Cloudflare automatically provisions an AI Search instance. The system immediately begins crawling, converting, and indexing your site’s content. Crucially, it handles the network-level mechanics to make the search capability discoverable directly from your own domain, eliminating the need for manual intervention.

This approach builds on the concept of "Markdown for Agents," where Cloudflare’s network converts HTML pages to Markdown in real time using content negotiation headers. Similarly, Search for Agents leverages Cloudflare's network-level power to expose APIs that any AI agent can discover and use. According to Cloudflare's blog, this feature is available to all customers, including those on the Free plan, though specific usage limits apply to free tiers.

How Cloudflare Automates Content Indexing

The primary benefit of Cloudflare Search for Agents is the elimination of friction in the content indexing pipeline. Once activated, Cloudflare’s crawlers begin visiting your site, converting HTML content into a format optimized for semantic search and building a comprehensive index. This process is designed for efficiency, ensuring that your content is prepared for advanced AI queries.

You are not required to maintain this index manually. The system manages the conversion and indexing continuously. As you update your content, the system re-crawls and refreshes the index, ensuring that AI agents are always searching against current information rather than stale data. This automated maintenance frees up resources and ensures the accuracy of search results.

The AI Search instance created for your zone comes with sensible default settings, balancing performance and relevance. However, you retain full control to customize its behavior. You can, for instance, enable reranking to refine result quality or adjust cache settings to optimize performance. These configurations are accessible at any time through the dashboard. The instance appears in your account’s AI > AI Search instances view, providing a centralized location to monitor its status and configuration.

This automation is particularly valuable for websites that might otherwise be overlooked by specialized AI search tools due to the complexity of integration. By removing the need for custom development, Cloudflare ensures that even smaller websites, personal blogs, or niche documentation sites can participate in the evolving ecosystem of AI-native search, making their content readily accessible to intelligent agents.

How AI Agents Discover Your Search Endpoint

A robust search engine provides little value if AI agents cannot discover its existence or how to interact with it. Cloudflare addresses this discoverability challenge by automatically advertising the search endpoint across your site. This is managed at the network level, meaning you do not need to modify your website’s code, templates, or content management system.

To facilitate discoverability, Cloudflare automatically exposes APIs that AI agents can use. This often involves injecting machine-readable instructions into your pages. For instance, these instructions might appear as meta tags in the <head> section of your HTML, guiding AI agents on how to interact with your site's search API. These tags typically convey crucial information such as:

  • Instructions for agents: Directing agents to use the search API for keyword or natural language queries instead of crawling individual pages.
  • Endpoint URL: Providing the specific URL where the search API is located, commonly following a standard pattern like https://your-domain.com/.well-known/search.
  • HTTP Method: Specifying the HTTP method (e.g., GET) to use for queries.
  • Documentation Link: Pointing to relevant developer documentation for the service.

If you have also enabled "Markdown for Agents," similar discoverability information can be provided in YAML front matter when an agent requests a page with the Accept: text/markdown header. This dual approach ensures compatibility with various types of AI agents, whether they primarily parse HTML or prefer structured Markdown data.

This automatic advertising is a critical step for AI search discoverability. It transforms your static website into a dynamic, queryable resource that AI agents can navigate efficiently, enabling them to find precise information without extensive crawling.

Enabling Search for Agents: Step-by-Step

Enabling Cloudflare Search for Agents is a straightforward process, accessible either through the Cloudflare dashboard or via the API. Most users will find the dashboard route the most intuitive for initial setup.

  1. Log in to your Cloudflare account: Access your account and select the specific zone (domain) for which you intend to enable Search for Agents.
  2. Navigate to Quick Actions: On your zone's page, locate the Quick Actions section.
  3. Activate the toggle: Find the Search for Agents toggle and switch it to the "On" position.

Upon activation, Cloudflare initiates the creation of the AI Search instance and begins the crawling process. The time required for the initial crawl depends on the size and complexity of your website. You can monitor the progress and status of your AI Search instance within the AI section of your Cloudflare account dashboard.

For automated deployments or managing multiple zones programmatically, you can enable the feature using the Cloudflare API. The official API documentation provides the necessary endpoints and authentication requirements for this action.

After enabling the feature, it is prudent to verify that the search endpoint is discoverable. While Cloudflare handles the injection at the network level, you can inspect your website's source code or use developer tools to confirm the presence of the relevant discoverability information, ensuring that AI agents can correctly identify and use your site's search capabilities.

Using the Search API

Once your site's content is indexed and the search endpoint is active, any AI agent on the internet can query your site using the exposed API. The endpoint typically adheres to a standard URL structure, often found at /.well-known/search on your domain.

You can perform keyword searches by appending the query as a URL parameter. For example, an agent looking for information on "Cloudflare artifacts" might construct a request similar to this:

bash
1curl "https://your-domain.com/.well-known/search?q=cloudflare+artifacts"

The API response provides search results in a structured format, commonly Markdown, which includes details such as relevance scores and snippets of the matched content. This format is highly suitable for AI agents, as it is clean, structured, and easy to parse for further processing.

The system also supports natural language queries, leveraging the semantic capabilities of AI Search. If your AI Search configuration is set to handle semantic understanding, agents can pose questions rather than just providing keywords. For instance:

bash
1curl --get "https://your-domain.com/.well-known/search" --data-urlencode "q=What is the maximum push size for Cloudflare Artifacts?"

This capability allows the API to return results based on the semantic meaning of the question, moving beyond simple keyword matching. This is particularly powerful for documentation sites, blogs, or knowledge bases where users or agents might ask complex, nuanced questions.

Common Considerations and Configuration Tips

While Cloudflare Search for Agents automates much of the setup, understanding a few configuration details can significantly impact performance, accessibility, and the quality of search results.

Bot Management and WAF Rules: Your website’s existing security settings, including Web Application Firewall (WAF) rules and AI Crawl Control configurations, apply to the search endpoint. According to Cloudflare's blog, you must ensure these settings do not inadvertently block legitimate AI agents attempting to access your /.well-known/search endpoint. Review your bot management settings to create exceptions or adjust rules as needed, allowing beneficial AI traffic while maintaining security.

Initial Crawl and Index Freshness: The initial crawl time can vary based on the size and complexity of your site. Larger sites with extensive content may take longer to be fully indexed. It is important to monitor the crawl status in your Cloudflare dashboard. If you observe stale content in search results, verify that the crawler has unrestricted access to all relevant parts of your site and that your content updates are being picked up.

Content Structure and Quality: The accuracy and relevance of search results are directly tied to the quality and structure of your website's content. Ensure your pages feature clear headings, descriptive meta descriptions, and well-organized content. AI search engines rely on these structural and semantic signals to determine relevance. Poorly structured or ambiguous content can lead to less accurate search results.

JavaScript-Rendered Content: If your website heavily relies on JavaScript for content rendering, ensure that the final HTML content is accessible to Cloudflare's crawlers. This often means implementing server-side rendering (SSR) or ensuring that the crawler can execute the necessary JavaScript to see the complete Document Object Model (DOM). If the crawler only encounters an empty HTML shell, the resulting search index will be incomplete.

Verifying Details: For any configurations affecting security, access, or performance, always consult the latest Cloudflare documentation and verify settings for your specific environment. This ensures compliance with your operational requirements and optimal functionality.

Key Takeaways

  • Automatic Setup: Cloudflare Search for Agents eliminates the need for manual AI Search instance configuration, creating and indexing your site with a single dashboard toggle.
  • Built-in Discoverability: The service automatically exposes APIs and injects machine-readable instructions into your HTML and Markdown responses, guiding AI agents to your search API.
  • Standardized API: The search endpoint is typically exposed at /.well-known/search and returns results in a format optimized for AI consumption, such as Markdown.
  • Security Integration: Your existing bot management and WAF rules apply to the search endpoint, requiring careful review to ensure legitimate AI agents are not blocked.

FAQ

Does Search for Agents require a paid Cloudflare plan? No, Cloudflare Search for Agents is available to all customers, including those on the Free plan. However, free plans have usage limits on AI Search instances, so heavy usage may necessitate upgrading to a paid tier.

Do I need to modify my website code to enable this? No. The discoverability information and API exposure are handled at the Cloudflare network level. You do not need to edit your HTML templates, install plugins, or make any changes to your website's codebase. Simply enable the toggle in the dashboard.

How long does it take for my site to be indexed? The initial crawl time depends on the size and complexity of your website. Smaller sites are typically indexed quickly, while larger sites with extensive content may take longer. You can monitor the crawl status and indexing progress in the Cloudflare dashboard under your AI Search instance.

Can I disable the search endpoint for specific pages? While the search API is a zone-wide feature, you can control access and indexing through your WAF and bot management settings. If you wish to exclude specific content from being indexed or restrict access to the search endpoint for certain paths, you can configure your crawl rules or use standard robots.txt directives, and adjust your zone's security policies accordingly.

About the Author

Suraj Kumar

Suraj Kumar

@surajkumar

Founding Writer #1Contributor

Suraj Kumar is a writer, entrepreneur, and the CEO and founder of this website, sharing simple and practical insights on business, creativity, and personal growth. With experience building digital projects, they enjoy helping others learn, grow, and succeed online.

Read Next

More articles you might enjoy

View all articles
0