Sub topic 5
Writing a structured prompt
What this chapter assumes
You have used a chat-based AI assistant at least occasionally. You know the core PM activities: discovery, writing requirements, and prioritization. This chapter covers how to turn a vague request into a prompt that gives you usable output on the first or second try.
Why structure matters
A language model predicts likely text from the words you give it. If your request is short and vague, the model fills the gaps with the most typical answer. For a PM that usually means generic advice, an unwanted format, or invented details.
A structured prompt removes those gaps. It states five things:
- Role: the perspective the model should take.
- Context: the situation and the audience.
- Task: the one thing you want done.
- Format: the shape of the output.
- Constraints: the limits on what the model may use or claim.
You do not need all five every time. A quick rewording of a sentence needs only a task. Anything that feeds a decision or a document benefits from all five.
The five parts in detail
Role
The role sets vocabulary and level of detail. "You are a senior product manager reviewing customer research" produces different wording than "You are a copy editor."
A role is a style hint. It does not give the model knowledge it lacks, and it does not make the output more accurate. Keep it to one short line.
Context
Context says who you are, what the product is, and what the material is. "We build a project-management app for small agencies" lets the model judge what counts as a problem worth reporting.
Context also covers the audience for the output. A summary for an engineer differs from one for an executive. The next chapter covers how to supply your own source material in more depth.
Task
State one task, using a clear verb: identify, compare, rewrite, classify, draft. A prompt that says "analyze this and also write the email and suggest a roadmap" produces three weak answers. Split it into three prompts.
Include the size of the task where it matters: "the three most common problems," not "the problems."
Format
Name the output shape. Tables, numbered lists, and fixed headings are easy to scan and easy to compare across runs. Say which columns or fields you want, and set a length limit if the output has a destination, such as "under 120 words."
Constraints
Constraints are where you control reliability. Useful ones for PM work:
- Source limits: "Use only the notes below."
- Handling of thin evidence: "If a point appears in only one interview, say so."
- Banned inference: "Do not infer motives that are not stated."
- Escape hatch: "If the notes do not answer this, say so."
The escape hatch matters most. Without it, the model tends to produce an answer even when the material does not support one.
A worked example
Here is a complete prompt for synthesizing interview notes.
Role: You are a senior product manager reviewing customer research.
Context: We build a project-management app for small agencies. The notes below are from five interviews about onboarding.
Task: Identify the three most common problems participants describe.
Format: A table with columns Problem, Number of participants who mentioned it, and One short supporting quote.
Constraints: Use only the notes below. If a point appears in only one interview, say so. Do not infer motives that are not stated.
Notes:
"""
[paste anonymized interview notes here]
"""Look at how each part works:
- The role and context are one line each.
- The task fixes the count at three.
- The format asks for a count and a quote per problem, so you can check each row against the notes.
- The constraints close off the likely failures: outside knowledge, overstated patterns, and guessed motives.
- The triple quotes mark where your material starts and ends. That keeps the model from mixing your instructions with the text inside the notes. If the notes contain a sentence that looks like an instruction, the fence helps the model treat it as data.
Before you paste real notes, remove names and other personal details. The privacy chapter covers this.
Asking for open questions instead of guesses
Specs show the same pattern. If you ask for a user story and acceptance criteria from a one-line feature idea, the model will invent requirements to fill the space. Give it a place to put its uncertainty.
Draft a user story and acceptance criteria for the feature described below.
Feature: Let workspace admins export the member list as a CSV file.
Use this format:
User story: As a <role>, I want <capability>, so that <benefit>.
Acceptance criteria: a numbered list of testable statements, each in Given / When / Then form.
Open questions: anything the description leaves undefined that engineering or design must decide.
Do not invent requirements. Put anything you are unsure about under Open questions.The "Open questions" section gives the model a legitimate output for gaps such as which columns the CSV includes, how large lists behave, and who counts as an admin. You then take those questions to engineering and design.
Common errors
| Error | What happens | Fix |
|---|---|---|
| Several tasks in one prompt | Each task gets shallow treatment | One task per prompt, chained in order |
| No format given | Long prose that is hard to check | Name columns, headings, or a length |
| No source limit | The model mixes your notes with general knowledge | Add "Use only the notes below" |
| No escape hatch | Confident answers to unanswerable questions | Tell it to say when the material is silent |
| Material not fenced | Instructions and data blur together | Wrap source text in triple quotes |
| Long role description | Style changes, accuracy does not | One line, then spend the words on context |
Reuse the skeleton
Keep the five labels as a template. Fill in the parts that change and leave the rest. Labeled lines also make it easy to see which part to adjust when the output is off:
- Wrong tone or depth: change the role or context.
- Right content, wrong shape: change the format.
- Invented or unsupported claims: tighten the constraints.
This also prepares you for refining output through follow-up prompts, covered in a later chapter.
Exercise
A teammate sends this prompt: "Look at these support tickets and tell me what's going on, then write a roadmap proposal." Name two problems with it, and rewrite the first step as a structured prompt using at least four of the five parts.
Show answer
Problems: (1) it contains two tasks, analysis and a roadmap proposal, which should be separate prompts; (2) it has no format, source limit, or escape hatch, so the answer will be loosely organized and may mix in outside assumptions. A rewrite: "Role: You are a product manager reviewing support data. Context: We build a project-management app for small agencies. The tickets below are from the last month, with customer names removed. Task: Group the tickets into the five most common themes. Format: A table with columns Theme, Number of tickets, and One representative quote. Constraints: Use only the tickets below. If a theme has fewer than three tickets, mark it as weak evidence. If the tickets do not support five themes, return fewer. Tickets: \"\"\" [paste tickets] \"\"\"" The roadmap proposal then becomes a second prompt that uses the verified table as input.
Exercise
In the user-story prompt, why is there an "Open questions" section, and what would likely happen without it?
Show answer
It gives the model an allowed place to report gaps in the feature description. Without it, the model tends to fill gaps with invented requirements, such as specific CSV columns or file-size limits, and presents them as if they were decided. You could then pass those invented details into a spec without noticing.