Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 94 additions & 5 deletions src/components/config-explorer/config-reference.generated.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Generated by bin/generate-cf-config-reference.mjs from @cloudflare/config declarations.
export const CONFIG_REFERENCE = {
package: "@cloudflare/config",
version: "0.25.0",
version: "0.30.0",
config: [
{
id: "Settings.accountId",
Expand Down Expand Up @@ -127,12 +127,35 @@ export const CONFIG_REFERENCE = {
{
id: "WorkerConfig.domains",
name: "domains",
type: "string[]",
type: "Array<string | CustomDomain>",
required: false,
description:
"Custom domains that your Worker should be published to. For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes",
"Custom domains that your Worker should be published to. Strings serve production traffic only. Objects select production, Preview traffic, or both; at least one must be enabled. Domain settings are applied when deploying the parent Worker. Preview uploads use the parent's existing hosting without applying domains. For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes",
internal: false,
children: [],
children: [
{
name: "hostname",
type: "string",
required: true,
description:
"Parent hostname for production and generated Preview subdomains.",
children: [],
},
{
name: "production",
type: "boolean",
required: true,
description: "Serve production traffic on this hostname.",
children: [],
},
{
name: "previews",
type: "boolean",
required: true,
description: "Serve Previews on subdomains of this hostname.",
children: [],
},
],
},
{
id: "WorkerConfig.triggers",
Expand Down Expand Up @@ -516,6 +539,40 @@ export const CONFIG_REFERENCE = {
},
],
},
{
id: "WorkerConfig.access",
name: "access",
type: "{ /** Local development simulation of Cloudflare Access authentication. */ dev?: { /** The Access application audience tag (`aud`). */ aud: string; /** Mock identity returned by `ctx.access.getIdentity()`. */ identity?: Record<string, unknown>; }; }",
required: false,
description: "Cloudflare Access configuration for this Worker.",
internal: false,
children: [
{
name: "dev",
type: "{ /** The Access application audience tag (`aud`). */ aud: string; /** Mock identity returned by `ctx.access.getIdentity()`. */ identity?: Record<string, unknown>; }",
required: false,
description:
"Local development simulation of Cloudflare Access authentication.",
children: [
{
name: "aud",
type: "string",
required: true,
description: "The Access application audience tag (`aud`).",
children: [],
},
{
name: "identity",
type: "Record<string, unknown>",
required: false,
description:
"Mock identity returned by `ctx.access.getIdentity()`.",
children: [],
},
],
},
],
},
{
id: "WorkerConfig.workersDev",
name: "workersDev",
Expand Down Expand Up @@ -804,6 +861,22 @@ export const CONFIG_REFERENCE = {
description: "The name of this dataset to write to.",
children: [],
},
{
name: "dev",
type: "BindingDevOptions",
required: false,
description: "Options that only apply during local development.",
children: [
{
name: "remote",
type: "boolean",
required: false,
description:
"Whether the binding should connect to the remote resource.",
children: [],
},
],
},
],
},
{
Expand Down Expand Up @@ -1084,10 +1157,18 @@ export const CONFIG_REFERENCE = {
},
{
name: "dev",
type: "{ /** The database connection string used during local development. */ connectionString?: string; }",
type: "BindingDevOptions & { /** The database connection string used during local development. */ connectionString?: string; }",
required: false,
description: "Options that only apply during local development.",
children: [
{
name: "remote",
type: "boolean",
required: false,
description:
"Whether the binding should connect to the remote resource.",
children: [],
},
{
name: "connectionString",
type: "string",
Expand Down Expand Up @@ -2334,6 +2415,14 @@ export const CONFIG_REFERENCE = {
},
],
},
{
name: "jurisdiction",
type: "(typeof WORKFLOW_JURISDICTIONS)[number]",
required: false,
description:
"Jurisdiction that the Workflow's instances run and store their data in. It is set when the Workflow is created and cannot be changed afterwards.",
children: [],
},
],
},
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Introducing Search for Agents
description: Make your website searchable by AI agents with automatic indexing, endpoint discovery, and HTTP QUERY support.
date: 2026-11-25
---

Search for Agents makes your website searchable by AI agents without manually configuring a search integration. Turn it on under **Quick Actions** on your domain's **Overview** page in the Cloudflare dashboard. Cloudflare creates an AI Search instance, starts indexing your content, and exposes a search endpoint on your domain.

Cloudflare adds discovery metadata to your HTML pages and, when Markdown for Agents is on, to Markdown responses. Agents can discover the endpoint and search with keywords or natural-language queries:

```sh
curl --get "https://example.com/.well-known/search" \
--data-urlencode "q=How do I verify webhook signatures?"
```

The endpoint supports both `GET` and HTTP `QUERY` requests. It returns relevant content in Markdown, not an AI-generated answer, so agents can use the results with their own models.

Search for Agents is available on all plans. Usage is subject to [AI Search pricing and plan limits](/ai-search/platform/limits-pricing/). You can customize configurable settings in the AI Search instance created for your domain.

Read the [announcement blog post](https://blog.cloudflare.com/search-for-agents) and refer to the [Search for Agents guide](/ai-search/how-to/search-for-agents/) for setup instructions and default settings.
1 change: 1 addition & 0 deletions src/content/docs/ai-search/how-to/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ These guides walk through common AI Search use cases, from no-code setups to ful
| Guide | Difficulty | What you build |
| ----------------------------------------------------------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------------------- |
| [Add search to your website](/ai-search/how-to/add-search-to-your-website/) | Beginner | Add a search bar, chat bubble, and search modal to a site with the prebuilt UI snippets. |
| [Search for Agents](/ai-search/how-to/search-for-agents/) | Beginner | Make your website searchable by AI agents with automatic indexing and a discoverable search endpoint. |
| [Connect your AI Search to an MCP client](/ai-search/how-to/connect-mcp-client/) | Beginner | Expose your indexed content as a search tool for any MCP client or AI assistant, with no code. |
| [Create a simple search engine](/ai-search/how-to/simple-search-engine/) | Beginner | Query an instance from a Worker using the search binding. |
| [Multitenancy](/ai-search/how-to/per-tenant-search/) | Intermediate | Keep each tenant's data separate with a per-tenant instance or a shared instance and metadata filtering. |
Expand Down
150 changes: 150 additions & 0 deletions src/content/docs/ai-search/how-to/search-for-agents.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
---
title: Search for Agents
description: Make your website searchable by AI agents with automatic indexing, a discoverable search endpoint, and configurable AI Search defaults.
pcx_content_type: how-to
sidebar:
order: 3.5
difficulty: Beginner
products:
- ai-search
---

import { DashButton, Plan, Steps } from "~/components";

<Plan type="all" />

Search for Agents makes your website searchable by AI agents. Turn it on for your domain to create an AI Search instance, index your content, and expose a search endpoint at `https://example.com/.well-known/search`.

Cloudflare advertises the endpoint on your pages so agents can discover it automatically. The endpoint returns relevant content in Markdown, not an AI-generated answer. Agents can use that content with their own models and conversations.

Search for Agents is available on all plans. Usage is subject to [AI Search pricing and plan limits](/ai-search/platform/limits-pricing/), including content ingestion, index storage, and queries.

Read the [Search for Agents blog post](https://blog.cloudflare.com/search-for-agents) for more information.

## Turn on Search for Agents

Your domain must be [onboarded to your Cloudflare account](/fundamentals/manage-domains/add-site/). Only index content that you intend to make publicly searchable. Requests to the search endpoint remain subject to your AI Crawl Control and Web Application Firewall (WAF) configurations.

<Steps>

1. In the Cloudflare dashboard, select your domain and go to **Overview**.

<DashButton url="/?to=/:account/:zone/" />

2. Under **Quick Actions**, turn on **Search for Agents**.
3. Review the [default settings](#default-settings) and pricing notice, then confirm.
4. Wait for AI Search to crawl and index your content before running a search.

</Steps>

Search for Agents creates an instance named `search-for-agents-<ZONE_ID>` in the `default` namespace. The instance uses `https://<YOUR_DOMAIN>` as its website data source. It uses the **Discover** parse type to find pages through sitemaps and links, without requiring a sitemap. For crawl behavior and controls, refer to [Discover](/ai-search/configuration/data-source/website/parse-types/#discover).

You can open the instance from your domain's **Overview** page or from **AI Search** in your account.

## Default settings

When you turn on Search for Agents, you accept its suggested configuration. You can change configurable settings at any time in your AI Search instance's **Settings** tab. Some settings, including the embedding model and data source, are fixed at creation time. Refer to [Configuration](/ai-search/configuration/) for which settings you can change.

Search for Agents explicitly selects **Discover** crawling and **hybrid search**. Other settings inherit the AI Search defaults.

### Crawl and index

New Search for Agents instances use these crawl and indexing settings:

| Setting | Default |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [Parse type](/ai-search/configuration/data-source/website/parse-types/) | `discover`, using both sitemaps and links |
| [Crawl page limit](/ai-search/configuration/data-source/website/parse-types/#page-limit-and-depth) | 100,000 pages, subject to instance limits |
| Crawl depth | Five link hops from the source URL |
| [Crawl cache age](/ai-search/configuration/data-source/website/parse-types/#cache-age) | 24 hours |
| [Include subdomains](/ai-search/configuration/data-source/website/parse-types/#subdomains) | Off |
| [Sync interval](/ai-search/configuration/indexing/syncing/#sync-interval) | 24 hours |
| [Search mode](/ai-search/concepts/search-modes/) | Hybrid: vector and keyword search |
| [Embedding model](/ai-search/configuration/models/) | `@cf/qwen/qwen3-embedding-0.6b` |
| [Chunk size](/ai-search/configuration/indexing/chunking/) | 1,024 tokens |
| Chunk overlap | 10% |

### Retrieval and cache

New Search for Agents instances use these retrieval and cache settings:

| Setting | Default |
| ---------------------------------------------------------------------- | ---------------------------- |
| [Fusion method](/ai-search/configuration/indexing/hybrid-search/) | Reciprocal Rank Fusion (RRF) |
| [Maximum results](/ai-search/configuration/retrieval/result-controls/) | 10 chunks |
| Match threshold | `0.4` |
| [Query rewriting](/ai-search/configuration/retrieval/query-rewriting/) | Off |
| [Reranking](/ai-search/configuration/retrieval/reranking/) | Off |
| [Similarity cache](/ai-search/configuration/retrieval/cache/) | On |
| Cache threshold | Strong (`close_enough`) |
| Cache duration | 48 hours |

The `/.well-known/search` endpoint retrieves content without generating an answer. Generation model settings apply when you use the instance through a [chat completions API](/ai-search/api/search/rest-api/#chat-completions), not through Search for Agents.

## Discover the search endpoint

Cloudflare adds search metadata to the `<head>` of HTML responses:

```html
<meta
name="agent:instructions"
content="This site offers a search API that returns relevant content across the entire site. Use the search endpoint to find information instead of crawling individual pages."
/>
<meta
name="agent:search"
content="https://example.com/.well-known/search?q={query}"
/>
```

If you also turn on [Markdown for Agents](/fundamentals/reference/markdown-for-agents/), requests with `Accept: text/markdown` receive the same discovery information in YAML front matter:

```yaml
---
agent:
instructions: "This site offers a search API that returns relevant content across the entire site. Use the search endpoint to find information instead of crawling individual pages."
search: "https://example.com/.well-known/search?q={query}"
---
```

Agents can read this metadata and query your site instead of crawling individual pages.

## Search your content

Replace `example.com` with your domain. You can search with keywords or natural-language questions.

### GET requests

Send the search text in the `q` query parameter:

```sh
curl --get "https://example.com/.well-known/search" \
--data-urlencode "q=How do I verify webhook signatures?"
```

The response contains retrieved content in Markdown, including source references and relevance scores.

### QUERY requests

The endpoint also supports the HTTP `QUERY` method. Send UTF-8 search text in a plain-text body:

```sh
curl -X QUERY "https://example.com/.well-known/search" \
--header "Content-Type: text/plain" \
--data "How do I verify webhook signatures?"
```

Alternatively, send a JSON object with a `q` field:

```sh
curl -X QUERY "https://example.com/.well-known/search" \
--header "Content-Type: application/json" \
--data '{"q":"How do I verify webhook signatures?"}'
```

Both methods return retrieved content, not a generated answer.

## Use your instance elsewhere

The instance created by Search for Agents is also a standard AI Search instance. You can use it through a [Workers binding](/ai-search/api/search/workers-binding/), turn on [public REST and MCP endpoints](/ai-search/configuration/retrieval/public-endpoint/), or [embed search and chat components](/ai-search/configuration/retrieval/public-endpoint/embed-search-snippets/) for human visitors.

Additional public endpoints are separate from `/.well-known/search`. You do not need to turn them on to use Search for Agents.