You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/partials/fundamentals/markdown-for-agents.mdx
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,17 @@ To enable Markdown for Agents for your zone in the dashboard:
13
13
3. Visit the [AI Crawl Control](https://dash.cloudflare.com/?to=/:account/:zone/ai) section.
14
14
4. Enable **Markdown for Agents**.
15
15
16
+
### Enable for specific subdomains or paths
17
+
18
+
To enable Markdown for Agents for specific subdomains or paths instead of your entire zone, create a [configuration rule](/rules/configuration-rules/):
19
+
20
+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
21
+
2. Select the zone you want to configure.
22
+
3. Go to **Rules** > **Overview** and select **Create rule** > **Configuration Rules**.
23
+
4. Under **When incoming requests match**, build an expression to match your subdomain (for example, `http.host eq "docs.example.com"`) or path.
24
+
5. Under **Then the settings are**, select **Add setting** > **Markdown for Agents** and set it to **On**.
25
+
6. Select **Deploy**.
26
+
16
27
</TabItem> <TabItemlabel="API">
17
28
18
29
To enable Markdown for Agents for your zone using APIs, send a `PATCH` to `/client/v4/zones/{zone_tag}/settings/content_converter` with the payload `{"value": "on"}` to the Cloudflare API.
To enable Markdown for Agents for specific subdomains or paths instead of your entire zone, create a [configuration rule](/rules/configuration-rules/create-api/):
44
+
45
+
```bash title="Enable Markdown for Agents for a subdomain"
"description": "Enable Markdown for Agents for docs subdomain"
58
+
}]
59
+
}'
60
+
```
61
+
62
+
You can also use path-based expressions like `starts_with(http.request.uri.path, "/blog/")`. For more information on building expressions, refer to [Rules language](/ruleset-engine/rules-language/).
63
+
30
64
</TabItem> <TabItemlabel="Custom Hostnames">
31
65
32
66
If you are using [Cloudflare for SaaS](/cloudflare-for-platforms/cloudflare-for-saas/) and want to enable Markdown for Agents for your [custom hostnames](/cloudflare-for-platforms/cloudflare-for-saas/domain-support/), you have two options:
@@ -83,4 +117,4 @@ curl --request PUT \
83
117
84
118
This will enable the feature on custom hostnames that have the `content_converter` custom metadata tag set.
0 commit comments