GuidesPrompt
Tutorial: write a good prompt in five parts
The five parts
- 1RoleWho answers.
- 2ContextWhat it must know.
- 3TaskWhat you ask.
- 4FormatThe shape of the answer.
- 5ExampleA good answer.
A template to copy
You are a copywriter for a bedding store.
Context: our customers are young parents. The tone is calm and direct.
Here is the product spec sheet: [sheet pasted here].
Task: write the product description for the sales page.
Format: a title of 8 words at most, then three short paragraphs.
Do not invent any feature missing from the sheet.
Tone example: "A firm mattress, made for broken nights."
Why it works
- The role sets the level and the vocabulary.
- The context replaces what the model cannot know.
- The task fits in one sentence, with a verb.
- The format saves you from reworking the answer.
- The example shows the tone better than ten adjectives.
Three common mistakes
- Asking without giving the data. The model invents to fill the gap.
- Stacking requests. One task per prompt.
- Not saying what you do not want.
Going further
When the same prompt is used every day, it becomes a tool. See AI agents: connecting them to real data.
Frequently asked questions
- Should prompts be long?
- They should be complete. The model knows nothing about your situation: what you do not write, it guesses.
- What language should I write the prompt in?
- In the language of the answer you expect. Recent models work well in most major languages.
- What if the answer is bad?
- Look for the missing part. Most often it is the context or the format.