Learn · Learn AI · Beginner · 6 min

The four parts of a useful prompt

Role, task, context, and format make the work easier to steer.

A useful prompt gives ChatGPT a job, the situation it is working inside, and the shape of a good answer. You do not need magic words; you need enough information to reduce guessing.

Illustration for The four parts of a useful prompt.

In plain English

A useful prompt is a small job ticket. Role says what kind of helper to be. Task says what to do. Context explains the situation. Format says what the answer should look like. These four parts stop the computer from inventing the assignment for you.

See it in action

“You are a patient science tutor. Help me understand photosynthesis for a 7th-grade quiz. Use one analogy, five key words, and three practice questions.” That prompt has a job, audience, and finish line.

Try it now

Take “help me with math” and add the four parts. Do not worry about fancy wording. The goal is to make your request easier for another person to follow.

Watch out for this

A huge prompt is not automatically a good prompt. If the task has several different jobs, use several smaller turns.

What good looks like

You can make a prompt easier to read by putting the job first and the details second. Start with “I need help with…” Then add who it is for, what you already know, and what form the answer should take.

Your small assignment

Take one prompt you wrote and underline the task in one color and the constraints in another. If you cannot underline a clear task, rewrite the opening.

Copy-paste prompt

You are helping me as a [role]. My task is [task]. The context is [context]. Return the result as [format]. Before you begin, tell me what is unclear.

Knowledge check

Which set gives ChatGPT the clearest assignment?

  • Role, task, context, and format
  • Mood, emojis, speed, and length
  • A request to be more intelligent
Show the answer

Role, task, context, and format