6 Prompt Types
This chapter covers
- How chat models process conversations through three message types: system, user, and assistant
- Designing system prompts that define what the model does across interactions
- Crafting user prompts that supply the query or context for a single request
- Applying a decision framework to split a prompt into system and user components
- Knowing when that separation earns its keep versus when a simple prompt is enough
You have built a prompt that works well. It contains instructions, role, output format, and communication style in one block, followed by the data to process. When the data changes, you copy the whole prompt and replace the final section.
This is a monolithic prompt. It mixes two concerns that should be separate: stable behavioral instructions and variable input data. Chat models let you split these into system prompts and user prompts. Instructions configure behavior; user messages carry changing input.
This chapter shows how to decompose monolithic prompts into maintainable, scalable components. Starting with this chapter, practical examples use the https://platform.openai.com/playground rather than ChatGPT because it exposes system, user, and assistant message fields directly. That visibility makes prompt-type architecture clear.