Anthropic's Prompt Engineering Interactive Tutorial

Learn effective prompt engineering techniques
📊 Original Tutorial 🐙 GitHub

Getting Started

  • Tutorial How-To
  • Intro & Table of Contents

Core Lessons

  • 1. Basic Prompt Structure Exercises
  • 2. Being Clear and Direct Exercises
  • 3. Assigning Roles Exercises
  • 4. Separating Data and Instructions Exercises
  • 5. Formatting Output Exercises
  • 6. Precognition (Thinking Step by Step) Exercises
  • 7. Using Examples (Few-Shot) Exercises
  • 8. Avoiding Hallucinations Exercises

Advanced Topics

  • 9. Complex Prompts - Chatbot
  • 9. Complex Prompts - Legal
  • 9. Complex Prompts - Financial
  • 9. Exercises - Coding
  • 9. Congratulations & Next Steps

Appendix

  • Chaining Prompts
  • Function Calling
  • Search & Retrieval

Enter Your Anthropic API Key

To use the interactive exercises, you'll need an Anthropic API key.

Get your API key from the Anthropic Console →

Note: Your API key is stored locally in your browser and never sent to our servers. It's only used to make direct requests to Anthropic's API from your browser.

Exercise