Lesson 3 of 10 Practical examples

How to Write Better Prompts

Vague instructions lead to vague answers. A good prompt gives AI the right context and direction to produce stronger, more useful results.

7โ€“10 min read Beginner friendly Practical examples

The prompt framework

Use these eight elements to build prompts that get better results. You do not need all eight every time: start with role, task, and context. This is the core of prompt engineering, and it works the same way across ChatGPT, Claude, and Gemini.

Role
Tell AI what kind of expert to act like.
Examples: content strategist, teacher, coder, marketer
Task
Tell AI exactly what you want it to do.
Examples: write, list, explain, create, summarize
Context
Give background so AI understands the situation.
Examples: your industry, goal, current challenge, project details
Audience
Describe who the output is for.
Examples: beginners, customers, managers, students
Format
Tell AI how you want the answer structured.
Examples: bullet points, table, numbered steps, checklist
Tone
Tell AI how the output should sound.
Examples: friendly, professional, casual, confident
Constraints
Add limits to get more focused results.
Examples: keep it short, under 150 words, avoid jargon
Examples
Show AI what good output looks like.
Examples: sample paragraph, reference, style example

Bad prompt vs better prompt

Bad prompt

Write me content ideas.

Too vague. No context, audience, format, or direction. AI has to guess everything.

Better prompt

Act as a content strategist. Give me 20 short content ideas for beginners who want to use AI to save time at work. Make each idea practical, simple, and useful for Threads posts. Avoid hype and generic advice.

Clear role, task, audience, format, tone, and constraint. AI knows exactly what to produce.

What the better prompt actually produces

Here is what a response to that better prompt looks like in practice.

Example prompt
Act as a content strategist. Give me 5 short content ideas for beginners who want to use AI to save time at work. Make each idea practical, simple, and useful for Threads posts. Avoid hype and generic advice.
Example AI response
  1. "3 emails I let AI draft this week, and how much time each one saved."
  2. "The one-line prompt I use to turn meeting notes into a task list."
  3. "A before/after of a vague prompt vs a specific one, same task."
  4. "5 minutes with AI vs. 30 minutes without: a real comparison."
  5. "The AI prompt I reuse every Monday to plan my week."

Illustrative example. Actual wording will vary by tool, model, and your exact input.

Your simple prompt formula

Copy this template and fill in the brackets. Start here and adjust from the results.

Simple prompt formula
Act as a [role]. Help me [task] for [audience]. The goal is [goal]. Use a [tone] tone. Format the answer as [format]. Avoid [things to avoid].

Quick prompting tips

Be specific

Vague prompts give vague results. The more detail you give, the better.

Add context

Tell AI about your goal, your audience, and any important background.

Ask for options

Ask for 5 or 10 variations so you can pick the best one.

Iterate

Your first prompt is a draft. Refine it based on what you get back.

Save good prompts

When a prompt works well, save it somewhere and reuse it.

Key Takeaway

Better prompts give AI more direction. More direction usually means better output. Start with role, task, and context, then add more elements as needed.

Frequently Asked Questions

What is the difference between a bad prompt and a good prompt?

A bad prompt gives AI a vague instruction and leaves everything else to guesswork. A good prompt specifies the role, task, audience, format, tone, and any constraints, so AI has enough direction to produce a focused, usable answer on the first try.

Does this prompt framework work with ChatGPT, Claude, and Gemini?

Yes. The role, task, context, and format approach works the same way across ChatGPT, Claude, Gemini, and most other AI assistants, since it is about how you structure your request, not which model reads it.

Do I need to use all 8 elements every time?

No. Start with role, task, and context for most requests. Add format, tone, constraints, or examples only when the default output is not close enough to what you need.

How many times should I refine a prompt before giving up?

Most prompts improve significantly after 1 or 2 rounds of feedback. If a third attempt still misses the mark, the task may need more context than a single prompt can hold, so consider breaking it into smaller steps.