Skip to content

Lesson 4 ยท Prompting ChatGPT

Writing Clear Prompts for ChatGPT

Write prompts that get useful ChatGPT answers by stating the goal, context, audience, format and limits, with before-and-after examples and a checklist.

A prompt is a work request. If you hired a smart helper who knew nothing about your situation, you would explain what you need and why. ChatGPT is in a similar position. It cannot see your project, your reader or your taste unless you tell it, or unless that information is already in the chat, its memory or your settings.

You do not need magic words. You need a clear request. This lesson gives you a structure you can use for almost anything.

Five parts of a strong request

  1. Goal: what you want and what it is for.
  2. Context: the facts that matter.
  3. Audience: who will read or use the result.
  4. Format: the shape you want, such as a table or an email.
  5. Limits: length, tone, things to include or avoid.

You will not always need all five. For "What is 15% of 80?", the question is enough. For a cover letter, all five help.

Before and after

Here is a vague request:

TEXT
Write an email about the meeting.

ChatGPT must guess the meeting, the reader and your purpose. A stronger version:

TEXT
Write an email to my team of 8 about Thursday's planning meeting.
Purpose: ask everyone to send agenda ideas by Tuesday.
Context: the meeting moved from 10:00 to 14:00.
Tone: friendly and direct. Length: under 100 words.
Include a clear subject line.

The second prompt takes a minute to write and saves several rounds of correction.

Say what you want, not only what to avoid

"Do not be boring" gives little direction. "Open with a surprising fact and use short sentences" does. Negative limits are fine for real boundaries ("do not mention the price"), but pair them with a positive picture of success.

Explain why

Reasons help the model make better choices in cases you did not mention. Compare "Keep it short" with "Keep it short because people will read it on their phones". The second suggests short paragraphs, no wide tables and a key point at the top.

Give the source material

When the answer must rest on specific text, paste or attach that text and say how to use it:

TEXT
Using only the notes below, write a 5-bullet summary.
If something is not in the notes, say "not stated".

NOTES:
"""
(paste your notes here)
"""

Quotation marks, headings or labeled sections keep your instructions separate from the material. This also reduces the risk that text inside the material is read as a command. See delimiters and prompt templates for more.

Build a prompt with a small helper

This stand-in assembles the five parts into a clean prompt. It only formats text, and you can copy its output into ChatGPT.

Python Stand-in: assemble a clear prompt

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Left-out parts are not automatically a problem. They are a reminder to ask whether ChatGPT could guess them correctly.

Ask for questions first

If you are not sure what to include, invite questions:

TEXT
I want a training plan for a 5 km run. Before you write it, ask me
up to 5 questions you need answered. Then wait for my answers.

This works well for tasks with many personal details. It turns a blank page into an interview.

Ask for a checkable output

Design the answer so you can verify it:

  • Ask for numbers with the steps that produced them.
  • Ask for sources when facts matter, then open them.
  • Ask ChatGPT to mark guesses with a label such as "assumption".
  • Ask for a table, which is easier to scan for gaps.

A reply to "plan a budget and mark assumptions" might end like this:

TEXT
(an illustrative reply, written for this lesson)
Assumptions to confirm:
- The venue costs the same as last year.
- 40 people attend.

Size your prompt to the task

Long prompts are not automatically better. Extra detail that does not affect the result can distract, and conflicting rules force the model to choose. A good test is to ask of every sentence: would the answer change if I removed it? Keep the sentences that would change it.

For big jobs, break the work into steps: first an outline, then each section. You can correct the direction early, before a long draft is built on a wrong assumption.

Prompt checklist

Before you send an important prompt, ask:

  • Would a new colleague understand the task?
  • Did I include the key facts and the reader?
  • Did I say what the result should look like?
  • Is there anything private I should remove?

For deeper technique that applies to any assistant, read clear and specific instructions and anatomy of a prompt.

A second example: a decision

Weak prompts often hide the real decision. "Which phone should I get?" gives ChatGPT nothing to weigh. A stronger version states your priorities in order:

TEXT
Help me choose between two phone options I will describe.
My priorities, in order: battery life, a good camera for documents,
then price. I keep phones for at least four years.
First ask for any missing facts. Then compare in a table and say
which priority decides the result. Do not invent specifications.

Naming the order of your priorities is powerful, because real choices involve trade-offs. "Do not invent specifications" matters too: product details are easy to get wrong, so you should supply them or ask for a web search with sources.

Repair a weak prompt in three passes

You can improve a prompt before you send it. In the first pass, replace vague words such as "good" or "nice" with something observable. In the second, add the fact that a stranger would most likely get wrong. In the third, state what the finished answer looks like, for example "a list of at most five items, most important first". Stop there. If the reply still misses, use a follow-up to fix the specific gap.

Check yourself

Take the last prompt you sent to any assistant. Underline the goal, circle the audience and put a box around the format. Whatever you could not mark is what the assistant had to guess. Rewrite the prompt with the most important missing piece, send both versions in separate chats and compare the replies against your goal.

Common mistake: assuming ChatGPT knows what you know. If a detail matters and it is not in the chat, your settings or your files, include it.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Which prompt will probably give the most useful email?

    It states the reader, purpose, deadline, tone and length.
  2. 2. Why put your notes between clear markers?

    Separation reduces confusion about what is an instruction and what is data.
  3. 3. What is a good move when you are unsure which details matter?

    Questions surface missing details. Never share passwords.

Summary

  • State the goal, context, audience, format and limits that matter.
  • Describe success positively and explain why.
  • Separate instructions from source text.
  • Let ChatGPT ask questions for complex tasks.
  • Ask for outputs you can check.

Next: Follow-Ups: Iterating Toward a Better Answer

Your progress is saved in this browser. No account needed.