Skip to main content

What Is a Prompt? Examples, Templates and a Test

What is a prompt? Meaning, structure, examples and templates, plus a test: in the German run, “step by step” lifted DeepSeek V4.1 Flash from 1 to 5 of 5.

FHFinn Hillebrandt
Last updated:
Basics
What Is a Prompt? Examples, Templates and a Test

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:

text
Weak:
Write something about our new coffee machine.
text
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:

Own testNovember 9, 2026via OpenRouter6 answers each, lowest reasoning setting
Claude Sonnet 5.5
Better prompt, no superlatives
Better prompt, no invented features
Gemini 3.8 Flash
Better prompt, no superlatives
Better prompt, no invented features
GPT-6.1 Terra
Better prompt, no superlatives
Better prompt, no invented features
DeepSeek V4.1 Flash
Better prompt, no superlatives
Better prompt, no invented features
Llama 3.1 8B Instruct
Better prompt, no superlatives
Better prompt, no invented features
metmissed
Own test, November 9, 2026
gradually.ai

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.

Own testNovember 7, 2026via OpenRouter5 attempts each, no repeats
GPT-6.1 Terrareasoning off
German, result only
German, with steps
English, result only
English, with steps
DeepSeek V4.1 Flashreasoning off
German, result only
German, with steps+4
English, result only
English, with steps
Llama 3.1 8B Instructno reasoning mode
German, result only
German, with steps+1
English, result only
English, with steps+4
correctwrong+4Gain from the step-by-step instruction
Own test, November 7, 2026
gradually.ai

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

Answer

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.

Presets:
Generated Prompt5 / 6
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.
Tip: The more specific your prompt, the better the response. Start with the task and gradually add context, format, and constraints.

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

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

text
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

text
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

text
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:

Plan a trip
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.”
Job application
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.”
Learning
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.”
Social media
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.”
Spreadsheets
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.”
Explain simply
Weak prompt
“Explain blockchain.”
Better prompt
“Explain blockchain in four sentences for ten-year-olds, with an example from everyday life.”
Own examples

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.

Role in the conversation
Variants
System prompt, user prompt
Example
The system prompt sets rules and tone, the user prompt is your request.
Examples in the prompt
Variants
Zero-shot, one-shot, few-shot
Example
No example, one, or several samples of the desired result.
Thinking instruction
Variants
Direct, step by step (chain of thought)
Example
“Explain your solution step by step.”
Target medium
Variants
Text, image, video, code, audio
Example
An image prompt describes subject, style and light, a code prompt names language and interface.
Own classification

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

Prompt forText
Goal, audience, tone, length, format“Write a LinkedIn post about X, 600 characters, factual, no hashtags.”
Prompt forImage
Subject, style, light, perspective, composition“Espresso cup on a wooden table, morning light from the left, macro shot, shallow depth of field.”
Prompt forVideo
Scene, camera movement, duration, style“Slow pan across a harbor city at sunrise, calm mood, 8 seconds.”
Prompt forCode
Language, input and output, edge cases, tests“Write a Python function that validates invoice numbers, with three test cases.”
Own classification

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

Too vague
Instead“Write something about AI.”
Better“Explain in three paragraphs, for managing directors, where AI already saves time in customer service today.”
Too much at once
Instead“Analyze the market, write a plan and design the slides.”
BetterThree separate prompts, each taking the previous result as input.
No format
Instead“Compare the plans.”
Better“Compare the plans in a table with price, term and notice period.”
Missing context
Instead“Is that a good price?”
Better“We sell B2B software to tradespeople. Is $49 a month per user a good price? State your assumptions.”
No permission to pass
Instead“What was the revenue in 2019?”
Better“Use only the attached document. If the figure is not in it, say so.”
Own classification

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

Instructions
Early chatbots (2023)
Tricks and formulas were often needed
Current models
Clear, direct instructions are usually enough
Step-by-step thinking
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
Length
Early chatbots (2023)
Keep it short because of small context
Current models
Long inputs and documents are normal
Material
Early chatbots (2023)
Knowledge came from the model
Current models
Files, web search and tools supply the material
Own classification

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.

Showing 15 of 51 techniques, basics first

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.

Frequently Asked Questions

Tell the model what you want to achieve, for whom and in what form. Add the context it needs, name constraints and fix the output format. If a particular style matters, attach one to three examples. Copy-ready templates are further up on this page, and the guide to ChatGPT prompts for writing goes deeper.

They are specific instead of vague and contain everything a new colleague would need to know for the task: goal, audience, material, format and limits. They are usually longer than a sentence but clearly structured. The comparison in the section “Mistakes and how to fix them” shows the difference.

In ChatGPT, the prompt is whatever you type into the message box, plus any files you attach. The model also sees an invisible system prompt from the app and the earlier messages of the chat, and it answers based on all of that together.

Prompts can be sorted along independent axes: by role (system prompt and user prompt), by examples (zero-shot, one-shot, few-shot), by thinking instruction (direct or step by step) and by medium (text, image, video, code, audio). Every prompt sits on several axes at once.

An everyday example is “Write a reply to this customer complaint, 100 words at most, friendly, without promising a discount.” It contains a task, a length, a tone and a limit. More copy-ready examples are in the section “Four templates to copy”.

In computing, a prompt is the symbol or text in a command line that shows the system is ready for input, such as the dollar sign in a terminal. In AI, the word means something different, namely the input you give a model. As a noun, the English word “prompt” means a request or cue to act.
Sources and References
FH

Finn Hillebrandt

AI Expert & Blogger

Finn Hillebrandt is the founder of Gradually AI, an SEO and AI expert. He helps online entrepreneurs simplify and automate their processes and marketing with AI. Finn shares his knowledge here on the blog in 50+ articles as well as through the AI Business Club.

Learn more about Finn and the team, follow Finn on LinkedIn, join his Facebook group for ChatGPT, OpenAI & AI Tools or do like 17,500+ others and subscribe to his AI Newsletter with tips, news and offers about AI tools and online business. Also visit his other blog, Blogmojo, which is about WordPress, blogging and SEO.