Zero-Shot Prompting: How to Get Good Answers Without Examples
What zero-shot prompting is, when it works better than adding examples, and fill-in templates for summaries, classification, extraction and rewriting.
- Published
- Reading time
- 5 min
Most prompts people type into ChatGPT, Claude or Gemini are zero-shot prompts. "Summarise this article." "Translate this into Spanish." "Is this review positive or negative?" There is no example of the answer, just an instruction, and the model does the rest.
The name sounds technical, but the skill behind it is simple: writing an instruction clear enough that the model doesn't need an example. This guide explains what zero-shot prompting is, when it is the right choice, and gives you templates that make plain instructions more reliable.
What zero-shot prompting means
A "shot" is one worked example in your prompt. The three common approaches are:
| Approach | What you give the model | Example |
|---|---|---|
| Zero-shot | An instruction only | "Classify this ticket as Billing, Technical or Other." |
| One-shot | Instruction + one example | The same, plus one ticket with its correct label |
| Few-shot | Instruction + several examples | The same, plus three to five labelled tickets |
Large language models have learned from a huge amount of text, so they already know how to summarise, translate, classify and rewrite. A zero-shot prompt simply points that knowledge at your task. If you want the other side of the comparison, read our guide to few-shot prompting.
When zero-shot is the right choice
Zero-shot prompting works well when:
- The task is common. Summaries, translations, explanations, outlines, grammar fixes and simple data extraction.
- The categories are obvious. Positive vs negative, urgent vs not urgent, question vs complaint.
- You want range. Brainstorming names, angles or ideas. Examples would pull every answer towards them.
- You don't have examples yet. A zero-shot run is a quick way to produce a first draft you can later turn into an example.
It is weaker when your output must match a house style, a precise format that a model would not guess, or a judgement rule specific to your team ("we count a refund request as Billing, not Complaint"). In those cases, one or two examples usually help more than another paragraph of instructions.
The anatomy of a strong zero-shot prompt
With no example to copy, the instruction has to carry everything. Check that your prompt covers:
- Task — a precise verb: summarise, classify, extract, rewrite, compare.
- Input — clearly separated from the instruction, for example between lines or quotes.
- Audience and purpose — who will read the result and what they will do with it.
- Format — bullets, a table, JSON, a single word, a set number of items.
- Limits — length, reading level, what to leave out.
- Fallback — what to do if the input doesn't contain the answer.
Here is that structure as a reusable template:
Task:
Audience:
Format:
Limits:
If the text does not contain enough information, say so instead of guessing.
Text:
"""
"""
For a bigger library of structures like this, see our ChatGPT prompt template cheat sheet.
Zero-shot templates for everyday tasks
Summarising
Summarise the document below for who needs to decide . Give: one sentence on the main point, 3-5 bullets with the key facts, and a final line starting "Open question:" if anything important is unclear. Use only information from the document.
Document:
"""
"""
For long reports, our executive summary prompt adds more structure.
Classifying
Zero-shot classification works best when you define each label in a few words.
Classify each item below into exactly one category:
- :
- :
- :
- Unclear: does not fit any category
Return a table with columns: Item, Category, Reason (max 10 words).
Items:
Extracting data
Extract the following fields from the text below: , , . Return valid JSON with exactly these keys. If a field is not mentioned, use null. Do not add fields or explanations.
Text:
"""
"""
Rewriting
Rewrite the text below for at a reading level. Keep every fact and number, cut it to about words, use short sentences, and keep the tone . Return only the rewritten text.
Text:
"""
"""
Analysing feedback
Read the below about . Group them into 3-6 themes. For each theme give: a short name, how many responses mention it, one representative quote copied word for word, and one suggested action. List themes from most to least mentioned.
Responses:
"""
"""
Our survey results insights prompt is a fuller version of this.
Zero-shot chain of thought
For questions that need reasoning, such as a calculation, a comparison or a plan with constraints, a short extra line can help: ask the model to work through the problem before giving the answer. This is often called zero-shot chain-of-thought prompting, because you get step-by-step reasoning without writing out an example of it.
Work through this step by step: list the facts you are using, do the reasoning, then give the final answer on its own line starting "Answer:". If a needed fact is missing, state your assumption.
Some newer models reason internally before they reply, so the gain from this line varies by model and version. It still has a practical benefit: you can read the steps and spot where an answer went wrong.
Common zero-shot mistakes
- Vague verbs. "Look at this" or "help with this" leaves the model guessing. Say exactly what you want.
- No format. Without one, you get whatever length and layout the model prefers. Name it.
- Mixed instructions and input. If your text contains its own instructions, the model may follow them. Put the input between clear separators.
- Undefined labels. "Classify as high or low priority" means different things to different teams. Define each label.
- No permission to say "I don't know". Models tend to give an answer anyway. Tell them what to do when the information isn't there.
From zero-shot to better prompts
A practical workflow is to start zero-shot, look at the output, and fix the instruction where it fell short. If the same problem keeps coming back, paste one of your best outputs back in as an example, and you have moved to one-shot prompting. You can also ask the model to improve your instruction for you; our prompt improvement prompt for Claude is built for that, and it works in ChatGPT and Gemini too.
For more ready-to-use instructions you can fill in and run, browse the ChatGPT prompts hub.
Frequently asked questions
What is zero-shot prompting?
Zero-shot prompting is asking an AI model to do a task using only an instruction, without showing it any examples of the answer you want.
When should I use zero-shot instead of few-shot prompting?
Use zero-shot for common, well-defined tasks where a clear instruction is enough. Use few-shot when the output has to match a particular tone, format or labelling rule that is easier to show than to describe.
How do I make zero-shot prompts more accurate?
Name the task with a precise verb, describe the audience, fix the output format, set limits such as length, and tell the model what to do when information is missing.