Skip to content

Commit dc854c1

Browse files
elithrarkodster28
andauthored
agents: llms.txt (#19916)
* agents: llms.txt * agents: build nav entry * workers: add link to llms.txt * add prompt * add changelog * prompt changelog * fix desc * .mdx extensions * Update src/content/docs/agents/build/prompts.mdx Co-authored-by: Kody Jackson <[email protected]> * Update src/content/docs/agents/build/prompts.mdx Co-authored-by: Kody Jackson <[email protected]> * Update src/content/docs/agents/build/prompts.mdx * Update prompts.mdx --------- Co-authored-by: Kody Jackson <[email protected]>
1 parent a65f74e commit dc854c1

File tree

5 files changed

+899
-0
lines changed

5 files changed

+899
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Build AI Agents with Example Prompts
3+
description: Build applications on Workers with our prompt examples.
4+
products:
5+
- agents
6+
- workers
7+
- workflows
8+
date: 2025-02-14T19:00:00Z
9+
---
10+
11+
We've added an [example prompt](/agents/build/prompts/) to help you get started with building AI agents and applications on Cloudflare [Workers](/workers/), including [Workflows](/workflows/), [Durable Objects](/durable-objects/), and [Workers KV](/kv/).
12+
13+
You can use this prompt with your favorite AI model, including Claude 3.5 Sonnet, OpenAI's o3-mini, Gemini 2.0 Flash, or Llama 3.3 on Workers AI. Models with large context windows will allow you to paste the prompt directly: provide your own prompt within the `<user_prompt></user_prompt>` tags.
14+
15+
```sh
16+
{paste_prompt_here}
17+
<user_prompt>
18+
user: Build an AI agent using Cloudflare Workflows. The Workflow should run when a new GitHub issue is opened on a specific project with the label 'help' or 'bug', and attempt to help the user troubleshoot the issue by calling the OpenAI API with the issue title and description, and a clear, structured prompt that asks the model to suggest 1-3 possible solutions to the issue. Any code snippets should be formatted in Markdown code blocks. Documentation and sources should be referenced at the bottom of the response. The agent should then post the response to the GitHub issue. The agent should run as the provided GitHub bot account.
19+
</user_prompt>
20+
```
21+
22+
This prompt is still experimental, but we encourage you to try it out and [provide feedback](https://github.com/cloudflare/cloudflare-docs/issues/new?template=content.edit.yml).
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
pcx_content_type: reference
3+
title: Build
4+
sidebar:
5+
order: 10
6+
group:
7+
hideIndex: true
8+
---
9+
10+
import { DirectoryListing } from "~/components";
11+
12+
Build
13+
14+
<DirectoryListing />
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
pcx_content_type: navigation
3+
title: llms.txt
4+
external_link: /llms.txt
5+
sidebar:
6+
order: 20
7+
head: []
8+
description: Provide context to your AI models & tools when building on Cloudflare.
9+
---

0 commit comments

Comments
 (0)