How to Write Better AI Prompts: 8 Techniques That Actually Work

The difference between a useless AI answer and a great one is usually the prompt. Learn 8 practical techniques, with before-and-after examples, to get better results from any AI chatbot.

Information current as of November 2026 · How we research · Report an error

Hands typing on a white computer keyboard
Photo by Ilya Pavlov on Unsplash

Ask an AI chatbot “write an email” and you’ll get something generic. Ask it well, and you’ll get something you can actually send. The instruction you give an AI is called a prompt, and learning to write good prompts is less about tricks and more about communicating clearly, the same way you’d brief a capable new colleague who knows nothing about your situation.

Here are eight techniques that make the biggest difference.

1. Give context

The AI doesn’t know who you are, who the result is for, or why you need it. Tell it.

Before:

Write an email asking for a refund.

After:

I bought noise-cancelling headphones online three weeks ago. The left earbud stopped working. The store’s policy allows refunds within 30 days for faulty items. Write a short, polite email to their customer service asking for a full refund.

The second prompt produces something specific and usable on the first try.

2. Be specific about the result you want

Say what format, length and tone you need.

  • “In 3 bullet points”
  • “Under 150 words”
  • “As a table with columns for price, pros and cons”
  • “In a friendly, informal tone” or “In formal business English”

Vague requests produce average results; precise ones produce what you had in mind.

3. Say who the audience is

The same explanation should be different for a child, a beginner and an expert.

Explain how vaccines train the immune system to a curious 10-year-old.

Explain how mRNA vaccines work to a reader with a high-school biology background, in about 300 words.

4. Provide examples

If you want a particular style, show it. This is often called few-shot prompting.

Write 5 product descriptions in the same style as this example: “Morning Brew Mug — Holds 350 ml of courage. Dishwasher-safe, microwave-safe, Monday-proof.”

Examples communicate tone and format better than any description.

5. Break big tasks into steps

Instead of asking for everything at once, work in stages:

  1. “Suggest 10 possible titles for a blog post about saving money on groceries.”
  2. “I like number 4. Create an outline with 5 sections.”
  3. “Write section 2 in about 200 words.”

You stay in control, and you can correct direction early instead of rewriting everything at the end.

6. Ask it to think step by step

For math, logic, planning or decisions, ask the AI to reason before answering:

Before giving a final answer, work through the problem step by step.

Compare these two phone plans for someone who uses 15 GB of data a month. Show your calculation, then recommend one.

This tends to improve accuracy and makes errors easier to spot.

7. Give it the source material

When your question is about a specific document, paste the text or upload the file, and ask it to rely on that:

Using only the contract text below, list every deadline and penalty. Quote the relevant sentence for each.

This greatly reduces invented details, which are a known weakness of AI chatbots. Don’t paste confidential or personal information unless you’re comfortable with how the service handles it.

8. Iterate: the first answer is a draft

Treat the conversation as a back-and-forth. Useful follow-ups include:

  • “Make it shorter and more direct.”
  • “That’s too formal; make it sound friendlier.”
  • “What did you assume that I should check?”
  • “Give me two alternative versions.”

A couple of quick refinements usually beat trying to write the perfect prompt on the first try.

A simple template

When you’re not sure where to start, fill in these blanks:

Role/context: I am [who you are] and I need [what] for [purpose]. Task: Please [specific task]. Audience: It’s for [who will read it]. Format: [length, structure, tone]. Constraints: [anything to include or avoid].

Example:

I run a small bakery and need a weekend promotion post for our Facebook page. Please write a post announcing 20% off all croissants on Saturday and Sunday. It’s for local customers. Keep it under 60 words, cheerful, with one emoji. Don’t use hashtags.

Common mistakes

  • Asking leading questions that assume a false fact (“Why did X happen?” when it didn’t).
  • Accepting facts without checking them, especially numbers, quotes and sources.
  • Overloading one prompt with ten unrelated requests.
  • Sharing sensitive data such as passwords, ID numbers or private documents.

The bottom line

Good prompts are clear briefs: context, a specific task, the audience, the format, and any constraints. Add examples when style matters, ask for step-by-step reasoning when accuracy matters, and treat the first answer as a draft. With these habits, AI chatbots become dramatically more useful.

New to AI? Our beginner’s guide to AI explains how it works, what it’s good at, and how to use it safely.

AIpromptschatbotsproductivity