liveBook · Manning

Chapter 6: Prompt types

What you will learn in chapter 6 of Prompt Engineering in Practice

The introduction explains why a prompt that combines enduring instructions with changing data can be split into system and user prompts.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The introduction explains why a prompt that combines enduring instructions with changing data can be split into system and user prompts.

Key terms: monolithic prompt, stable behavioral instructions, variable input data, system prompts, user prompts

6.1 Chat model architecture

This section contrasts isolated text-completion requests with chat APIs that send role-tagged messages to separate instructions from user input and support multiturn conversations.

Key terms: completion engines, chat APIs, structured message roles, system, user, assistant

6.1.1 Three message types

This section distinguishes system, user, and assistant messages and shows how their roles shape a multi-turn chat conversation.

Key terms: system message, user message, assistant message, conversation history

6.1.2 What you design: System and user prompts

This section explains which chat prompts you design, where changing input belongs, and how that separation can support prompt caching.

Key terms: system prompts, system messages, user prompts, user messages, input variables, system prompt, delimiters, {{incident_report}}, assistant messages, example exchanges

6.2 System prompts

This section explains how system prompts set consistent model behavior across interactions, in contrast to user prompts that change from one interaction to the next.

Key terms: system prompts, user prompts, role assignment, output format, communication style

6.2.1 Purpose and principles

This section explains how system prompts establish consistent behavior and why each should have one well-defined responsibility.

Key terms: Instructions, Constraints, Context (static background), Output format, Input parameters, delimited form, single, well-defined purpose, single responsibility principle

6.2.2 Quick reference: Mapping chapter 2 elements to chat prompts

This section maps prompt elements to system and user messages, then qualifies system-prompt length and authority.

Key terms: system prompt, user prompt, static context, variable context, input parameters, delimiters, system prompt length, tokens, behavioral guidelines, strong defaults

6.2.3 Practical example: Linear issue assistant

The Linear issue assistant example shows how separating shared issue-writing standards from each engineer’s task request produces consistent issues without repeating the standards in every prompt.

Key terms: system prompt, user prompt, monolithic approach, output structure, acceptance criteria, output format, root cause, constraints

6.3 User prompts

This section distinguishes the changing input in user prompts from the stable behavior set by system prompts.

Key terms: user prompts, system prompts, user input

6.3.1 Types and templates

This section distinguishes three user-prompt types by what the user supplies and explains why data blocks may be delimited.

Key terms: query-based user prompts, context-based user prompts, query + context user prompts, system prompt, delimiters, variable blocks, prompt hygiene, adversarial inputs

6.3.2 Practical example: Harvest daily report assistant

A Harvest daily report example shows how a fixed system prompt and a reusable user prompt template turn changing work evidence into consistent reports.

Key terms: system prompt, user prompt, day-specific evidence, user prompt template, input parameters, values injected, Work Context, Summary of Work, Daily Report, Output Format

6.4 Prompt decomposition framework

Introduces the task of splitting complete prompts and templates for chat model APIs, without yet explaining how to do it.

6.4.1 The core question

This section gives a single question for splitting a prompt into system and user components.

Key terms: system configuration, system prompt, user prompt, prompt decomposition

6.4.2 Worked example: Decomposing step by step

This section works through splitting a rollout-plan analysis prompt into stable system instructions and a user prompt containing the changing plan.

Key terms: monolithic prompt, system prompt, user prompt template, role assignment, constraints, output format

6.4.3 Quick decisions

This section gives a quick rule for placing stable instructions in system prompts and request-specific material in user prompts.

Key terms: system prompt, user prompt, delimiters, variable content

6.4.4 When to use architectural separation

This section explains when a simple combined prompt is enough and when separating system instructions from user inputs is worth the added complexity.

Key terms: simple combined prompts, system/user separation, architectural separation, system prompt, user prompt template, Customer Context, standards

6.4.5 Common mistakes

This section shows four common prompt-decomposition mistakes and how to keep stable instructions in system prompts while putting changing, clearly delimited data in user prompts.

Key terms: system prompt, user prompt, instructions, output format, constraints, context data, delimiters, customer feedback, variables, cache efficiency

6.4.6 Hands-on practice

This hands-on section asks readers to separate stable assistant behavior from changing user inputs and to justify when a short monolithic prompt or a system–user pair is appropriate.

Key terms: system prompt, user prompt, monolithic prompt, delimiters, architectural decision

6.5 Summary

Summarizes how chat message types divide prompt content, how to decompose system and user prompts, and when that separation is worth using.

Where this is used later

Concepts explained in this chapter

← Chapter 5: Templates Chapter 7: Contextual prompting →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.