Sub topic 5
Writing a Structured Prompt
Assume you already understand product discovery, requirements writing, basic metrics, and chat-based AI assistants. This chapter focuses on turning a vague request into a prompt that gives the model enough direction to produce useful work.
A structured prompt is a prompt with explicit sections for the model's role, context, task, output format, and constraints. These sections reduce ambiguity and make the result easier to review.
The five parts of a useful prompt
| Part | Purpose | Example |
|---|---|---|
| Role | Sets a relevant perspective | “You are a senior product manager.” |
| Context | Supplies facts and source material | “We build project-management software for small agencies.” |
| Task | States the work to perform | “Identify the three most common onboarding problems.” |
| Format | Defines the shape of the answer | “Return a table with three columns.” |
| Constraints | Limits unsupported behavior | “Use only the notes. Do not infer motives.” |
The role can guide vocabulary and priorities, but it does not give the model special knowledge. Context is usually more important. Include the definitions, documents, examples, and rules that the answer depends on.
The task should contain one main action. Separate several actions into numbered steps when they must happen in order. The format should be specific enough that you can inspect the result quickly. Constraints should state what the model must not assume, omit, or change.
A practical template
Role: You are a senior product manager reviewing customer research.
Context: We build a project-management app for small agencies.
The notes below come from five interviews about onboarding.
Task: Identify the three most common problems participants describe.
Format: Return a table with columns:
Problem, Number of participants, Supporting quote.
Constraints:
- Use only the notes below.
- If a problem appears in only one interview, say so.
- Do not infer motives that participants did not state.
Notes:
"""
[paste anonymized interview notes here]
"""The quotation marks around the notes create a clear boundary between instructions and source material. They do not guarantee correctness, so you still need to check the result against the notes.
Make prompts testable
A good prompt makes success observable. Instead of asking, “Analyze these interviews,” ask for named fields, counting rules, and evidence. Define ambiguous terms such as “active user,” “new customer,” or “common problem.” If you need exact counts, explain whether one participant can contribute more than one problem.
You can also ask the model to expose uncertainty:
For each finding, include:
- the claim,
- the supporting quote,
- the participant count,
- any uncertainty or missing information.This structure separates evidence from interpretation. It also makes unsupported claims easier to spot.
Prompt flow
Exercise
Rewrite “Summarize these customer interviews” as a structured prompt with a task, format, and one constraint.
Show answer
Task: Identify the main problems mentioned in the interviews. Format: Return a table with Problem, Participant count, and Supporting quote. Constraint: Use only statements directly supported by the interviews.