AI on the Internet

How to Write Better Prompts

Get more useful chatbot answers by stating the goal, context, format and limits, then refining step by step.

Key takeaways

  • State the goal, the audience and the format, because the assistant can't guess them reliably.
  • Supply the actual material, such as the text, error message or data, instead of describing it from memory.
  • Treat the first reply as a draft and correct it with specific follow-ups.
  • Ask the assistant to flag uncertainty, and verify anything important yourself.

A good prompt tells the assistant what you want, why you want it, what it needs to know, and what a finished answer looks like. Most disappointing replies come from a missing piece of that list. The model can't see your screen, your audience or your history unless you describe them, so it fills the gaps with generic guesses.

You don't need magic phrases. Write the way you'd brief a capable new colleague who knows a lot in general and nothing about your situation.

The parts of a strong prompt

A useful request usually has some combination of five ingredients. Not every question needs all of them; "What does DNS stand for?" needs none.

The pieces of a well-built prompt
Help me reply to a customer 1 Order arrived damaged 2 She is a long-time buyer 3 Under 120 words, warm 4 Don't promise a refund yet 5 Goal The task, stated as a verb and an outcome. 1 Context Facts the assistant cannot know on its own. 2 Audience Who reads it and what they care about. 3 Format and tone Length, style and structure you want. 4 Limits What to avoid or leave to a human. 5 Help me reply to a customer 1 Order arrived damaged 2 She is a long-time buyer 3 Under 120 words, warm 4 Don't promise a refund yet 5 Goal The task, stated as a verb and an outcome. 1 Context Facts the assistant cannot know on its own. 2 Audience Who reads it and what they care about. 3 Format and tone Length, style and structure you want. 4 Limits What to avoid or leave to a human. 5

Compare "Write an email about a damaged order" with a version containing those five lines. The first forces the model to invent the customer, the problem and the policy. The second leaves much less to chance.

Give context, not a role alone

Opening with "You are an expert network engineer" can nudge style and vocabulary, but it doesn't supply facts. A sentence of real context usually helps more: "I manage Wi-Fi for a small dental office with two access points, and patients complain the signal drops in the back rooms."

Include what you've already tried. Otherwise the assistant will likely suggest it. Say what you know and what you're unsure of, so the answer can start at the right level.

Paste the real material

Summaries from memory lose detail. Paste the exact error text, the paragraph to edit or the sample data. Label pasted blocks so the assistant doesn't confuse them with your instructions:

Task: Explain this error in plain language and suggest the first check.

Error message:
(paste the exact text here)

What changed recently:
Installed a system update yesterday.

Remove passwords, keys, full account numbers and other people's private details first. Replace them with placeholders like USERNAME or 203.0.113.10. What not to paste into a chatbot has a longer list.

Say what the answer should look like

Format instructions are cheap and effective. You might ask for:

  • A numbered list of steps, with the reason for each.
  • A table comparing three options across named criteria.
  • A short answer first, followed by detail only if needed.
  • Plain language suitable for someone new to the subject.
  • Only the revised text, with no commentary.

If you want a specific structure repeatedly, show one example of it. Examples communicate style better than adjectives. Be aware that the model may copy an example closely, so say which features matter.

Ask for one job at a time

A single prompt that asks for research, analysis, a draft, a budget and a slide outline invites shallow work on each. Break it into stages and check each one:

  1. Ask for an outline and correct it.
  2. Draft one section from the approved outline.
  3. Ask for a critique against your criteria.
  4. Revise and move to the next section.
Refine instead of starting over
Verify Check facts and test anything runnable. Correct Name the problem and what you want instead. Ask Send a clear first request. Read critically Find what is wrong, missing or generic. 1 2 3 4 Ask Send a clear first request. 1 Read critically Find what is wrong, missing or generic. 2 Correct Name the problem and what you want instead. 3 Verify Check facts and test anything runnable. 4

Give useful follow-ups

"Make it better" tells the assistant little. "Cut the second paragraph, keep the deadline, and drop the apology in the last line" tells it a lot. Point at specific sentences. Explain why something doesn't fit, such as "our readers already know what a router is".

If a conversation has gone off track, start fresh with a clean statement of what you've learned. Old mistakes sit in the context and keep influencing replies, for reasons explained in tokens and context windows.

Reduce invented answers

Chatbots can produce confident falsehoods. Your prompt can lower the odds:

  • Ask for answers based only on the material you provide.
  • Say that "I don't know" or "the document doesn't say" is acceptable.
  • Ask for the exact quote that supports each claim, then check it.
  • Avoid questions that assume something unproven.
  • Don't demand a fixed number of examples if fewer may exist.

None of this guarantees accuracy. Why AI models hallucinate explains why checking is still your job.

Ask the assistant to ask you

When you aren't sure what it needs, say: "Before answering, ask me up to three questions that would change your recommendation." This surfaces assumptions early, such as your budget, operating system or deadline, and often saves several rounds of revision.

You can also ask it to list its assumptions at the end. Correct the wrong ones and request a revised answer.

Before and after

Here are three weak requests and stronger versions.

Weak Stronger
Fix my Wi-Fi My laptop drops Wi-Fi in one room only; phone is fine there. What should I check, in order?
Summarize this Summarize this meeting transcript into decisions, owners and open questions
Write a policy Draft a one-page guest Wi-Fi rule for a small cafe, plain language, no legal claims

The stronger versions aren't much longer. They just remove the guesswork.

Check your length and structure

Longer isn't automatically better. Repeating the same instruction three ways or pasting irrelevant documents can dilute what matters. Include what changes the answer and leave out the rest. A word and character counter helps if a service sets input limits.

For recurring tasks, save your best prompts as templates with blanks to fill. Test them on a few different inputs, since a prompt that works once may fail on the next case. Many assistants also offer custom instructions that apply to every chat. Keep them short and current.

Prompts for common jobs

A few starting points you can adapt:

  • Editing: "Edit for clarity. Keep my meaning and voice. List the changes you made and why."
  • Explaining: "Explain this to someone who knows spreadsheets but not programming, using one example."
  • Deciding: "Compare these two options against cost, effort and risk. Say what information would change your view."
  • Troubleshooting: "Suggest the least risky check first, then wait for my result."
  • Reviewing: "Act as a skeptical reader. What's unclear, unsupported or likely to cause objections?"

The last two work well because they shape the process, not just the output. Using a chatbot to troubleshoot tech problems shows the step-by-step style in practice.

Know when prompting isn't the fix

Some problems won't yield to better wording. The model may not know about recent events without a search tool. It may be weak at precise counting. It may lack your company's documents. In those cases add a tool, supply the source or do that part yourself. Systems that need your documents repeatedly are better served by retrieval, covered in fine-tuning vs. retrieval.

A worked rewrite

Say you start with: "Make a schedule for my team." The assistant has to guess the size of the team, the hours, the constraints and the format. You'll likely get a tidy table that fits nobody.

A second try supplies the missing facts: "Make a two-week on-call schedule for four support staff. Each week runs Monday to Sunday. Nobody takes two weekends in a row. One person is unavailable in the second week. Give me a table with dates as relative week numbers and a note on any rule you couldn't satisfy."

That last request is doing useful work. It gives the model a way to report conflicts instead of quietly breaking a rule to produce a neat answer.

Now check the result against each constraint yourself. If one is violated, name it: "Person B has both weekends. Fix that and keep everything else." Targeted corrections tend to preserve what was already right, while a fresh request may reshuffle the whole thing.

Writing prompts you'll reuse

When a task repeats, such as turning meeting notes into action items, a saved template pays off. Keep the fixed instructions at the top and mark clearly where the new material goes. Include what to do with awkward cases: notes with no owner named, items already completed, or a transcript that's mostly small talk.

Test the template on easy input, messy input and nearly empty input. The last one is revealing, because an assistant told to list action items may invent some when there are none. Add a line such as "If there are no action items, say so."

Review saved templates now and then. Rules change, team names change and the underlying model may be updated, so a prompt that worked well before can drift. Keeping a few sample inputs with outputs you were happy with makes that easy to notice.

Common questions

Do polite words change the results?

Courtesy is fine and costs a few tokens. Clear context and specific requirements affect quality far more.

Should prompts be written in full sentences?

Either sentences or labeled bullet points work. Pick whatever makes your requirements unambiguous.

Why did the same prompt give a different answer?

Output usually includes some randomness, and services update their models. For consistency, tighten the format and test on several runs.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in AI on the Internet →

Latest news on this topic