What it is used for
You use a prompt every time you interact with an AI. An online seller writes a prompt to create a product description. A teacher writes one to explain a lesson in simple language. An office administrator writes one to summarize meeting notes.
Only the content of the instruction changes. The same AI service can write a poem, check a shopping calculation, or build a study schedule, depending on the prompt you give it. That is why the prompt is your main steering wheel when using AI.
How to use it
A good prompt usually contains four things. First, a clear task, such as "summarize this text". Second, the material to work on, such as the text itself. Third, the shape of the result, such as "in five points, in simple language". Fourth, context, such as "for parents of students to read".
A weak example: "write a letter". A strong example: "Write an announcement letter telling parents that the school meeting is on Saturday at 9 a.m. in the hall. Polite and formal tone, at most 150 words." If the first answer is not right, do not give up. Ask for revisions with follow-up prompts, such as "shorten it" or "make it friendlier", until the result fits.
There is now a third official guide you can compare, the prompt writing guide from Anthropic, the maker of Claude. Their picture is simple: think of the AI as a brilliant but new employee who does not yet know your norms and workflows. The more precisely you explain what you want, the better the result. Their quick test runs like this: show your prompt to a colleague with minimal context on the task and ask them to follow it; if they would be confused, the AI will be too. The same guide shows that a prohibition works better with its reason attached: a prompt that only says never use ellipses is less effective than one that adds that the response will be read aloud by a text to speech engine, which would not know how to pronounce them.
Real examples
The examples below are not invented for this article. All of them are recorded in Anthropic's official guide as documented example prompts from its maker.
The first example shows the difference between a short prompt and a complete prompt for the same task, building an analytics dashboard, a board that summarizes data. The less effective prompt reads only: "Create an analytics dashboard." The more effective prompt adds detail: "Create an analytics dashboard. Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation." That added detail is what turns a generic answer into one you can use.
The second example is a role assignment, and Anthropic writes it for software builders with this exact wording: "You are a helpful coding assistant specializing in Python." A single role sentence like that is enough to focus the behavior and tone of the answers on their field.
The third example comes from a prompt for a physician's assistant working with long documents. The prompt asks the AI to first find quotes from the patient symptom notes and appointment history that are relevant to the reported symptoms, place those quotes in special tags, and only then list the information that would help the doctor determine the patient's possible illnesses, also in special tags. The lesson applies generally: with long material, ask the AI to show the source quotes first before it concludes, so you can check the basis of its conclusion.
Practitioner level
OpenAI's official documentation recommends several habits: write specific instructions, provide an example of the answer you want when the format matters, and separate the instruction from the material with clear markers so the model does not confuse the two. Google likewise emphasizes clear and specific instructions, along with providing examples, as the foundation of prompt strategy for Gemini.
Other useful techniques include assigning a role, such as "act as an elementary school teacher explaining to a fifth grader", and splitting a large task into a sequence of prompts. Save prompts that work as templates. For tasks that repeat every week, the same template gives far more consistent results than typing from scratch.
Anthropic's guide adds several habits that the other two guides in this article have not mentioned. For example answers, the suggestion is a few well-crafted examples, and those examples are best wrapped in angle bracket markers (called XML tags in the documentation, for example <example>) so the model can tell which part is an example and which part is the instruction. The reason behind an instruction is also worth writing, not just the instruction itself, because the model can generalize from the reason to similar situations. Another habit is asking the model to check its own answer before it finishes, for example with a closing line: "Before you finish, verify your answer against these criteria." For work split into separate calls, the documented pattern is a self-correction chain: produce a draft, ask the model to review it against criteria, then ask it to refine the draft based on that review.
Expert level
Technically, a prompt is the input text that becomes the context a language model uses to generate its output. The model does not understand instructions the way a person does; it estimates the most fitting continuation of the text based on patterns from its training data, guided by everything in the prompt. That is why the order, examples, and details inside a prompt genuinely change the result.
The field that studies how to construct prompts systematically is called prompt engineering. At an advanced level it includes layered examples, asking the model to write out its reasoning steps, and designing prompts as part of a larger system, for example an AI agent that calls other tools. The basic principle stays the same from beginner to expert: the clearer the input, the more controlled the output.
Anthropic's guide details two things at the advanced level. First, when the model's built in thinking capability is not in use, reasoning steps can still be requested manually: ask the model to work through the problem before it answers, and ask it to place the final answer in <answer> tags so a program can extract it easily; worked examples inside the prompt also shape how the model approaches similar problems within its own reasoning steps. Second, for long inputs above 20 thousand tokens, the guide recommends placing documents at the top of the prompt, above the query, instructions, and examples, wrapping each document in <document> tags together with its source information, and grounding the answer in quotes from those documents first before the task is carried out.
Limits and risks
A good prompt does not make an AI always right. The model can still invent facts, so important answers still need checking. A prompt also cannot force an AI to do something its policies forbid, and attempts to get around those rules are called jailbreaks, which violate the terms of service.
Be careful with material you paste into a prompt as well. Text from outside sources can contain hidden instructions that try to steer the AI, and personal data or company secrets should never be pasted in. Always review what you are sending, just as you would check an attachment before forwarding a message.

