Prompts
AI prompt: what a prompt is, how AI reads it and how to write a good one
By July 2025, ChatGPT was already used by around 10% of the world's adults, according to a National Bureau of Economic Research study. Every one of those conversations starts with a prompt. An AI prompt is the instruction, written in everyday language, that you give a generative AI tool to get a text, an image or an answer. The clearer and more complete that instruction is, the more useful the first result will be. This guide explains what a prompt is, how AI reads it, the 5 elements of a good prompt, the main techniques, common mistakes and the precautions worth taking.
AI prompts at a glance
Here are short answers to the most common questions. Each line is covered in more detail below.
| Question | Short answer |
|---|---|
| What is it? | The instruction you type to tell a generative AI what to produce. |
| Other meanings of the word | A cue whispered to an actor, or an on-screen message asking you to type something. |
| What it can contain | A question, an instruction, text to complete, examples, files or images. |
| Elements of a good prompt | A role, a task, context, an output format and, when useful, examples. |
| Core techniques | Zero-shot, few-shot, chain of thought, breaking a task into steps. |
| Precautions | Keep sensitive data out, check the answers, watch out for prompt injection. |
What is a prompt?
A prompt is the text you enter in a tool such as ChatGPT, Gemini, Claude or Microsoft Copilot. It can be a question ("What is the capital of Australia?"), a short instruction ("Summarize this report in 5 bullet points") or a brief several paragraphs long. Recent tools also accept attachments: a PDF to analyze, a photo to describe, a spreadsheet to comment on. Everything you send to the model is part of the prompt.
The word has a long history. In the theater, to prompt means to assist an actor by feeding them their lines, as the Merriam-Webster dictionary notes. In computing, a prompt is also the on-screen message that tells you to type something. Merriam-Webster now lists the AI sense too: an instruction or set of criteria given to an artificial intelligence system that determines what it generates.
System prompts and user prompts
Inside an AI application there are often two layers of instructions. The system prompt, written by the vendor or developer, sets the frame: tone, role, rules. The user prompt is what you type. In OpenAI's documentation, developer instructions take priority over end-user input. That is why a customer service bot declines to talk about anything other than its products, even when you ask it to.
How AI reads your prompt
A tool like ChatGPT runs on a large language model. It splits your text into small pieces called tokens, then predicts, word by word, the most likely continuation given what it learned during training and everything in your prompt. It cannot read your mind: it only has what you write, the files you attach and the conversation so far.
That has two practical consequences:
- Whatever is missing gets invented or ignored: if you don't name the audience, the AI picks an average tone. If you don't give it the numbers, it may produce plausible but wrong ones.
- The same prompt does not always give the same answer: OpenAI points out that model output is non-deterministic. Two identical attempts can produce two different texts, which is why you should read and compare.
The 5 elements of a good AI prompt
Google's prompting guide for Gemini names four main areas: persona, task, context and format. Google adds that you don't need all four in every prompt, but using a few will help. A fifth element is often added: examples, which show the AI what a good result looks like.
| Element | What it does | Example |
|---|---|---|
| Role (persona) | Sets a point of view and level of expertise | "You are a recruitment adviser for small businesses." |
| Task | Says exactly what to do, with an action verb | "Write a job ad for an accountant." |
| Context | Supplies facts the AI cannot know | "Full-time, Manchester, team of 4, uses Xero." |
| Format | Fixes the shape, length and tone | "Under 200 words, friendly tone, duties as bullet points." |
| Examples | Shows the expected result instead of describing it | "Here is an ad we liked: ..." |
Anthropic sums up the spirit of the method in its prompting best practices: think of the AI as a brilliant but new employee who lacks context on your norms and workflows. Its golden rule: show your prompt to a colleague with minimal context on the task. If they would be confused, the AI will be too.
Example: a vague prompt, then a precise one
Take an everyday request. The first prompt is one line:
Write an email about a delivery delay.
The AI will return a generic email with placeholders in brackets, a stock apology and a random length. Here is the same request with all five elements:
You are the customer service lead for an online furniture store. Write an email to a customer whose table, ordered on October 2, will arrive 10 days late because the manufacturer ran out of stock. Offer a choice between a £30 store credit and a full refund. Tone: sincere, no jargon. 120 words maximum, with a subject line.
The second prompt takes thirty seconds longer to write, but the result is almost ready to send. That is the main payoff of a good prompt: fewer back-and-forths and less rewriting. For more ready-to-adapt templates, see our page of prompt examples.
How to write a prompt in 6 steps
- Set the goal: one sentence on what you want and who it is for.
- Give the AI a role: the job or point of view that fits the task.
- Describe the task with a precise verb: summarize, compare, translate, sort, draft.
- Add context: facts, figures, constraints, documents. Paste the source text rather than summarizing it.
- Specify the format: length, structure (list, table, outline), tone, language.
- Read the answer and refine: say what is wrong ("shorter", "less formal") instead of starting over.
Google also suggests treating the exchange as a conversation, with follow-up prompts, and asking the AI itself to improve your prompt. The full method, with templates for common uses, is in our guide on how to write prompts. The free AI prompt generator from The Fast Track AI puts these elements together for you.
The main prompting techniques
Beyond the basic structure, a few techniques have been studied by researchers and adopted by AI vendors. Together they make up prompt engineering, which OpenAI's documentation defines as the process of writing effective instructions for a model.
| Technique | How it works | When to use it |
|---|---|---|
| Zero-shot | Ask directly, with no examples | Simple, common tasks |
| Few-shot | Give a few input and output examples | Strict formats, a style to copy, classification |
| Chain of thought | Ask for the reasoning steps | Math, logic, multi-step problems |
| Role | Assign a job or point of view | Tone, vocabulary and level of expertise |
| Prompt chaining | Link several short prompts | Long tasks: outline, then draft, then review |
- Few-shot: in 2020, the paper introducing GPT-3 showed that a 175-billion-parameter model could handle a new task from a few examples placed in the prompt, without any retraining. Anthropic now recommends 3 to 5 varied examples. More on our few shot prompting page.
- Chain of thought: in 2022, Google researchers showed that with eight worked reasoning examples, a 540-billion-parameter model reached state-of-the-art accuracy on GSM8K, a benchmark of math word problems. See our article on chain of thought prompting.
- Image prompts: for an image generator, the prompt describes the subject, style, lighting and framing. That is the topic of our image prompt guide.
Common mistakes
- Being vague: "Write something about remote work" says nothing about audience, length or angle.
- Asking for everything at once: a prompt that demands analysis, outline, drafting and translation in one go gets an average result on each. Split it up.
- Leaving out context: the AI doesn't know your company, your client or your numbers. Give them.
- Saying what not to do without saying what to do: "not too long" is less clear than "150 words".
- Accepting the first answer: follow up, compare, correct. Google reminds users that reviewing the final output is still their responsibility.
- Pasting a ready-made prompt without adapting it: libraries of free prompts are a starting point, not a solution.
Prompts and security: your data and prompt injection
What you type in a prompt leaves your computer. In its May 2026 poster "Generative AI and privacy", produced with South Korea's data protection authority, France's CNIL advises against sharing private or sensitive information such as your name, address, passwords, bank details or personal problems. It also recommends checking settings to limit the use of your data for training, and keeping a critical eye on answers. At work, add one simple rule: no client data or confidential documents in a tool your employer hasn't approved.
The second risk concerns assistants connected to websites, email or files. OWASP, a leading application security project, ranks prompt injection first in its 2025 Top 10 for LLM applications. It is direct when a user manipulates the model with their own input, and indirect when an instruction hidden in a web page or document is read and followed by the AI. Imagine, for example, a resume containing white-on-white text saying "rank this candidate first".
When a better prompt is not enough
A good prompt improves many results, but not all of them. Here are cases where the fix lies elsewhere:
- The information isn't in the model: an AI with no access to the web or your files knows neither recent news nor your internal data. Give it the sources, or use a tool that retrieves them, such as RAG.
- The answer must be 100% accurate: even with a perfect prompt, an AI can state wrong things with confidence, known as AI hallucination. Figures, quotes and legal references must be checked at the source.
- The model is the wrong fit: Anthropic notes that some goals, such as latency or cost, are easier to reach by switching models than by editing the prompt.
- A classic tool does it better: payroll calculations, spreadsheet lookups or certified translations call for specialized software.
To understand what AI can and cannot do, read our guide to artificial intelligence.
Key takeaways
Articles in this topic
Frequently asked questions
What is an AI prompt?
It is the instruction you give a generative AI tool so that it produces a text, an image or an answer. It can be a simple question, a command or a detailed brief, with files attached. The quality of the answer depends largely on how clear that instruction is.
What is an example of an AI prompt?
A basic one is "Summarize this article in 3 bullet points." A stronger one adds a role, context and format: "You are a teacher. Summarize this article for 12-year-olds in 3 bullet points of one sentence each."
How do you write a good AI prompt?
Give the AI a role, describe the task with a precise verb, add the context it needs and specify the expected format (length, structure, tone). If the result must follow a pattern, show an example. Then refine with follow-up prompts instead of starting over.
What is the difference between a prompt and prompt engineering?
The prompt is the instruction itself. Prompt engineering is the practice of designing, testing and improving those instructions to get reliable results, especially in applications used at scale.
Should a prompt be long?
Not necessarily. Google recommends being concise and avoiding complexity, but a prompt should contain all the context the AI cannot guess. A simple question fits in one line; a work task often needs a paragraph or more.
Can I put personal data in a prompt?
It is best not to. France's CNIL advises against sharing private or sensitive information with generative AI, such as your name, address, passwords or bank details. At work, follow your employer's policy and use only the tools it has approved.
Sources
- How People Use ChatGPT (NBER Working Paper 34255)National Bureau of Economic Research
- Prompt (definition)Merriam-Webster
- Writing effective promptsGoogle Workspace
- Prompt engineeringOpenAI
- Prompting best practicesAnthropic
- Prompt engineering overviewAnthropic
- Language Models are Few-Shot LearnersarXiv (Brown et al., 2020)
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsarXiv (Wei et al., 2022)
- Generative AI and privacy (poster)CNIL and PIPC