A prompt is the input you use to steer an AI model, such as a question, an instruction or a description in plain language. The model shapes its answer around that text and the rest of its context, so the prompt largely decides how good the result is.
Imagine briefing a very fast, very well-read intern who does not know your business. “Write something about coffee” gets you anything. With a goal, an audience and a format you get what you need. Here is the difference:
Weak:
Write something about our new coffee machine.Better:
Write a product description for our online shop (max. 80 words) for
an espresso machine aimed at beginners. Audience: people who have only
used pod machines. Stress that it makes espresso in under 5 minutes.
Tone: friendly, no jargon. No superlatives.How the two prompts play out shows in a test gradually.ai ran on November 9, 2026. 5 models got each prompt three times in German and in English. The weak prompt produced texts of 18 to 467 words, and no answer addressed pod users or making espresso in under 5 minutes. With the better prompt, all 30 of 30 answers named both, and 28 of 30 stayed under 80 words.
Writing more precisely does not remove every problem. Almost all models added product features the prompt did not state, such as a milk frother or easy cleaning, and two used superlatives although the prompt ruled them out. Each dot stands for one answer to the better prompt, filled means without the error:
| Better prompt | ||
|---|---|---|
| Model | no superlatives | no invented features |
Claude Sonnet 5.5 | ||
Gemini 3.8 Flash | ||
GPT-6.1 Terra | ||
DeepSeek V4.1 Flash | ||
Llama 3.1 8B Instruct | ||
The test is small, six answers per model, and “lowest setting” does not mean entirely without reasoning for several models. Whether something is a superlative or an invented feature was decided while reading the answers. It shows a tendency, not a rate.
As a noun, the English word “prompt” means a request or cue to act. The German Duden dictionary describes a prompt as a task description for generative AI models that create text or images. For a language model the prompt is text, for an image generator it is the image description. Working with prompts is called prompting or prompt engineering.
A prompt is not a search query. A search engine finds pages that already exist. A language model uses your prompt to create new text, rewrite something or analyze material you provide. That is why it pays to say more in a prompt than a few keywords.
How much the prompt matters shows in a test gradually.ai ran on November 7, 2026. A price task (discount, VAT, shipping) was posed five times per model, once asking for the direct answer and once with “step by step first”. Without the instruction, DeepSeek V4.1 Flash was right 1 of 5 times, with it 5 of 5 times. GPT-6.1 Terra got 5 of 5 in both cases.
| German | English | |||
|---|---|---|---|---|
| Model | result only | with steps | result only | with steps |
GPT-6.1 Terrareasoning off | ||||
DeepSeek V4.1 Flashreasoning off | +4 | |||
Llama 3.1 8B Instructno reasoning mode | +1 | +4 | ||
The effect is no law of nature: in the English version, DeepSeek V4.1 Flash was right 5 of 5 times even without the instruction. More on step-by-step thinking is in the entry on chain-of-thought prompting.
1. What happens to your prompt
Your prompt is never the only text the model sees. Behind every answer sits a stack of several parts, and the model reads it as one continuous text.
System prompt
Role, rules and tone, usually set by the provider or app developer
Conversation history
All earlier messages in the chat
Files and search results
Attached documents, web search, retrieved notes
Your message
The prompt you are writing right now
The model reads everything together as one text
That explains why the same prompt behaves differently in different apps. The app's system prompt and the conversation history are different. It also explains why long chats can get less precise, since everything has to fit into the context window.
2. Parts of a good prompt
An effective prompt typically contains these elements:
- Role (optional): A role such as “You are an experienced copywriter” mainly changes tone and perspective and does not reliably improve factual quality
- Context: Background on the situation or task
- Task: A clear description of what the model should do
- Format: The desired structure of the output (list, paragraphs, table, code)
- Constraints: What the model should observe or avoid
- Examples: Optionally one to three samples of the desired output
The visualization shows how the parts work together. Switch individual elements on or off and watch how the prompt changes.
You are an experienced data scientist. I run a blog about AI tools for small businesses. Explain machine learning. Use simple language and maximum 3 paragraphs. Keep the response under 150 words. Avoid technical jargon.
Three rules of thumb help when you do not want to remember every building block:
- Task, context, format, limits: If you settle these four points, little of importance is missing.
- The colleague test: Anthropic recommends showing the prompt to someone who does not know the task. If they would be confused, the model will be too.
- Three to five examples: When format or style matter, Anthropic recommends a few well-chosen examples in the prompt, ideally three to five.
A pattern you can try yourself: let the model ask first. “Ask me questions until you know enough, and only then write the text” catches missing context before the model has to guess.
Once you know the parts, you do not have to assemble them from scratch each time. Ready-made frames exist for four typical tasks.
3. Four templates to copy
Replace the details in square brackets. The templates are starting points that you refine after the first result.
Summarize a text
Summarize the following text for [audience] in [number] bullet points.
Start with the most important finding. Quote numbers exactly as they
appear in the text. If something is missing from the text, write
"not stated" instead of guessing.
Text:
[paste text]Reply to an email
Write a reply to the following email. Goal: [goal, e.g. propose a
meeting]. Tone: [friendly and brief]. Length: at most 120 words.
Output only the email text.
Email:
[paste email]Weigh a decision
I have to choose between [option A] and [option B]. My situation:
[budget, time, goals]. Create a table with pros and cons of both
options for exactly this situation and end with your recommendation
and two sentences of reasoning. Point out any assumptions you had to
make.Review code
Review the following [language] code for bugs and security problems.
List each problem with the line, an explanation and a suggested fix.
Do not change anything that is not broken. If you find no problem,
say so.
Code:
[paste code]More examples from everyday life and work
The same task, once vague and once with goal, context and format:
- Weak prompt
- “Plan my trip to Lisbon.”
- Better prompt
- “Plan three days in Lisbon for two adults, budget $150 a day, little walking. Give a table with morning, afternoon and evening.”
- Weak prompt
- “Write me a cover letter.”
- Better prompt
- “Write a cover letter (maximum 200 words) for this job posting. My background: [paste resume]. Tone: factual, no filler phrases.”
- Weak prompt
- “Explain statistics to me.”
- Better prompt
- “Explain the median with an example of seven salaries. I have no prior knowledge. Then give me two practice questions.”
- Weak prompt
- “Write a post about our café.”
- Better prompt
- “Write an Instagram post (maximum 300 characters) about our new cinnamon roll Saturday. Tone: warm, one emoji, no hashtags.”
- Weak prompt
- “Help me with Excel.”
- Better prompt
- “Column B has dates and column C has amounts. Write a formula that adds all amounts from May 2026.”
- Weak prompt
- “Explain blockchain.”
- Better prompt
- “Explain blockchain in four sentences for ten-year-olds, with an example from everyday life.”
4. Types of prompts
The usual lists of “types” mix different things. It is more useful to sort along independent axes, because every prompt sits on several axes at once.
- Variants
- System prompt, user prompt
- Example
- The system prompt sets rules and tone, the user prompt is your request.
- Variants
- Zero-shot, one-shot, few-shot
- Example
- No example, one, or several samples of the desired result.
- Variants
- Direct, step by step (chain of thought)
- Example
- “Explain your solution step by step.”
- Variants
- Text, image, video, code, audio
- Example
- An image prompt describes subject, style and light, a code prompt names language and interface.
Few-shot pays off mainly when a format or style is hard to describe. The 2020 GPT-3 paper showed that examples in the prompt can improve a model's performance considerably. How much the step-by-step instruction can matter is shown by the test at the start of this entry.
5. Prompts for text, image, video and code
With images, what can be seen is what counts. “Red bicycle against a brick wall, dusk light, wide angle” describes a subject, while “a great, ultra-detailed picture” tells the model nothing. Many models also understand images in a prompt. In claude.ai you upload a photo, screenshot or chart like a file and ask your question about it, for example “What does this table show, and which number stands out?”. For deeper guides, see writing with ChatGPT, Claude, Midjourney and images with ChatGPT. If you want a prompt improved, try the prompt enhancer.
6. Mistakes and how to fix them
The “too much at once” mistake has a name of its own, prompt chaining. You split a big task into several prompts and pass the result of one to the next. Anthropic recommends this mainly when you want to inspect intermediate results, for example in the pattern draft, review against criteria and revision.
A common tip is to give the model a role. It is a tool for tone and perspective. A 2023 study with 2,410 factual questions found that a persona in the system prompt does not improve performance, and the effect of individual roles was largely random. Material and a clear task matter more.
Emotional appeals have been studied too. Li and colleagues appended emotional stimuli to tasks and found improvements across 45 tasks and several models in 2023, a relative 8% on Instruction Induction and 115% on BIG-Bench. Those were the models of the time. For today's models, the advice from the section on then and now applies: clear tasks and good material beat tricks.
7. Prompt engineering and context engineering
Prompt engineering means phrasing the instruction itself well. Context engineering goes further. It decides which information the model sees overall, meaning instructions, history, documents, tool results and memory, and keeps it useful over time. Anthropic describes this in its post “Effective context engineering for AI agents” as choosing and maintaining what sits in the context.
A good prompt is enough for a single question. Once you work with long chats, documents or agents, what sits in the context matters most. Include only the material the task needs, and start a new chat for a new topic.
8. Do you still need tricks? Prompting then and now
- Early chatbots (2023)
- Tricks and formulas were often needed
- Current models
- Clear, direct instructions are usually enough
- Early chatbots (2023)
- “Think step by step” as an add-on
- Current models
- Reasoning models think on their own, so the add-on rarely helps there
- Early chatbots (2023)
- Keep it short because of small context
- Current models
- Long inputs and documents are normal
- Early chatbots (2023)
- Knowledge came from the model
- Current models
- Files, web search and tools supply the material
9. Prompting techniques at a glance
Beyond the basics there are many named techniques from research. The table lists more than 50 of them with source, effort and typical uses. It is meant for looking things up. For everyday work, clear instructions, context and a few examples are usually enough. A selection is explained in the guide to prompting techniques.
How it works
Show 2-8 input-output pairs before the actual task.
Example
Dog: Hund Cat: Katze House: ?
Best for
How it works
Append “Let's think step by step” at the end of the task instruction.
Example
What is 23 × 17? Let's think step by step.
Best for
How it works
Present the task directly without examples. The model generalizes from its training.
Example
Classify the following text as positive or negative: “This product is great!”
Best for
How it works
Prompt: “Answer ONLY based on the given text. Say 'No info' if not included.”
Best for
How it works
Supplement the task with emotional phrases emphasizing urgency or importance.
Example
This is extremely important for my career. Please help me debug this code.
Best for
How it works
Add: “Rephrase the question in your own words, then answer it.”
Example
Rephrase this question and then answer it: Why is the sky blue?
Best for
How it works
Start with “You are a [expert]...” to put the model in a specific context.
Example
You are an experienced financial advisor. Explain the pros and cons of ETFs.
Best for
How it works
Explicitly define tone (formal/informal), length, format, or target audience.
Example
Explain quantum computing to a 10-year-old in maximum 3 sentences.
Best for
How it works
Add “Take a deep breath and work step by step” before the task.
Example
Take a deep breath and work step by step. What is 23 × 17?
Best for
How it works
Query, retrieve documents, augment prompt, generate answer
Best for
How it works
Explicitly demonstrate the intermediate steps of the solution in few-shot examples.
Example
Q: 23 + 47 = ? A: 23 + 47 = 20 + 40 + 3 + 7 = 60 + 10 = 70
Best for
How it works
Step 1: “Generate relevant knowledge about X.” Step 2: “Use this knowledge for Y.”
Best for
How it works
1. Identify subproblems, 2. Sort by difficulty, 3. Solve sequentially.
Example
To solve X: What simpler steps must I solve first?
Best for
How it works
Have the model generate Python code that performs the calculation.
Best for
How it works
Convert the problem into code, execute the code, present the result.
Best for
10. Privacy in the prompt
Everything you write into a prompt goes to a service. If the input contains personal data, data protection rules apply. In its guidance of May 6, 2024, the German Data Protection Conference of the federal and state authorities makes two points that are easy to overlook.
- Deleting names is not enough. To avoid personal data, it regularly does not suffice to remove names and addresses, because a link to a person can be established from the context. Their example is a request for an employment reference for a customer advisor at car dealership X: it can relate to a person if it is recognizable which company made it at what time.
- The output counts too. Even if the input contains no personal data, the model can produce an output with such data, for example when you ask for the best players for your team's lineup.
In practice: enter only what you would also entrust to the provider, and with employee, customer or health data first ask whether the use is allowed. For businesses, the processing additionally needs a legal basis and the people concerned must be informed.
11. What this means for you
- Start with one of the templates above and refine it after the first result.
- Supply the material instead of letting the model work from memory, and explicitly allow it to say that something is missing.
- Fix format and length to save rework.
- Treat answers as drafts and check facts yourself.
- Do not enter personal data you are not allowed to pass on. Blacking out names often is not enough.
- Be careful with prompts from unknown sources, because injected instructions are a risk, see prompt injection.
