Quick answer: A good AI prompt has four parts: a role, a task, context and a format. Adding those four parts to a request in ChatGPT, Claude or Gemini gives you a more specific and usable answer on the first try.
Key takeaways
- Every strong prompt names a role, a task, context and a format.
- Context does the most work, so say who the answer is for and why.
- Treat the first reply as a draft and improve it with short follow-ups.
You type “write a post about my gym” and get something that could belong to any gym on earth. That isn’t the AI being lazy. It only knows what you tell it, and a one-line request tells it almost nothing. The fix is smaller than most people expect. Four short pieces of information, a role, a task, context and a format, turn a vague request into one the tool can actually answer well. Below you’ll find the formula, a before-and-after example, five upgrades to add to any prompt, and three templates you can copy today.
What are the four parts of a good AI prompt?
The Learn AI Smart team uses the same four-part formula for almost every request, whatever the tool. Each part answers a question the AI would otherwise have to guess at: Skipping any one of them is how most vague, generic answers happen, so it’s worth running through the list every time you write a request.
- Role: who the AI should act as, for example “a friendly marketing coach”.
- Task: what you want done, for example “write three email subject lines”.
- Context: facts about you, the audience and the goal.
- Format: how you want the answer shaped, such as a table, bullets or 100 words.
Context usually matters most. Role and format take a few seconds to add, but context is the part people skip, and it’s what keeps an answer from sounding generic. If you only have time to improve one thing in a weak prompt, say who the output is for and what you want it to achieve.
How do you improve a prompt after the first answer?
The five upgrades below work on top of the formula. You don’t need all of them every time, but each one fixes a specific problem you’ve probably already run into. Try one at a time for a week, and you’ll quickly see which ones fit the kind of work you do most.
Ask for options. Try “give me five versions, from formal to casual.” Seeing a range lets you pick and mix instead of rewriting one flat draft. Show an example. Paste a sample you like and say “write in this style.” The AI copies patterns it can see far better than it follows adjectives like “engaging.”
Set limits. Word counts, a reading level and a short list of things to avoid keep answers focused. Ask the AI to ask you questions. Try “before you answer, ask me three questions you need.” That fills in missing context you didn’t know to give.
Improve step by step. Follow up with “shorter,” “more specific” or “make it sound less formal.” Two or three quick rounds usually beat one giant prompt, and each round is cheap to try. You can also say “keep the second paragraph and rewrite the rest,” which is more precise than starting over. Each round teaches you something about how the tool responds.
What prompt templates can you copy?
Here are three fill-in templates for everyday jobs. Replace each bracket with your real details, and delete any part you don’t need. The more specific the brackets, the better the result. Save the ones you like in a notes app so you can paste them in without retyping.
Email: “Act as [role]. Write an email to [person] about [topic]. Goal: [goal]. Tone: [tone]. Under [x] words.” This one works well for follow-ups, requests and polite reminders where the goal is clear but the wording is slow to come. Adding one real detail about the recipient makes it better still.
Summary: “Summarize the text below in five bullet points for [audience]. Highlight any decisions and deadlines. Text: [paste].” Naming the audience changes the level of detail, and asking for decisions and deadlines stops the summary from burying the parts you need to act on. Try it on a long article or a meeting transcript.
Plan: “Create a [time period] plan for [goal]. I have [time/resources]. Present it as a table with day, task and time needed.” Stating your real time and resources keeps the plan realistic instead of a perfect schedule you’d never follow. Ask for a table so you can scan it in seconds.
How long should a prompt be, and do prompts work in every AI tool?
A prompt should be long enough to include the role, task, context and format. For most everyday requests that’s three to six sentences. Longer isn’t automatically better. A short prompt with the right four parts beats a long, rambling one that mixes several jobs together.
The same prompts mostly work in ChatGPT, Claude and Gemini, because clear instructions are clear to any of them. The wording and style of the answers can differ, so if one tool’s reply feels off, rephrase your prompt or try a follow-up before switching tools.
Where can you find ready-made prompts?
If you’d rather start from tested prompts than build your own, the AI Prompt Playbooks Bundle collects them in one place, and the full list of prompt books shows every title in the shop. They’re written for beginners, teachers, engineers and small business owners. Browse the titles, pick the one closest to your work, and adapt the prompts to your situation.
For a free example, see our lesson plan prompt for teachers. It shows the four-part formula applied to a real job. You can read more about Learn AI Smart and how we write these guides on the home page. Try it as written once, then change the brackets to fit your own subject.
A weak prompt vs. a better one
A small women-only gym in Multan wants captions for a new morning yoga class.
Weak:
Better:
The weak prompt leaves the role, audience, topic and length to guesswork, so you get a generic gym post. The better prompt covers all four parts and adds an audience and tone. Expect three short captions you can pick from.
A prompt you can copy and use
Paste this into ChatGPT, Claude or Gemini and replace the parts in brackets with your own details:
Limits and things to watch
Most weak prompts fail in the same four ways. They’re too vague, so the AI fills the gaps with generic filler. They pack several unrelated tasks into one request, which muddies every answer. They forget to say who the output is for. And people skip the review step. AI can sound sure of itself and still be wrong, so check facts, names and numbers before you use anything. A good prompt improves your odds of a useful draft, but it never replaces your own judgment.
Keep learning
Frequently asked questions
What is a prompt in AI?
A prompt is the instruction you type to an AI assistant, such as a question or a task with details. Prompts can be as short as one line or as detailed as several sentences. The clearer and more specific the prompt is, the more useful the assistant’s answer tends to be.
What are the four parts of a good AI prompt?
The four parts are role, task, context and format. The role says who the AI should act as, the task says what to do, the context supplies facts about you and your audience, and the format describes the shape of the answer, such as bullets or a word limit.
How long should a prompt be?
A prompt should be long enough to include a role, a task, context and a format, which is often three to six sentences. Length matters less than clarity. If you’re mixing several jobs in one prompt, split them into separate requests instead of making one prompt longer.
Do the same prompts work in ChatGPT, Claude and Gemini?
Mostly yes. Clear prompts work across all three tools because each one responds to specific instructions and context. Results and writing style can differ from tool to tool, so adjust your wording or follow up if the first answer isn’t quite what you wanted.
Want ready-to-use prompts? Browse the AI Prompt Playbooks Bundle or the full list of prompt books, and get our free AI prompt guides for teachers, engineers and small business owners.
Last updated: October 2026. Always check AI output before you use it.
Pingback: AI for Electrical Engineers: Reports, Inspections, Calculations
Pingback: Best AI Tools for Beginners: What to Learn First | Learn AI Smart
Pingback: AI Learning Roadmap: A 90-Day Plan for Beginners