Sub topic 3
Writing prompts that produce usable drafts
This chapter assumes you have used a chat-based AI assistant, know the basic structure of an online course (modules, lessons, assessments), and can read simple JSON and short Python scripts. It builds on the previous chapters, which described what drafting tools do and how their output goes wrong. Here you will learn to write prompts that make those errors less likely and easier to catch.
The working model: a prompt is a brief
An AI assistant produces text that fits the request it receives. It has no knowledge of your learners, your platform, or your course unless you say so. When a prompt is vague, the tool fills the gaps with the most typical answer. For "write a course outline on budgeting," that means a generic outline for a generic learner.
Treat a prompt like a brief you would hand to a new contractor. A good brief answers five questions:
- Who is the audience?
- What is the course goal?
- What are the measurable objectives?
- What format should the output take?
- What limits apply, and what should the tool do when it is unsure?
Here is a prompt that answers all five.
You are helping me draft a course outline.
Audience: working adults new to spreadsheets.
Course goal: build and share a simple monthly budget.
Objectives: (1) Enter and format data. (2) Write basic sum formulas. (3) Create a chart.
Format: 4 modules, each with a title, 3 lesson titles, and one practice activity.
Constraints: no more than 3 hours total; do not assume any specific software version.
If you are unsure of a fact, say so instead of guessing.The sections below explain what each line does and what goes wrong when it is missing.
The five parts of a usable prompt
Audience
The audience line sets vocabulary, pacing, and the examples the tool picks. "Working adults new to spreadsheets" pushes the draft toward plain language and household examples. Without it, you may get examples about corporate finance, or terms such as "named range" in lesson one.
Be specific about what learners already know. "Beginners" is weak. "Adults who have never used a spreadsheet but are comfortable with email and web browsers" is better, because it tells the tool which skills it can assume.
Goal and objectives
The goal states the outcome in one sentence. The objectives break it into measurable pieces. The prompt above lists three objectives, each starting with an action verb: enter, write, create. Verbs like these can be observed, so later you can write a quiz question that tests each one.
If you give the tool vague objectives such as "understand spreadsheets," it will produce vague lessons and quiz questions that test recall of definitions. Number your objectives and keep the numbers stable across every prompt you write for the course. The numbers become the link between the outline, the quiz, and your review.
Format
State the shape of the output exactly. "4 modules, each with a title, 3 lesson titles, and one practice activity" leaves little room for interpretation. Compare it with "give me an outline," which might return a bulleted list, a table, or several paragraphs.
Format also matters when the output feeds another step. If you plan to run a script over the quiz, ask for JSON and show the fields. The next example is a quiz format that records the objective each question tests and the index of the single correct option.
[
{
"id": "q1",
"objective": "obj-2",
"question": "Which formula adds the values in cells B2 through B6?",
"options": ["=SUM(B2:B6)", "=ADD(B2,B6)", "=B2+B6", "=TOTAL(B2:B6)"],
"answerIndex": 0
}
]You can paste a sample like this into the prompt and say "return an array in exactly this shape." Showing one example is usually more reliable than describing the fields in words. The objective field gives you a mapping to check later, and answerIndex gives a script something to validate.
Constraints
Constraints narrow the space of acceptable answers. Useful ones include:
- Total duration or length ("no more than 3 hours").
- Things to avoid ("do not assume any specific software version").
- Reading level ("short sentences, no jargon without a definition").
- Scope boundaries ("do not cover pivot tables").
- Number of options, number of questions, or maximum words per item.
Constraints should be checkable. "Keep it short" cannot be verified, but "no lesson title longer than 8 words" can. Prefer constraints you can test in a few seconds.
Permission to be unsure
The last line of the sample prompt, "If you are unsure of a fact, say so instead of guessing," addresses a failure mode from the previous chapter: invented facts stated with confidence. This instruction does not remove the problem. The tool may still guess without flagging it. But it often produces visible hedges such as "I am not certain this menu name is current," and those hedges tell you where to start checking.
A stronger version asks for the uncertainty in a fixed place: "After the outline, list every factual claim you are not sure about under the heading Unsure."
Iterating: change one thing at a time
A first draft is rarely the final one. Treat prompting as a loop: write, read the output, find the biggest problem, adjust the prompt, and run it again.
Change one part of the prompt at a time. If you add a new audience line, tighten the format, and add three constraints in one step, you cannot tell which change helped. Keep a short log of prompt versions. Later chapters on review workflows describe recording changes, and a prompt log is the first piece of that record.
You can also correct a draft in the same conversation: "Module 3 has five lessons. Rewrite it with exactly three." Be aware that in a long conversation the tool may drift from earlier constraints. For important artifacts, start a fresh conversation with the complete prompt rather than stacking corrections.
Common errors in prompts
| Problem | Example | Effect | Fix |
|---|---|---|---|
| No audience | "Write a quiz on formulas." | Difficulty and vocabulary are random. | Name the audience and what they already know. |
| Vague objectives | "Learners will understand charts." | Questions test recall, not skill. | Use observable verbs: create, identify, compare. |
| Unspecified format | "Give me some questions." | Output cannot be parsed or compared. | Give an exact structure or a sample. |
| Too many tasks in one prompt | Outline, quiz, and captions at once | Each part is shallow and constraints get dropped. | One artifact per prompt. |
| Hidden assumptions | "Use the latest version." | The tool guesses what "latest" means. | State the version, or say "do not assume a version." |
| No uncertainty rule | (nothing) | Guesses read like facts. | Ask for unsure items to be listed. |
Prompts for the three artifact types
The same five parts apply to outlines, quizzes, and captions, but each has its own emphasis.
Outlines. Supply the objectives and ask for the mapping: "Next to each lesson, name the objective number it serves." A lesson with no objective is a candidate for removal, and an objective with no lesson is a gap. The sample prompt above already does most of this work.
Quizzes. Supply the objective, the question type, and the rules for options. For example: "Write 2 multiple-choice questions for obj-2. Each has 4 options, exactly one correct, and no 'all of the above.' Return JSON in this shape." Ask the tool to include the objective ID in every item so alignment can be checked by a script.
Captions. Captions are a different case. The tool needs the source audio or a transcript, and a target format. A request such as "Format this transcript as WebVTT with cues of at most two lines and about seven seconds each" produces a file you can correct. Here is a minimal WebVTT example.
WEBVTT
00:00:00.000 --> 00:00:03.200
Welcome to the course. Today we build a budget.
00:00:03.200 --> 00:00:07.000
Start by entering your income in column B.If the tool did not hear the audio, any timestamps it produces are estimates, not measurements. Say in the prompt where the timing comes from, and expect to correct it against the recording.
Checking that the prompt did its job
A prompt can be tested like any other input. After you get a draft, check the parts that the prompt specified. A short script can do this for structured output. The following function checks a quiz file for missing or out-of-range answer keys, duplicate options, and questions that point to an unknown objective.
import json
def check_quiz(path, objective_ids):
problems = []
with open(path, encoding="utf-8") as f:
questions = json.load(f)
for q in questions:
qid = q.get("id", "?")
options = q.get("options", [])
if len(options) < 3:
problems.append(f"{qid}: fewer than 3 options")
if len(set(options)) != len(options):
problems.append(f"{qid}: duplicate options")
idx = q.get("answerIndex")
if not isinstance(idx, int) or not 0 <= idx < len(options):
problems.append(f"{qid}: answerIndex missing or out of range")
if q.get("objective") not in objective_ids:
problems.append(f"{qid}: objective not in the course objectives")
return problems
print(check_quiz("quiz.json", {"obj-1", "obj-2", "obj-3"}))This check is structural. It confirms the output has the shape you asked for. It cannot tell whether the option marked correct is actually correct, so a person must still verify the answer key. If the script reports problems, that usually means the format section of your prompt needs work, so fix the prompt before fixing the output by hand.
Edge cases
- Pasted source material. If you paste your own notes into a prompt, label them clearly as source material and tell the tool to use only that material. Otherwise it may mix in outside claims. Also check the privacy guidance in the next chapter before pasting anything that includes learner data.
- Conflicting constraints. "Cover eight topics in 30 minutes, with a practice activity for each" may be impossible. The tool may quietly break one of the constraints. Do the arithmetic yourself before you prompt.
- Role lines. "You are an expert instructional designer" sets a tone, but it does not add knowledge. Do not treat it as a substitute for audience and objectives.
- Different runs, different results. The same prompt can give different drafts each time. Save the draft you review, not just the prompt.
- Overlong prompts. Past a certain length, later instructions are more likely to be ignored. Put the most important constraints near the end and again in a short closing line if they matter.
Exercise
A colleague asks an AI tool, "Write 10 quiz questions about charts." The output is a numbered list of questions with no answers marked, and three of them test the definition of a pie chart. Rewrite the request as a prompt that fixes both problems. Which of the five parts did you add or change?
Show answer
A good rewrite names the audience (for example, working adults new to spreadsheets), gives a measurable objective ("obj-3: create a chart from a data range"), asks for 4-option multiple-choice questions with exactly one correct answer, requires JSON with id, objective, question, options, and answerIndex, and tells the tool to list any facts it is unsure of. It also says to test the skill of choosing and building a chart, not definitions. You changed or added the audience, objectives, format, and constraints, plus the permission to be unsure. The format part (JSON with answerIndex) fixes the missing answers, and the objective part fixes the definition-recall questions.
Exercise
You write a prompt that produces an outline with five modules, but you asked for four. You then change the audience line, the format line, and add two constraints, and the next draft has four modules but covers a topic you excluded. What went wrong with your process, and what should you do next?
Show answer
You changed several parts at once, so you cannot tell which change fixed the module count and which caused the excluded topic to appear. Return to the last version of the prompt, change only the format line (or add one constraint, such as "do not cover pivot tables"), and run it again. Record each version in a prompt log. If the conversation has grown long, start a new one with the full prompt.