Skip to content

Commit a81eff8

Browse files
authored
agents: prompts.mdx
Improve lead-in and header formatting.
1 parent 1f23ad9 commit a81eff8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/content/docs/agents/build/prompts.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { Tabs, TabItem, GlossaryTooltip, Type, Badge, TypeScriptExample } from "
99

1010
## Prompting <Badge text="Beta" variant="caution" size="small" />
1111

12+
When building, iterating on or debugging applications using AI tools and Large Language Models (LLMs), a well-structured and extensive prompt helps provide the model with clearer guidelines & examples that can dramatically improve output.
13+
1214
We're providing an extensive example prompt that can help you build apps and AI agents using Cloudflare Workers and your preferred AI model.
1315

1416
```md collapse={30-10000}
@@ -754,10 +756,11 @@ curl "<https://api.cloudflare.com/client/v4/accounts/{account_id}/analytics_engi
754756
The prompt above adopts several best practices, including:
755757

756758
* Using `<xml>` tags to structure the prompt
757-
* Including clear API and usage examples for specific products and use-cases
759+
* API and usage examples for products and use-cases
758760
* Guidance on how to generate configuration (e.g. `wrangler.jsonc`) as part of the models response.
761+
* Recommendations on Cloudflare products to use for specific storage or state need
759762

760-
### Using the prompt
763+
## Using the prompt
761764

762765
:::note
763766

@@ -839,7 +842,9 @@ export default {
839842
</TypeScriptExample>
840843

841844

842-
### Additional resources
845+
## Additional resources
846+
847+
To get the most out of AI models and tools, we recommend reading the following guides on prompt engineering and structure:
843848

844849
* OpenAI's [prompt engineering](https://platform.openai.com/docs/guides/prompt-engineering) guide and [best practices](https://platform.openai.com/docs/guides/reasoning-best-practices) for using reasoning models.
845850
* The [prompt engineering](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview) guide from Anthropic

0 commit comments

Comments
 (0)