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 guide will instruct you through setting up and deploying your first Realtime Agents project. You will use [Workers](/workers/), the [Realtime Agents SDK](TODO), a Workers AI binding, and a large language model (LLM) to deploy your first AI-powered application on the Cloudflare global network.
14
+
This guide will instruct you through setting up and deploying your first Realtime Agents project. You will use [Workers](/workers/), the Realtime Agents SDK, a Workers AI binding, and a large language model (LLM) to deploy your first AI-powered application on the Cloudflare global network.
15
15
16
16
<Renderfile="prereqs"product="workers" />
17
17
@@ -76,9 +76,9 @@ Update the `index.ts` file in your `hello-agent` application directory with the
@@ -189,9 +191,33 @@ The Realtime Agents SDK provides several elements that work together to create a
189
191
190
192
-`ElevenLabsTTS`: Converts the generated responses to audio to be spoken in the meeting
191
193
192
-
We use all of these elements together to create a simple chatbot-like pipeline. As a pre-requisite, we require the meeting ID to be joined along with an authorization token for joining the meeting, which is passed during the worker invocation
194
+
We use all of these elements together to create a simple chatbot-like pipeline. As a pre-requisite, we require the meeting ID to be joined along with an authorization token for joining the meeting, which is passed during the worker invocation. Additionally, our class must extend `ArtificialObject` as it contains certain internal logic to handle interactions with our pipeline backend
193
195
194
-
Additionally, our class must extend `ArtificialObject` as it contains certain internal logic to handle interactions with our pipeline backend
196
+
In `wrangler.jsonc`, append the following fields to enable the [Node.js Compatibility](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) flag and create our Durable Object:
197
+
198
+
```json
199
+
"compatibility_flags": ["nodejs_compat"],
200
+
"migrations": [
201
+
{
202
+
"new_sqlite_classes": ["RoomObject"],
203
+
"tag": "v1",
204
+
},
205
+
],
206
+
"durable_objects": {
207
+
"bindings": [
208
+
{
209
+
"class_name": "RoomObject",
210
+
"name": "ROOM_OBJECT",
211
+
},
212
+
],
213
+
},
214
+
```
215
+
216
+
You must also setup a few [secrets](https://developers.cloudflare.com/workers/configuration/secrets/):
217
+
218
+
-`ACCOUNT_ID`: Your Cloudflare account ID
219
+
-`API_TOKEN`: Cloudflare API token scoped for `Admin` access to `Realtime`
220
+
-`ELEVENLABS_API_KEY`, `DEEPGRAM_API_KEY`: ElevenLabs & Deepgram API keys
0 commit comments