The Four Elements of a Strong Prompt
2 / 5Most prompt engineering advice focuses on advanced techniques. But the majority of poor outputs come from missing one of four basic elements. Get these right, and your prompt quality will improve dramatically.
The Four Elements
Every strong prompt contains some combination of:
- 1.Task — What you want the AI to do
- 2.Context — Background information it needs to do it well
- 3.Format — How you want the output structured
- 4.Constraints — Boundaries, limitations, or style requirements
Element 1: Task
The task is the instruction itself — the verb-first description of what you want done.
Weak task: "Climate change" Strong task: "Explain the primary drivers of climate change"
- Task clarity comes from:
- Using a specific action verb (explain, write, analyse, summarise, compare, list, rewrite)
- Being specific about scope ("the three main drivers" vs. "drivers")
- Indicating the target audience when relevant
The most common prompt engineering mistake is a task that's actually a topic. Topics don't tell the AI what to do — they just name it.
Element 2: Context
Context is the background information that shapes what a good response looks like. Without it, the AI makes assumptions — and those assumptions may not match your situation.
Without context: "Write an email about the project delay." With context: "Write an email about the project delay. I'm a project manager messaging a client who was expecting delivery next week. We're now two weeks behind due to a supplier issue. The client is generally understanding but values direct communication."
Element 3: Format
Format instructions tell the AI how to structure its output. Without them, the AI will choose a format — and it may not be what you need.
- Format specifications can include:
- Length ("in 200 words", "in a single paragraph", "in 5 bullet points")
- Structure ("use headers", "as a numbered list", "as a table")
- Document type ("as a formal memo", "as a casual email", "as markdown")
Element 4: Constraints
Constraints define what the output should avoid, limit, or comply with.
- Types of constraints:
- Tone: "Keep the tone professional and avoid jargon"
- Length: "No longer than 150 words"
- Content: "Do not include any specific pricing claims"
- Style: "Avoid clichés and overused phrases"
Putting It Together: An Example
Task: Write a product description for our new noise-cancelling headphones. > Context: Targeted at remote workers aged 30-50 who care more about call quality and focus than music. The key differentiator is a new microphone array that works well in noisy home environments. > Format: Three paragraphs: one on the problem, one on the solution, one with three key specs as bullet points. Total length under 200 words. > Constraints: No superlatives like "best" or "revolutionary". Tone should be confident and practical, not hype-driven.
The Diagnostic Checklist
When a prompt produces a disappointing result, run through this checklist:
- Did I specify a clear action verb in the task?
- Does the AI have the context it needs to make the right assumptions?
- Have I told it how to format the output?
- Are there constraints I should add to prevent unwanted content?