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
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.
13
13
@@ -24,14 +24,16 @@ Make sure you have:
24
24
25
25
First, create an AI gateway to control your AI app.
26
26
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
+
<DashButtonurl="/?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`.
35
37
1. Go to **AI** > **AI Gateway**.
36
38
2. Select your AI gateway, then go to **Settings**.
37
39
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
44
46
45
47
[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.
46
48
47
-
1. Go to **AI** > **AI Gateway**.
49
+
1. In the Cloudflare dashboard, go to the **AI Gateway** page.
50
+
51
+
<DashButtonurl="/?to=/:account/ai/ai-gateway" />
52
+
48
53
2. Select your AI gateway.
49
54
3. Go to **Guardrails**.
50
55
4. Turn on Guardrails.
@@ -93,14 +98,16 @@ You can now build the Worker using the `index.js` file created by Wrangler.
93
98
94
99
</TabItem> <TabItemlabel="Dashboard">
95
100
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.
0 commit comments