← All guides
Life + Business · Getting Started ·ChatGPT, Claude, Gemini

How to Write a Prompt That Actually Works (the 5 Parts)

A one-line prompt gets you a one-line answer. The fix is a simple structure with five parts: role, task, context, format, and an example. Here is the template, filled in for work and for home.

Type “write me a marketing email” into any AI and you get exactly what you asked for: a generic marketing email, for a generic company, that you would never send. The tool is not the problem. The prompt is.

A one-line prompt gets you a one-line answer. The good news is that a prompt that actually works is not longer or fancier, it is just built in a simple order. Once you see the five parts, you cannot unsee them, and every prompt you write gets better.

Here is the structure I use for everything, at work and at home.

The 5-Part Prompt

Every prompt that works has some mix of these five parts. Not always all five, but the more the answer matters, the more of them you fill in.

  1. Role. Who the AI should be. “You are a marketing copywriter.” “You are a patient meal planner.”
  2. Task. What you actually want it to do. One clear verb. Write, summarize, plan, compare.
  3. Context. What it needs to know to get it right. Who it is for, what you are working with, the constraints.
  4. Format. How you want the answer back. A table, five bullets, a short email, a checklist.
  5. Example. One quick sample of what good looks like, or a line to match. This is the part people skip, and it is the one that does the most work.

Role sets the voice. Task sets the job. Context makes it yours. Format makes it usable. Example makes it accurate. That is the whole thing.

The copy-paste template

Keep this in your notes and fill it in. You will not use every line every time, and that is fine.

Role: You are a [who you want the AI to act as].
Task: [The one thing you want, starting with a verb].
Context: [What it needs to know: who it's for, what you have, any limits].
Format: [How you want it back: a table, 5 bullets, a short email, etc.].
Example: [One sample of what good looks like, or a line to match].

That is it. Copy it, fill the lines that matter, and paste.

What it looks like filled in

I have built and run a lot of prompts, including an AI marketing workforce of 35 agents where a sloppy prompt shows up fast as a bad output. Every one of those 35 agents started as a prompt written with this exact 5-part structure. The five parts are what took my own prompts from “close, but I have to rewrite it” to “I can use that.”

Here is the difference, side by side. One example from work, one from home.

The lazy promptThe same request, in 5 parts
Work”Write a marketing email about our summer sale.”Role: You are a direct-response email copywriter. Task: Write a promo email for a summer sale. Context: We are a national brand with a loyal repeat-customer base. The offer is 20% off through Sunday. Warm, not pushy. Format: Subject line plus 120 words, one clear button line. Example: Match the tone of “Your favorite room, refreshed for less.”
Home”Give me a meal plan.”Role: You are a practical weeknight meal planner. Task: Plan five dinners for next week. Context: Family of four, one picky eater, 30 minutes max on weeknights, we already have chicken and pasta. Format: A table with the day, the meal, and a short grocery list. Example: Simple like “Sheet-pan chicken and veggies,” not a project.

The lazy prompt on the left gets you a wall of generic text you have to fix. The five-part version on the right gets you a warm, on-brand email with a real subject line, or a meal plan you can actually shop from. Same tool. Same thirty seconds of typing, roughly. Completely different result.

Notice what changed. You did not learn a secret command. You just told it who to be, what you have, and what you want back. That is the skill nobody teaches plainly, and it is most of the game.

The common mistakes

These are the five I see most, and most of them I made first.

  1. Being too vague. “Make it better” is not an instruction. Say what better means: shorter, warmer, less jargon, more specific.
  2. Giving no context. The AI cannot know your audience, your constraints, or what you already have unless you tell it. Context is the difference between generic and yours.
  3. Not saying the format. If you do not ask for a table, five bullets, or a short email, you get a shape you then have to reformat. Name the format up front.
  4. Giving up after one try. The first answer is a draft, not a verdict. Tell it what was off in plain words and let it try again. The good answer usually shows up on try two or three.
  5. Overloading it with ten asks at once. Cramming a research task, a rewrite, and a plan into one prompt gets you a muddled version of all three. One clear job per prompt, then the next.

Do this today

Take one thing you would normally type as a one-liner today. A message, a plan, a first draft of anything. Fill in the five-part template instead, even roughly, and send it.

You can shortcut the role and context parts for good by giving the AI a saved memory of you, so it already knows who it is talking to before you ask. And if you are still deciding which tool to run all this in, here is how I pick between ChatGPT, Claude, and Gemini. New to all of it? Start with your first week with AI and come back here.

Want my fill-in-the-blank prompt template plus the ten prompts I reuse every week, at work and at home? Grab them below and I will send them straight over.

Common questions

Do I really have to write all five parts every time?

No. For a quick question, task alone is fine. The five parts are for when the answer matters and the first try let you down. The more the output has to be right, the more of the five parts you fill in. Most of my everyday prompts use three: task, context, and format.

Does the 5-part prompt work in ChatGPT, Claude, and Gemini?

Yes, all three, and any tool like them. This is not a trick that depends on one app. It is just clear instructions, and clear instructions work everywhere. I use the same structure across every tool I touch.

Isn't a long prompt worse than a short one?

Long is not the goal. Clear is. A five-line prompt that names the role, the context, and the format beats a rambling paragraph every time. You are adding signal, not word count. If a line does not change the answer, cut it.

What if the answer is still wrong after all five parts?

Then you refine, which is part of the method, not a failure of it. Tell it what was off in plain words: too long, too formal, missed the point. The second and third try are where the good answer usually shows up. Nobody nails it in one shot every time, including me.

Where do I keep my prompts so I am not rewriting them?

In your notes app, or better, as a saved Context Block so the AI already knows your role and preferences before you start. That covers the role and context parts for you. I keep my ten most-used prompts in one note and copy the one I need.

The Newsletter

One practical AI idea, every week.

Real ways I use AI at work and at home. No hype, no jargon, no tech background needed. Coming soon for subscribers: the free course, 5 Days to Actually Using AI.

Free forever. Unsubscribe anytime.