Start practice

How to write AI prompts

Prompt basics ·

A good prompt is not a magic phrase. It is a short brief: what you want, the facts the AI cannot know, and what the result should look like. Four parts cover almost every everyday prompt, and once you use them the first answer needs far less fixing.

The prompt pattern

Prompt
[Task] Write / summarize / list / explain ...
[Context] Who it is for, the facts only you know, what happened so far.
[Format] Length, structure, what to include or leave out.
[Tone] How it should sound, or a short sample of your own writing.
  • Task: one clear verb and the thing you want. "Write a reply", "Summarize in five bullets", "Suggest a formula".
  • Context: the facts the AI needs and cannot guess: names, numbers, dates, the audience, what was said before.
  • Format: the shape of the answer: a length, a list or a table, a subject line, three options.
  • Tone: formal or friendly, short or detailed. A sample of your past writing works better than any adjective.

Not every prompt needs all four. A quick question can be one line. But when an answer is vague, a missing part is almost always the reason.

Examples

An email to a client

Weak prompt:

Prompt
Write an email to a client about the delay.

Strong prompt:

Prompt
Write an email to Dana at Brightline telling her the website launch moves from May 3 to May 10 because the payment provider needs one more test. Offer a short call on Thursday or Friday. Under 120 words, a clear subject line, friendly and direct, no long apology.

The second prompt has the task, the facts (who, old date, new date, reason, offer), the format (length, subject line) and the tone. The reply will need one read instead of a rewrite.

A spreadsheet formula

Prompt
In Excel, column B has the region and column D has the order amount, rows 2 to 200. Give me one formula for cell G2 that adds up the amounts for the region "West". Explain it in one line.

The facts here are the columns and rows. Without them the AI guesses, and the formula looks right but points at the wrong cells. See AI Excel formula generator for more.

A plan for a weekend

Prompt
Plan a Saturday in San Diego for two adults and a 7 year old. We like the beach and animals, we do not want more than 30 minutes of driving between stops, and the budget is about $150 without food. Give a timeline from 9 am to 6 pm.

Variants

  • Give an example. "Here is a post we liked: ..." shows the voice better than "make it engaging".
  • Ask for options. "Give three subject lines" lets you choose instead of rewriting.
  • Set limits. "Do not add facts that are not in my notes" keeps the AI honest.
  • Ask it to ask you. "Before you write, ask me up to three questions" works when you are not sure what matters.
  • Save the context. If you repeat the same background every time, put it into custom instructions once.

Common mistakes

The answer is generic

The prompt has a task but no context. Add the facts only you know: who, what, when, how much.

The answer is far too long

No format was set. Add a length ("under 100 words", "five bullets") and a structure.

The tone is wrong

Adjectives like "professional" mean different things to different people. Paste two sentences you wrote yourself and ask the AI to match them.

The AI invented details

It filled a gap. Give it the missing facts, and add "use only the facts above; if something is missing, ask me".

Starting over instead of following up

If the answer is 80% right, say what to change: "shorter, keep the dates, friendlier opening". The guide how to improve AI answers shows the best follow ups.

Practice

The level "Parts of a prompt" has you sort sentences into task, context and format, and spot which part a weak prompt is missing. When you are ready, the guided level "Build the prompt" lets you assemble whole prompts and watch the reply change. Ready made starting points are in AI prompt examples for work, and the full set of AI prompt exercises covers every part of a prompt.

Practice: Parts of a prompt

Free, in your browser, no sign up. Opens level “Parts of a prompt”.

FAQ

What makes a good AI prompt?

A clear task, the facts the AI cannot know, a format for the answer and, when it matters, the tone. Most weak answers come from a missing fact or a missing format.

How long should a prompt be?

As long as the facts require. Two or three sentences are enough for most everyday jobs. Long prompts are fine when they carry real information, not filler.

Do I need to say please or use special words?

No special words are needed. Plain, specific language works best. Politeness does not hurt, but facts and format matter much more.

What is the best prompt structure?

Task, context, format and tone is a simple structure that works in any AI tool. Some people add a role ("you are an experienced editor"), which can help with tone but does not replace the facts.

For learning only. Nothing here is legal, financial or tax advice. Sample AI replies in the practice are written in advance, and all names and numbers are made up.