Skip to content

Commit 73f6421

Browse files
committed
index.mdx
1 parent 71b07d9 commit 73f6421

File tree

3 files changed

+34
-50
lines changed

3 files changed

+34
-50
lines changed

src/content/docs/agents/getting-started/quick-start.mdx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,20 @@ You can get started by using the `cloudflare/agents-starter` template to create
2727
<PackageManagers
2828
type="create"
2929
pkg="cloudflare@latest"
30-
args={"--", "my-agent", "--template", "cloudflare/agents-starter"}
30+
args={"my-agent", "--template=cloudflare/agents-starter"}
3131
/>
3232

33-
This will create a new directory called `my-agent` with a number of files, but there are three we need to focus on:
33+
This will create a new directory called `my-agent` with several files, including:
3434

3535
<FileTree>
36+
- **wrangler.jsonc** project configuration
3637
- src
3738
- **index.ts** **where your Agent's code is defined**
38-
- **wrangler.jsonc** project configuration
3939
- test
40-
- index.spec.ts test definitions
40+
- index.spec.ts **where your tests are defined**
4141
- ...
4242
</FileTree>
4343

44-
TODO:
45-
46-
- what this template does
47-
- how to deploy it and get quick win
48-
- how to iterate on it and extend it
49-
- re-deploy
50-
- go explore :-)
51-
5244
## 2. Review the code
5345

5446
Open up `src/index.ts` in your favorite text editor:

src/content/docs/agents/index.mdx

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,49 @@ import {
2323
Tabs,
2424
} from "~/components";
2525

26-
Build and deploy AI-powered [agents](/agents/) that can autonomously perform tasks, persist state, browse the web, query data and communicate back to users in real-time over any channel.
26+
Build and deploy AI-powered Agents on Cloudflare that can autonomously perform tasks, communicate with clients in real time, persist state, execute long-running and repeat tasks on a schedule, send emails, run asynchronous workflows, browse the web, query data from your Postgres database, call AI models, support human-in-the-loop use-cases, and more.
2727

28-
### Why builds agents on Cloudflare?
28+
#### Ship your first Agent
2929

30-
- **Cost-Effective**: Pay only for [CPU usage](https://blog.cloudflare.com/workers-pricing-scale-to-zero/), not wall-clock time—saving costs during agent pauses while awaiting LLM responses or external tools.
31-
- Serverless AI Inference: Access AI models on-demand with [Workers AI](https://developers.cloudflare.com/workers-ai) with pay-per-use billing and no infrastructure management required.
32-
- Durable Execution: Maintain state persistence and execution reliability for complex multi-step processes with built-in retry mechanisms, using [Durable Objects](https://developers.cloudflare.com/durable-objects) and [Workflows](https://developers.cloudflare.com/workflows).
30+
Use the agent started template to create your first Agent:
3331

34-
### Start building
32+
```sh
33+
# install it
34+
npm create cloudflare@latest -- --template=cloudflare/agents-starter
35+
# and deploy it
36+
npx wrangler@latest deploy
37+
```
3538

36-
Use the agent started template to bootstrap your first agent:
39+
Head to the [getting started tutorial](/agents/getting-started/writing-your-first-agent/) to dive into shipping your first Agent on Cloudflare.
3740

38-
<PackageManagers
39-
type="create"
40-
pkg="cloudflare@latest"
41-
args={"--", "--template", "cloudflare/agents/starter"}
42-
/>
41+
If you're already building on [Workers](/workers/), you can install the `agents-sdk` package directly into an existing project:
4342

44-
Head to the [getting started tutorial](/agents/getting-started/writing-your-first-agent/) to dive into shipping your first Agent on Cloudflare.
43+
```sh
44+
npm i agents-sdk
45+
```
46+
47+
Dive into the [Agent SDK reference](/agents/api-reference/sdk/) to learn more about how to use the `agents-sdk` package and defining an `Agent`.
48+
49+
#### Why build agents on Cloudflare?
4550

51+
We built the `agents-sdk` with a few things in mind:
4652

47-
### What's next?
48-
- [Real-time & websockets](/agents/examples/websockets)
49-
- [Manage & sync state](/agents/examples/manage-and-sync-state)
50-
- [Using AI Models](/agents/examples/using-ai-models)
53+
- **Batteries (state) included**: Agents come with [built-in state management](/agents/examples/manage-and-sync-state/), with the ability to automatically sync state between an Agent and clients, trigger events on state changes, and read+write to each Agent's SQL database.
54+
- **Communicative**: You can connect to an Agent via [WebSockets](/agents/examples/websockets/) and stream updates back to client in real-time. Handle a long-running response from a reasoning model, the results of an [asynchronous workflow](/agents/examples/asynchronous-workflows/), or build a chat app that builds on the `useAgent` hook included in the `agents-sdk`.
55+
- **Extensible**: Agents are code. Use the [AI models](/agents/examples/using-ai-models/) you want, bring-your-own headless browser service, pull data from your database hosted in another cloud, add your own methods to your Agent and call them.
56+
57+
Agents built with `agents-sdk` can be deployed directly to Cloudflare and run on top of [Durable Objects](/durable-objects/) — which you can think of as stateful micro-servers that can scale to tens of millions — and are able to run wherever they need to. Run your Agents close to a user for low-latency interactivity, close to your data for throughput, and/or anywhere in between.
5158

5259
***
5360

5461
### Build on the Cloudflare Platform
5562

63+
<RelatedProduct header="Workers" href="/workers/" product="workers">
64+
65+
Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale.
66+
67+
</RelatedProduct>
68+
5669
<RelatedProduct header="AI Gateway" href="/ai-gateway/" product="ai-gateway">
5770

5871
Observe and control your AI applications with caching, rate limiting, request retries, model fallback, and more.
@@ -71,12 +84,6 @@ Run machine learning models, powered by serverless GPUs, on Cloudflare's global
7184

7285
</RelatedProduct>
7386

74-
<RelatedProduct header="Calls" href="/calls/" product="calls">
75-
76-
Build real-time serverless video, audio and data applications with WebRTC running on Cloudflare's network.
77-
78-
</RelatedProduct>
79-
8087
<RelatedProduct header="Workflows" href="/workflows/" product="workflows">
8188

8289
Build stateful agents that guarantee executions, including automatic retries, persistent state that runs for minutes, hours, days, or weeks.

src/content/docs/agents/platform/agents-vs-workflows.mdx

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)