🧪

The universal prompt formula: make AI actually get you

Role + context + task + format — four parts that turn vague questions into great prompts.

Prompting Beginner

People often blame the AI for “weak, generic answers” — but the real culprit is usually the prompt. The vaguer your instruction, the more it can only give you confident filler.

The good news: writing great prompts isn’t magic. One formula covers most cases — Role + Context + Task + Format. Fill in those four and the same model gives dramatically better answers. This is the foundation for every other AI tip, so it’s worth getting right.

Rolewho it plays
+
Contextthe situation
+
Taskwhat to do
+
Formathow to output
✨ a sharp answer
The four parts of a great prompt

When to use it

Any time the answer disappoints — too generic, off-topic, wrong format — check whether these four parts were actually spelled out.

How to do it

  1. Role: have it play an expert (“senior HR / primary-school teacher”) so it pulls the right knowledge and tone
  2. Context: a line or two — who you are, who it’s for, any constraints
  3. Task: replace “write something” with one clear action
  4. Format: say what the output looks like — table / bullets / email / word count
  5. Not happy? Follow up with “redo part X / more casual / half as long” to converge

Weak vs strong

❌ How most people write it
Write me a job ad.
✅ Do this instead
You are a senior HR pro. We’re an AI startup hiring a front-end engineer; pay is competitive and the team is young. Write a job ad for a hiring site, under 120 words, sincere (not hype), emphasizing growth.

Same request — the right version fills in role, context, task and format, and the output is usable as-is.

Copy-paste prompt

You are a【senior role】. Context:【who you are, who it’s for, any constraints】. Please【the exact task】. Requirements:【length / tone / audience】, output as【table / bullets / email】.

Worked examples

Example 1 · A polite payment-reminder email
You are a tactful finance professional. Context: a client’s payment is 10 days overdue and we want to keep the relationship. Write a reminder email, polite but firm, under 150 words, email format with a subject line.

You get:A send-ready email: clear subject, respectful tone, a graceful out and a deadline.

Example 2 · Explain a concept to a kid
You are a primary-school science teacher great at analogies. Use one everyday metaphor to explain “what is AI” to an 8-year-old, under 80 words, warm and casual.

You get:An explanation a child actually understands — not a wall of jargon.

Level up

  • For accuracy: add one example in the context (“match this style: …”) — imitation is its fastest path
  • For complex tasks: ask it to “outline first, don’t write yet,” confirm, then expand
  • For reuse: save your common role setups in the app’s memory/custom instructions

Common mistakes

  • Cramming many tasks into one prompt — do one thing per prompt
  • Instructions with no context — it can only guess and stay generic
  • Giving up after one try — great output comes from iterating, not the first shot

FAQ

Do I always need all four parts?
No. For simple asks, “task + format” is enough; the more complex or important, the more role and context pay off.
Does this work on DeepSeek, Doubao and ChatGPT?
Yes — it’s about communicating intent clearly, independent of which model you use.

Pro tip:Bookmark this as a template — run any prompt through these four parts first.

Related tips