The Claude Console offers a suite of tools to help you build and refine prompts. This page walks through them in the order you'll typically use them: generating a first draft, adding templates and variables, then improving an existing prompt.
The prompt generator is compatible with all Claude models, including those with extended thinking capabilities. For prompting tips specific to extended thinking models, see the extended thinking prompting tips.
Sometimes, the hardest part of using an AI model is figuring out how to prompt it effectively. The prompt generator guides Claude to create high-quality prompt templates tailored to your specific tasks, following many of our prompt engineering best practices.
The prompt generator is particularly useful for solving the "blank page problem"—it gives you a jumping-off point for further testing and iteration.
If you're interested in analyzing the underlying prompt and architecture, check out our prompt generator Google Colab notebook. To run the Colab notebook, you'll need an API key.
When deploying an LLM-based application with Claude, your API calls will typically consist of two types of content:
A prompt template combines these fixed and variable parts, using placeholders for the dynamic content. In the Claude Console, these placeholders are denoted with {{double brackets}}, making them easily identifiable and allowing for quick testing of different values.
You should use prompt templates and variables when you expect any part of your prompt to be repeated in another call to Claude (via the API or the Claude Console. claude.ai currently does not support prompt templates or variables).
Prompt templates offer several benefits:
The Console uses prompt templates and variables to power its tooling:
Consider a simple application that translates English text to Spanish. The translated text would be variable since it changes between users or calls to Claude. You might use this prompt template:
Translate this text from English to Spanish: {{text}}The prompt improver is compatible with all Claude models, including those with extended thinking capabilities. For prompting tips specific to extended thinking models, see the extended thinking prompting tips.
The prompt improver helps you quickly iterate and improve your prompts through automated analysis and enhancement. It excels at making prompts more robust for complex tasks that require high accuracy.

You'll need:
The prompt improver enhances your prompts in 4 steps:
You can watch these steps happen in real-time in the improvement modal.
The prompt improver generates templates with:
While examples appear separately in the Workbench UI, they're included at the start of the first user message in the actual API call. View the raw format by clicking "</> Get Code" or insert examples as raw text via the Examples box.
Don't have examples yet? Use the Test Case Generator to:
The prompt improver works best for:
For latency or cost-sensitive applications, consider using simpler prompts. The prompt improver creates templates that produce longer, more thorough, but slower responses.
Here's how the prompt improver enhances a basic classification prompt:
Notice how the improved prompt:
Common issues and solutions:
Learn core techniques with worked examples.
Get inspired by a curated selection of prompts for various tasks and use cases.
Use the evaluation tool to test your improved prompts.
An example-filled tutorial that covers the prompt engineering concepts found in our docs.
Was this page helpful?