Skip to content

Commit e5a9afc

Browse files
committed
Add deep links
1 parent d5a484b commit e5a9afc

File tree

1 file changed

+29
-19
lines changed

1 file changed

+29
-19
lines changed

src/content/docs/cloudflare-one/tutorials/ai-wrapper-tenant-control.mdx

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags:
77
- AI
88
---
99

10-
import { TabItem, Tabs, Details, Render } from "~/components";
10+
import { TabItem, Tabs, Details, Render, DashButton } from "~/components";
1111

1212
This tutorial explains how to use [Cloudflare AI Gateway](/ai-gateway/) and Zero Trust to create a functional and secure website wrapper for an AI agent. Cloudflare Zero Trust administrators can protect access to the wrapper with [Cloudflare Access](/cloudflare-one/policies/access/). Additionally, you can enforce [Gateway policies](/cloudflare-one/policies/gateway/) to control how your users interact with AI agents, including executing AI agents in an isolated browser with [Browser Isolation](/cloudflare-one/policies/browser-isolation/), enforcing [Data Loss Prevention](/cloudflare-one/policies/data-loss-prevention/) profiles to prevent your users from sharing sensitive data, and scanning content to avoid answers from AI agents that violate internal corporate guidelines. Creating an AI agent wrapper is also an effective way to enforce tenant control if you have an enterprise plan for a specific AI provider, such as ChatGPT Enterprise.
1313

@@ -24,14 +24,16 @@ Make sure you have:
2424

2525
First, create an AI gateway to control your AI app.
2626

27-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
28-
2. Go to **AI** > **AI Gateway**.
29-
3. Select **Create Gateway**.
30-
4. Name your gateway.
31-
5. Select **Create**.
32-
6. Configure your desired options for the gateway.
33-
7. [Connect your AI provider](/ai-gateway/get-started/#connect-application) to proxy queries to your AI agent of choice using your AI gateway.
34-
8. (Optional) Turn on [Authenticated Gateway](/ai-gateway/configuration/authentication/). The Authenticated Gateway feature ensures your AI gateway can only be called securely by enforcing a token in the form of a request header `cf-aig-authorization`.
27+
1. In the [Cloudflare dashboard](https://dash.cloudflare.com/), go to the **AI Gateway** page.
28+
29+
<DashButton url="/?to=/:account/ai/ai-gateway" />
30+
31+
2. Select **Create Gateway**.
32+
3. Name your gateway.
33+
4. Select **Create**.
34+
5. Configure your desired options for the gateway.
35+
6. [Connect your AI provider](/ai-gateway/get-started/#connect-application) to proxy queries to your AI agent of choice using your AI gateway.
36+
7. (Optional) Turn on [Authenticated Gateway](/ai-gateway/configuration/authentication/). The Authenticated Gateway feature ensures your AI gateway can only be called securely by enforcing a token in the form of a request header `cf-aig-authorization`.
3537
1. Go to **AI** > **AI Gateway**.
3638
2. Select your AI gateway, then go to **Settings**.
3739
3. Turn on **Authenticated Gateway**, then choose **Confirm**.
@@ -44,7 +46,10 @@ For more information, refer to [Getting started with AI Gateway](/ai-gateway/get
4446

4547
[Guardrails](/ai-gateway/features/guardrails/) is an built-in AI Gateway security feature that allows Cloudflare to identify unsafe or inappropriate content in prompts and responses based on selected categories.
4648

47-
1. Go to **AI** > **AI Gateway**.
49+
1. In the Cloudflare dashboard, go to the **AI Gateway** page.
50+
51+
<DashButton url="/?to=/:account/ai/ai-gateway" />
52+
4853
2. Select your AI gateway.
4954
3. Go to **Guardrails**.
5055
4. Turn on Guardrails.
@@ -93,14 +98,16 @@ You can now build the Worker using the `index.js` file created by Wrangler.
9398

9499
</TabItem> <TabItem label="Dashboard">
95100

96-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
97-
2. Go to **Workers & Pages** > **Workers & Pages**.
98-
3. Select **Create**.
99-
4. In **Workers**, choose the **Hello world** template.
100-
5. Name your worker, then select **Deploy**.
101-
6. Select your Worker, then go to the **Settings** tab.
102-
7. Go to **Variables and Secrets**, then select **Add**.
103-
8. Choose _Secret_ as the type, name your secret (for example, `OPENAI_API_KEY`), and enter the value of your AI provider's API key in **Value**.
101+
1. In the Cloudflare dashboard, go to the **Workers & Pages** page.
102+
103+
<DashButton url="/?to=/:account/workers-and-pages" />
104+
105+
2. Select **Create**.
106+
3. In **Workers**, choose the **Hello world** template.
107+
4. Name your worker, then select **Deploy**.
108+
5. Select your Worker, then go to the **Settings** tab.
109+
6. Go to **Variables and Secrets**, then select **Add**.
110+
7. Choose _Secret_ as the type, name your secret (for example, `OPENAI_API_KEY`), and enter the value of your AI provider's API key in **Value**.
104111

105112
You can now build the Worker using the online code editor by selecting **Edit code** on your Worker page.
106113

@@ -377,7 +384,10 @@ If you built your Worker remotely using the [code editor](/workers/get-started/d
377384

378385
To ensure that the Worker is only accessible from the custom hostname:
379386

380-
1. Go to **Workers & Pages** > **Workers & Pages**.
387+
1. In the Cloudflare dashboard, go to the **Workers & Pages** page.
388+
389+
<DashButton url="/?to=/:account/workers-and-pages" />
390+
381391
2. Select your Worker.
382392
3. Go to **Settings**.
383393
4. Within **Domains & Routes**, select **Add**.

0 commit comments

Comments
 (0)