Free preview · Stage 4: Prompt Engineering · 3 min read
What a Prompt Is and How It Is Built
Version 1 · last reviewed 2026-12-04
A prompt is everything you give an AI model so that it can produce a response. That includes your question, any instructions, background information, examples and even the earlier messages in the conversation. The model does not read your mind. It predicts a useful continuation of the text it has been given, so the quality of what goes in strongly shapes the quality of what comes out.
The parts of a prompt
Most good prompts are built from a handful of building blocks. You do not need all of them every time, but knowing them helps you diagnose a weak prompt.
- Task: what you want done, stated as a clear action.
- Context: the background the model needs, such as the audience or the situation.
- Input: the material to work on, such as an email, a table or a document.
- Constraints: limits on length, tone, scope or things to avoid.
- Output format: how the answer should look, such as bullets, a table or JSON.
- Examples: samples of the kind of output you want.
A concrete example
Weak prompt: "Write about our new feature."
Stronger prompt:
Task: Write a product announcement for our customers.
Context: We are a small invoicing app. The new feature lets users send automatic payment reminders. Readers are busy freelancers.
Constraints: Under 120 words, friendly and plain tone, no hype words.
Format: A headline followed by two short paragraphs.The second version removes most of the guessing. The model no longer has to decide who the readers are, how long to write or what style to use.
Prompts are not magic spells
Prompt engineering is the practice of designing, testing and refining prompts. It is not about secret phrases. It is about communicating clearly, giving enough information and checking results. Models can still make mistakes or invent details even with excellent prompts, so you remain responsible for reviewing the output.
Also remember that different models respond a little differently. A prompt that works well in one tool may need small adjustments in another, which is why testing matters.
Think
A colleague sends the prompt "Summarize this." and is unhappy that the summary is too long and aimed at the wrong audience. Which missing prompt parts best explain the problem?
Want the Apply exercise, progress tracking and the certificate?