All Lessons
A developer adds {"role": "system", "content": "You are a pirate"} as the first item in the messages array and is surprised the API rejects it. How should a system prompt be supplied in the Messages API?
1 / 3
beginner 25 min
System Prompts & Messages
Based on Anthropic Claude documentation and the CCA-F exam blueprint. Updated June 2026.
Loading lesson content...