Lesson 2.1

Designing the system prompt

The system prompt sets role, constraints, and refusals. It is followed more reliably than instructions buried in user content, so the load-bearing rules belong here.

Duration
21m
Level
Intermediate
Students
22k students

Overview

The system prompt sets role, constraints, and refusals. It is followed more reliably than instructions buried in user content, so the load-bearing rules belong here.

In this lesson you will:

  • Separate durable rules from per-request input
  • State constraints and refusals explicitly
  • Keep it short enough to stay affordable per call

Resources

Claude API documentation

The official reference for the tools used in this lesson.