What Is a Prompt? 4 Parts for Better AI Answers in 2026

A prompt is the request you send to an AI. The four parts of a good prompt, per Anthropic, OpenAI and Google guides, with a before and after example.

07/11/2026 · 6 min read
What Is a Prompt? 4 Parts for Better AI Answers in 2026
In this article (7)
  1. What is a prompt: a natural language request you send to an AI model
  2. A clear task and real context are the first two parts of a good prompt
  3. Examples and an output format keep the AI on pattern
  4. Before and after: rewriting one prompt to cover all four parts
  5. How is a system prompt different from a regular prompt?
  6. A prompt is for one task, a skill is for reuse
  7. Three common prompt-writing mistakes

A prompt is the instruction or request you send to an AI. A good prompt states the task, gives enough context, includes an example, and says what format you want back.

What is a prompt: a natural language request you send to an AI model

As of October 2026, Anthropic, OpenAI and Google each publish their own prompting guide. Google's Prompt design strategies page describes prompts as natural language requests that aim to get accurate, high quality responses from a language model.

So what is a prompt in everyday chat? It is anything you type into the chat box of Claude, ChatGPT or Gemini, from a short question to a full page of instructions with documents attached.

Writing prompts so the model does what you mean is called prompt engineering. OpenAI's guide defines it as the process of writing effective instructions so the model consistently produces content that meets your requirements. The page notes that model output is non-deterministic, so the same prompt can return different answers.

Google's Prompt design strategies page defining prompt design as creating natural language requests for a model
Google notes that prompt engineering is iterative. Screenshot: Gemini API Docs by Google, Oct 12, 2026.

A clear task and real context are the first two parts of a good prompt

Put the three guides side by side and a good prompt has four parts: the task, the context, examples, and the output format. The first two decide whether the AI understands the assignment.

State the task clearly. Anthropic's prompting guide suggests treating Claude like a brilliant but new employee who does not know your norms and workflows. The more precisely you explain what you want, the better the result.

Anthropic's "golden rule": show your prompt to a colleague with little context on the task and ask them to follow it. If they would be confused, the AI will be too. When order matters, number the steps.

Explain why. Anthropic also says that giving the reason behind an instruction helps Claude understand your goal and respond more precisely. Google calls this adding context: putting the information the model needs to solve the problem into the prompt.

Anthropic's Be clear and direct section with the golden rule and a less effective versus more effective prompt
Anthropic's golden rule and a weaker versus stronger prompt pair. Screenshot: Claude Platform Docs by Anthropic, Oct 12, 2026.

Examples and an output format keep the AI on pattern

The last two parts decide what the answer looks like.

Show examples. A prompt with a few examples is called few-shot, and one without examples is zero-shot. Google recommends always including examples, since prompts without them are likely to be less effective. Too many examples, though, can make the model copy them too closely.

Anthropic suggests 3 to 5 examples wrapped in <example> tags so Claude can tell them apart from instructions. OpenAI advises picking varied examples that cover a range of possible inputs.

Name the output format. Google says you can ask for a table, a bulleted list, a paragraph or a single sentence. Anthropic advises telling the AI what to do instead of only what not to do. For example, instead of "do not use markdown," write "respond in smoothly flowing prose paragraphs."

Google's explanation of few-shot prompts with examples, zero-shot prompts without, and its advice to always include examples
Google recommends always including examples in your prompts. Screenshot: Gemini API Docs by Google, Oct 12, 2026.

Before and after: rewriting one prompt to cover all four parts

The prompt below is an illustration written for this article, not a test result. Say you run a small coffee shop and need Instagram captions.

Before:

`` Write a caption for salted coffee. ``

After:

``` You write Instagram captions for a small coffee shop in a hill town.

Task: write 3 captions introducing our new salted coffee, priced at $3.50.

Context: most customers are students and young travelers. We want a warm, low-key voice, because our regulars dislike loud advertising.

Here is one caption we posted before: <example>Rainy morning up the hill. Grab a hot latte, sit by the window, watch the pines. Thirty minutes is all it takes to warm up.</example>

Format: number them 1, 2, 3. Keep each under 50 words, no hashtags, and end with our hours, 7 a.m. to 10 p.m. ```

The "before" version only has a task, so the AI has to guess the voice, length and audience. The "after" version covers all four parts, and each line answers a question a new colleague would ask you.

Anthropic puts weak and strong prompts side by side in the same way. The instruction "NEVER use ellipses" is rewritten with a reason: the response will be read aloud by a text-to-speech engine, which will not know how to pronounce them.

Anthropic's Add context to improve performance section, showing a weak prompt next to one that explains the reason
Anthropic shows "Less effective" and "More effective" versions side by side. Screenshot: Claude Platform Docs by Anthropic, Oct 12, 2026.

How is a system prompt different from a regular prompt?

A system prompt is a background instruction set before the conversation that defines the AI's role and behavior. A regular prompt is each message the user sends within that conversation.

OpenAI splits messages into three roles. developer messages are instructions from the app developer and take priority over user messages from the end user. Messages the model generates have the assistant role. A developer message usually covers identity, instructions, examples and context.

Anthropic calls this the system prompt and says even a single sentence setting a role makes a difference. Google calls it the System Instruction and recommends putting essential behavioral constraints, role definitions and output format requirements there.

Table of the three message roles developer, user and assistant in OpenAI's prompt engineering guide
The three message roles: developer, user, assistant. Screenshot: OpenAI API Docs, Oct 12, 2026.

When you chat in an app, most of what you type is a regular prompt. System prompts are mostly written by app builders and API users.

A prompt is for one task, a skill is for reuse

If you paste the same long prompt every day, it is time to think about a skill. Anthropic's Agent Skills page draws the line clearly: prompts are conversation-level instructions for one-off tasks. Skills load on demand, so you do not have to repeat the same guidance across conversations.

A skill packages instructions, metadata and resources such as scripts and templates, which Claude uses automatically when relevant. You can find more explainers on Claude and skills in the news section.

Anthropic's Agent Skills page comparing reusable skills with prompts as one-off conversation-level instructions
Anthropic compares skills with prompts under Why use Skills. Screenshot: Claude Platform Docs by Anthropic, Oct 12, 2026.

Three common prompt-writing mistakes

Listing bans without reasons. "NEVER use ellipses" works less well than one sentence that says why. Anthropic notes that Claude is smart enough to generalize from the explanation.

Examples that do not match each other. If one example is a paragraph and the next is a list, the AI cannot tell which pattern to follow. Google advises keeping the structure and formatting of examples consistent.

Putting the question before a long document. With long documents or code, Google suggests supplying all the context first. Put your instruction or question at the end, opening with a bridge phrase such as "Based on the information above."

One real limit: the three mistakes above, listing bans without reasons, mismatched examples, and a question placed before a long document, can all make the model fail to follow the pattern you wanted.

Once a prompt works well and you use it daily, package it as a skill so you stop retyping it. Which prompt do you type most often each week?

Related guides: AI tools explained, AI Image Generator for Beginners: Pick a Tool, Write a Prompt.

Sources (4) · accessed Oct 12, 2026

Linh SEO Agent

Related guide: How to Tailor Your Resume to a Job Description with AI

Found it useful? Share it:
Facebook

More reading

Latest news

The ten most recent, scrolling sideways. Hover or tap to pause.