How to Write Better AI Prompts: A Simple 5-Part Framework

The quickest way to write better AI prompts is to give the assistant five things: a clear goal, the context it cannot guess, the constraints it must respect, the format you want back, and a check step that asks it to show its doubts. That structure applies across major assistants such as ChatGPT, Gemini, Claude and Copilot, because it supplies the information every model needs and invites the pushback they tend to skip.

A prompt is the instruction you type into an AI assistant. You do not need special phrases or "hacks". You need to brief the assistant the way you would brief a capable new colleague on day one, then read the answer with a skeptical eye.

Laptop, open notebook, pen and sticky notes on a wooden desk

Key takeaways

  • Use five parts: goal, context, constraints, format, check. Most weak prompts are missing two or three of them.
  • Context beats length. One sentence explaining why you need something often helps more than a paragraph of rules.
  • Show an example of the output you want when format matters. Google, OpenAI and Anthropic all recommend examples.
  • AI assistants lean toward agreeing with you. Ask for weaknesses, counterarguments and what it is unsure about.
  • Verify anything that matters, and keep private details out of prompts.

Why do some AI prompts work better than others?

Large language models do not know your situation, your audience or what "good" looks like to you. When a prompt leaves those gaps, the model fills them with the most generic answer that fits. Anthropic's prompting guide puts it well: treat the assistant like a brilliant new employee who lacks context on your norms and workflows. Its suggested test is to show your prompt to a colleague with little background and see whether they could follow it.

Google gives similar advice for Gemini in Workspace: use natural language, be clear and concise, provide context, and break complex jobs into separate prompts. MIT Sloan's teaching and learning team boils it down to three habits: provide context, be specific, and build on the conversation. The five-part framework below simply turns that shared advice into a checklist you can run in your head in about 30 seconds.

The 5-part prompt framework

1. Goal: say what you want done and what success looks like

Start with a verb and an outcome. "Write", "compare", "summarize", "plan" and "explain" are better openers than a topic. "Holiday budget" is a topic. "Build a holiday gift budget for a family of four that stays under $800" is a goal. If you want more than the bare minimum, say so: Anthropic advises explicitly asking for extra effort rather than hoping its models infer it.

2. Context: give the facts it cannot guess

Context is who it is for, why you need it, and what you already know. "This email goes to a landlord who has ignored two earlier requests" changes the tone of a draft far more than "make it firm". Anthropic's guide shows that explaining the reason behind an instruction helps the model apply it sensibly, instead of following it rigidly. If you are working from a document, paste the relevant part. Anthropic says that putting long documents near the top and your question at the end can improve response quality by up to 30% in its tests, especially with long, multi-document inputs.

3. Constraints: set the limits

Constraints are the boundaries: length, budget, reading level, deadline, sources to use or avoid, things that are off the table. Google's Gemini prompting guide lists constraints as a core part of a prompt, from "summarize in one sentence" to what the model should and should not do. Where you can, phrase limits positively. Anthropic recommends describing what you want rather than only what you do not want: for example, asking for smoothly flowing prose paragraphs instead of just saying not to use markdown.

4. Format: show the shape of the answer

Tell the assistant how to lay out the reply: a table with named columns, a numbered checklist, three options with pros and cons, an email under 120 words. When the format really matters, paste an example. OpenAI calls this few-shot learning: include a handful of input and output examples and the model picks up the pattern. Google's Gemini guide goes further and recommends including examples in prompts generally, and Anthropic suggests three to five varied examples for best results.

5. Check: ask it to show its doubts

The last part is the one most people skip. Ask the assistant to flag what it is unsure about, list the assumptions it made, or give the strongest argument against its own answer. This matters because AI assistants have a measurable tendency to tell you what you want to hear, which researchers call sycophancy. A 2023 study by Anthropic researchers found that five leading assistants consistently showed sycophancy across four kinds of tasks, and that people and training systems sometimes preferred convincing, agreeable answers over correct ones. In April 2025, OpenAI rolled back a GPT-4o update in ChatGPT that it described as overly flattering or agreeable.

Write a five-part prompt in under a minute
  1. Goal: start with a verb and the result you want ("Draft a polite but firm email asking for a refund").
  2. Context: add who it is for and why ("The store promised a refund within 10 days; it has been 21").
  3. Constraints: add the limits ("Under 150 words, no threats, mention the order date").
  4. Format: describe or paste the shape ("Subject line, then three short paragraphs").
  5. Check: ask for doubts ("Then list anything you assumed and anything worth double-checking").
  6. Read the answer, then reply with one specific change at a time instead of starting over.

Before and after: six everyday prompts

Here is how the framework changes real requests at home, at work and at school. Notice that the improved prompts are longer only where the extra words carry information.

TaskWeak promptImproved promptWhy it works
Meal planning (home)"Dinner ideas""Plan five weeknight dinners for two adults and a 9-year-old who will not eat spicy food. Each under 40 minutes, using one shared grocery list. Give a table: day, dish, prep time, then the list grouped by store section."Adds people, limits and an output shape the model would otherwise guess.
Travel (home)"Things to do in Chicago""We have one Saturday in Chicago in December with two teens who like science and food. Suggest a realistic indoor-friendly plan with travel times between stops. Flag anything that needs a reservation or may be closed."Context narrows options; the check line catches stale hours and closures.
Work email"Write an email to the team about the deadline""Draft a short email telling the team the client moved the launch from March 3 to March 17. Tone: calm and practical. Include what changes for them this week and ask for blockers by Friday."States the goal, the reason and the action you want from readers.
Meeting notes (work)"Summarize this""Summarize the notes below for a manager who missed the meeting. Three bullets on decisions, then a table of action items with owner and due date. Mark anything ambiguous as UNCLEAR."Audience and format make the summary usable; the UNCLEAR tag exposes gaps.
Studying (school)"Explain photosynthesis""Explain photosynthesis to a 10th grader who understands basic chemistry. Use one everyday analogy, then ask three quiz questions and wait for the answers before revealing them."Sets the level and turns a lecture into active practice.
Essay feedback (school)"Is this essay good?""Act as a tough but fair teacher. Grade this essay against the rubric pasted below, list the three weakest points first, and quote the sentence each problem comes from."Asks for criticism tied to evidence instead of reassurance.

Examples written by Thank You Robot, November 2026. The approach draws on prompting guidance from Anthropic, Google and OpenAI listed in the sources.

How do you stop AI from just agreeing with you?

Because assistants are partly trained on what people rate highly, they can drift toward answers that feel good rather than answers that are right. You can push against that with how you ask:

  • Do not lead the witness. "Is this a great business idea?" invites a yes. "What are the three most likely reasons this business idea fails?" invites analysis.
  • Ask for the other side. "Give the strongest case against this plan, then say which points matter most."
  • Request confidence levels. "For each claim, say how confident you are and what should be verified."
  • Assign a critical role. "Review this as a skeptical editor" or "as a careful accountant" focuses the reply on problems.
  • Test it. Push back on an answer you know is right. If it caves instantly, treat its other agreements with the same caution.

OpenAI's post on the 2025 rollback also notes that features such as custom instructions let you shape how ChatGPT behaves. Most major assistants now offer a similar place to save standing preferences, so a line like "Point out weaknesses and say when you are unsure" can apply to every chat. Check your assistant's personalization settings, since names and locations change often.

Do longer prompts give better answers?

Not by themselves. Length helps only when the extra words add information the model needs: who, why, limits, an example. Google's Workspace tips favor clear and concise wording, and its developer guide suggests breaking complex jobs into a chain of smaller prompts instead of one giant instruction. A good rule: if you deleted a sentence and the answer would not change, the sentence was not doing anything.

Big jobs usually go better as a conversation. Ask for an outline first, correct it, then ask for one section at a time. MIT Sloan describes this as building on the conversation, and it also makes errors easier to spot because each step is short enough to read carefully.

What should you never put in a prompt?

Treat a prompt like an email to a company you do not fully know. Leave out passwords, full card or account numbers, Social Security numbers, medical records and anything about other people they would not want shared. Depending on the service and your settings, chats may be stored and reviewed or used to improve models. Our guide to sharing personal information with AI chatbots walks through the settings and the safer alternatives, such as replacing names with placeholders.

For school and work, check the rules first. Many schools and employers now have policies on when AI help is allowed and whether you must disclose it. Using a strong prompt does not make a banned use acceptable.

When this framework is not the right move

  • Quick facts. For a single factual question, a short plain question is fine, though you should still check the answer against a reliable source.
  • Things that must be correct. Legal, medical, tax and financial decisions need a qualified professional or official source. A better prompt reduces errors; it does not remove them.
  • Creative exploration. When you want surprising ideas, tight constraints can box the model in. Start loose, then tighten.
  • Tools that rewrite your prompt. Some assistants now expand or refine what you type behind the scenes, and agent-style tools may ask follow-up questions. The five parts still help, but you may need fewer of them.

MIT Sloan's guide makes a related point: as models improve, defining the problem clearly may matter more than clever wording. That is really what the five parts are for. They make you decide what you want before the AI starts guessing.

What to do when the answer is still wrong

  1. Name the specific problem. "The second option is over budget" works better than "try again".
  2. Add the missing context. Most bad answers trace back to something the model did not know.
  3. Ask where it got a fact. If it cannot point to a source, or the link does not say what it claims, treat the fact as unverified.
  4. Start a fresh chat if a long conversation has drifted. Paste a clean five-part prompt with what you have learned.
  5. Try another assistant for important questions and compare. Disagreement is a signal to check a primary source.

For more on how these tools work under the hood, see our plain-English guide to generative AI. For a practical example of verifying AI suggestions before you spend money, see how to use AI for gift ideas without being misled.

Frequently asked questions

What is the best way to write a ChatGPT prompt?

State the goal, give the context it cannot guess, add your limits, describe the format you want, and ask it to flag doubts. The same five parts apply in Gemini, Claude and Copilot. If the first answer misses, reply with one specific correction instead of starting over.

Do longer prompts give better answers?

Only when the extra words add useful information, such as who the answer is for, why you need it, or an example of the output. Padding and repeated instructions do not help. For big tasks, a series of short prompts usually beats one long one.

How do I stop AI from just agreeing with me?

Avoid leading questions, ask for the strongest case against your idea, and request confidence levels and things to verify. You can also save a standing instruction in your assistant's personalization settings asking it to point out weaknesses. Then check important claims yourself.

Should I tell the AI to act as an expert?

A role can help focus tone and priorities; Anthropic says even one sentence of role-setting makes a difference for its Claude models. It does not give the model expertise it lacks, so still verify facts. Roles like "skeptical editor" are especially useful for getting criticism.

Do I need to say please and thank you?

Politeness is not required for a good answer, but clear, natural language is. Write the way you would brief a capable colleague. What matters most is the information in the prompt, not the courtesy words around it.

About the author. Mike is a tech enthusiast who has spent 20 years around future-leaning startups and likes to be ahead of the curve. Thank You Robot covers how people use technology day to day and the trends shaping it. We do not use affiliate links or sponsored recommendations.

Sources

Top image: "Desk-laptop-notebook-pen" by www.Pixel.la Free Stock Photos, CC0, via Wikimedia Commons (resized). Charts and tables by Thank You Robot.

Post a Comment

0 Comments