ABCDEFGHI
1
Welcome to the Prompt Engineering Interactive Tutorial
2
3
Note: This is a non-interactive answer key for the tutorial! You will not be able to interact with Claude in the spreadsheet.
4
5
Course introduction and goals
6
This course is intended to provide you with a comprehensive step-by-step understanding of how to engineer optimal prompts within Claude.

After completing this course, you will be able to:
Master the basic structure of a good prompt
Recognize common failure modes and learn the '80/20' techniques to address them
Understand Claude's strengths and weaknesses
Build strong prompts from scratch for common use cases
7
8
Course structure and content
9
This course is structured to allow you many chances to practice writing and troubleshooting prompts yourself. The course is broken up into 9 chapters with accompanying exercises, as well as an appendix of even more advanced methods. It is intended for you to work through the course in chapter order.

Each lesson has an "Example Playground" area at the bottom where you are free to experiment with the examples in the lesson and see for yourself how changing prompts can change Claude's responses.

Note: This tutorial uses our smallest, fastest, and cheapest model, Claude 3 Haiku. We have two other models, Claude 3 Sonnet and Claude 3 Opus, which are more intelligent than Haiku, with Opus being the most intelligent.

When you are ready to begin, click on the Chapter 1 Lesson to proceed.
10
11
BeginnerChapter 1: Basic Prompt Structure
12
Lesson
13
Exercises
14
15
Chapter 2: Being Clear and Direct
16
Lesson
17
Exercises
18
19
Chapter 3: Assigning Roles
20
Lesson
21
Exercises
22
23
IntermediateChapter 4: Separating Data from Instructions
24
Lesson
25
Exercises
26
27
Chapter 5: Formatting Output & Speaking for Claude
28
Lesson
29
Exercises
30
31
Chapter 6: Precognition (Thinking Step by Step)
32
Lesson
33
Exercises
34
35
Chapter 7: Using Examples
36
Lesson
37
Exercises
38
39
AdvancedChapter 8: Avoiding Hallucinations
40
Lesson
41
Exercises
42
43
Chapter 9: Building Complex Prompts (Industry Use Cases)
44
Complex Prompts from Scratch - Chatbot
45
Complex Prompts for Legal Services
46
Exercise: Complex Prompts for Financial Services
47
Exercise: Complex Prompts for Coding
48
Congratulations & Next Steps
49
50
Appendix: Beyond Standard Prompting
51
Chaining Prompts
52
Function Calling
53
Search & Retrieval
54
55
56
Chapter 1: Basic Prompt Structure →
57
58
59
60