How to Write Better AI Prompts: A Simple 4-Part Framework for Beginners
· 7 min read · Tutorial Prompts & Templates
You ask the chatbot a question. It answers with confidence, in perfect grammar — and the answer is completely useless. Too generic. Wrong tone. Missing the point.
Most of the time, the problem isn't the AI tool. It's the prompt. A chatbot doesn't know your situation, your audience, or what a "good" answer looks like to you — unless you tell it. This article gives you a simple 4-part framework that fixes most bad prompts, plus three worked examples you can copy the pattern from.
If you haven't picked a chatbot yet, start with our beginner comparison of ChatGPT vs Claude vs Gemini — the framework below works on all of them.
Why most prompts fail: three common reasons
Almost every weak prompt is missing at least one of these:
- Vague verbs. "Help me with my email" or "write something about my product" doesn't tell the AI what the finished thing should be. The AI fills the gaps with guesses.
- No context. The chatbot doesn't know you're a freelancer chasing a late payment, a student with an exam in two weeks, or a shop owner writing for gift buyers. Without that, it writes for nobody in particular.
- No format. If you don't say how long, what structure, and what tone, you get a random length, a random structure, and a random tone.
The official guides from the AI providers say the same thing in plainer terms: OpenAI's prompting guide recommends writing explicit instructions and including the relevant context the model needs, and Anthropic's guide says to start with a clear definition of what a good answer looks like before you refine your prompt (sources at the end of this article).
The 4-part framework: Role – Task – Context – Format
Before you type your next prompt, add these four pieces. Each one has a one-line rule.
1. Role — tell the AI who to be
Rule: name a job, not a personality.
"Act as a professional freelance consultant" beats "act as a genius." A job title sets the tone, vocabulary, and level of formality in one short phrase.
2. Task — say exactly what to do
Rule: start with a verb and name the deliverable.
"Draft a payment follow-up email" beats "help me with a client problem." One verb, one concrete thing to produce.
3. Context — give it the facts it needs
Rule: if a smart stranger couldn't do the task without it, include it.
Names, numbers, deadlines, the audience, what's at stake. This is the part beginners skip most — and the part that changes answers the most.
4. Format — describe what "good" looks like
Rule: specify length, structure, and tone.
"Three short paragraphs, warm but firm tone" beats hoping the AI reads your mind. This maps directly to Anthropic's advice to define your success criteria first.
This is a simplified version of how the providers themselves structure prompts — OpenAI's documentation lays prompts out as identity, instructions, examples, and context. We've trimmed it to the four pieces a beginner actually needs in everyday chat.
Worked example 1: a freelancer chasing a late payment
The situation: Sara is a freelance web designer. A client owes her $850, and the invoice is a week overdue. She wants to sound professional, not desperate.
Before (weak prompt):
"Write an email to my client asking for payment."
This produces a generic template — no amount, no invoice number, no timeline, wrong tone for a first nudge.
After (using the framework):
Role: Act as a professional freelance consultant who writes firm-but-friendly client emails.
Task: Draft a first payment follow-up email.
Context: I'm a freelance web designer. My client, Brightline Marketing, owes me $850 for a website redesign (invoice #1042), sent 21 days ago. Our contract says payment is due within 14 days, so it's one week overdue. This is my first follow-up and I want to keep the relationship positive.
Format: A short email: subject line, greeting, no more than three short paragraphs, and a polite closing with my name. Warm but clear tone.
Why the second one works better: the role sets the tone, the context supplies the exact facts (amount, invoice number, timeline), and the format caps the length. The draft needs small edits, not a rewrite.
Worked example 2: a student turning messy lecture notes into study notes
The situation: Dan is a first-year biology student with an exam on cell division in two weeks. His lecture notes are a mess of half-sentences.
Before (weak prompt):
"Turn these notes into study notes: [pastes notes]"
This usually returns a tidy summary of the same mess — no focus on what matters for the exam, and sometimes extra facts the student never learned, which are dangerous to memorize.
After (using the framework):
Role: Act as a patient study coach for first-year university students.
Task: Reorganize my messy lecture notes into clear study notes.
Context: I'm studying for a biology exam on cell division in two weeks. Use only the material in my notes below — don't add facts from outside them. My notes: [pastes notes]
Format: Short sections with headings, key terms in bold, plain language, and 5 practice questions at the end.
Why the second one works better: limiting the AI to the student's own notes avoids made-up "extra" facts, the exam focus keeps it relevant, and the practice questions turn reading into actual studying. If you're organizing material from many sources, NotebookLM can turn your own documents into a personal knowledge base — it pairs well with this approach.
Worked example 3: a small-business owner writing a product description
The situation: Maria sells handmade soap in a small online shop and needs a product description that sounds warm and sells the product — without making claims she can't back up.
Before (weak prompt):
"Write a product description for my handmade soap."
This returns a bland paragraph that could describe any soap on the internet.
After (using the framework):
Role: Act as a copywriter for handmade goods shops.
Task: Write a product description for my lavender-oatmeal soap bar.
Context: It's handmade with the cold-process method, costs $9 a bar, and my buyers are mostly gift shoppers who like natural products.
Format: 80–120 words: a headline, two short paragraphs, and three bullet-point features. Warm tone. Do not make any health or medical claims.
Why the second one works better: the audience (gift shoppers) shapes the wording, the word-count guardrail keeps it shop-ready, and the "no medical claims" line is a safety rule beginners often forget — an AI left to itself will happily invent benefits for your product.
A note on these examples: the prompts above are original examples written for this article to illustrate the technique. They describe the kind of improvement you can expect; they are not transcripts of real AI conversations.
Four mistakes to avoid, even with the framework
- Cramming five jobs into one prompt. "Write the email, then a social post about it, then translate both" gives you three mediocre results. One task per prompt.
- Contradicting yourself. "Be detailed but keep it super short" leaves the AI to pick a winner. Decide what matters more and say so.
- Accepting the first draft. Good prompting is iterative — Anthropic's own guidance starts from a first draft prompt you then improve. Reply with "make the tone warmer" or "shorten the second paragraph" instead of starting over.
- Pasting sensitive information. Don't put client names, private financial details, or other people's personal data into a chatbot. Anonymize first: "my client" works as well as a real name.
A 10-minute practice exercise
Pick one real task from your own work — an email, a summary, a description. Then:
- Minutes 0–2: write the weak version, the way you'd naturally type it. Before sending, decide what a good answer would look like — that's your success criterion.
- Minutes 2–7: rewrite it with Role, Task, Context, and Format. Paste your real details into the context.
- Minutes 7–10: compare the two answers. Note which of the four parts made the biggest difference — that's the part you were skipping.
Save your rewritten prompt as a template. Most people find that after a week of this, the four parts become a habit and the "weak version" step disappears.
Sources
- OpenAI — "Prompt engineering" (official API documentation): recommends explicit instructions, relevant context, and structured prompt sections (identity, instructions, examples, context). https://platform.openai.com/docs/guides/prompt-engineering — accessed 12 October 2026.
- Anthropic — "Prompt engineering overview" (official documentation): advises defining clear success criteria and starting from a first draft prompt before refining. https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview — accessed 12 October 2026.
The Role–Task–Context–Format framework and all examples in this article are original to Build with ANM, developed as a beginner-friendly simplification of the provider guidance above.