Find all the your Prompting needs in one place.
Discover guides and code examples to enhance your AI prompting skills and build powerful applications with Claude's API.
Visit Anthropics GitHubA systematic approach to crafting effective AI prompts
Define a clear role and identity for the AI assistant.
Define the target audience and their background clearly.
Specify the exact action or transformation required.
Define the exact format and structure of the desired output.
Set the communication style and emotional tone.
Provide specific scenario and relevant constraints.
Define specific boundaries and success criteria.
Chain-of-thought prompting is a technique used to guide AI models to produce detailed, step-by-step solutions by encouraging logical reasoning and transparency in problem-solving.
Include these phrases in your prompts to encourage detailed reasoning:
Guide the AI to follow these logical steps in its response:
Follow these guidelines to improve interactions with the AI model:
Avoid these mistakes for clearer communication:
Here's how a well-structured prompt leads to a detailed answer:
Structure your prompt like this:
For complex problems, prompt the model by saying, "Explain each step of your reasoning." This encourages the AI to provide a transparent thought process, making it easier to follow and verify.
A structured approach to AI prompt engineering
Define the AI's role clearly
Pro Tip: Use 'You are' instead of 'Act as' for better results
Provide necessary information and context
Pro Tip: Be specific and detailed with your information
Set the background and environment
Pro Tip: Include tone, style, and purpose
Define boundaries and limitations
Pro Tip: Clear constraints lead to focused outputs
Review and refine the output
Pro Tip: Be specific about success criteria