How to Write Better AI Prompts: A Visual Beginner’s Guide
A better starting point.
Raju wants an attractive description for his ginger tea. He types, “Write something good.” But good for whom? A menu, a poster, or a social post? Today, we turn vague requests into clear instructions, one small improvement at a time.
01. What is an AI prompt?
A prompt is the input you give an AI model: instructions, questions, examples, or supporting information. A useful prompt makes the intended task clear. You do not need impressive vocabulary or a secret phrase; you need a brief that communicates your goal.
Goal
What do you want done?
Input
What information will help?
Result
What should the answer look like?
02. Show the difference: vague vs. specific
“Write about tea” could lead to a history essay or a recipe. “Write a friendly menu description under 30 words for ginger tea, using only these ingredients…” narrows the task. Both are prompts, but the second gives the model clearer criteria.
Vague request
Write something about tea
Clear request
Menu description; supplied facts; under 30 words
03. Name the task with a clear verb
Start with an action: summarize, compare, explain, extract, rewrite, or draft. If several outcomes are needed, state them explicitly or divide the work into stages. Raju needs a menu description, so “Draft a menu description” is a useful starting point.
Explain
Teach a concept
Extract
Pull fields from supplied text
Draft
Create a first version
04. Provide relevant facts
Raju supplies the actual ingredients: black tea, milk, fresh ginger, and sugar. He does not need to include unrelated order history. Relevant context reduces the need to guess, but the model can still add unsupported details unless the output is checked.
Include
Confirmed ingredients
Omit
Unrelated shop history
Protect
Private customer information
05. Specify the audience and output
A description for a menu should differ from an explanation for a chemistry class. Specify audience, tone, and format when they matter. For Raju: first-time customers, friendly English, one sentence. A role such as “menu editor” may help frame the task but does not grant expertise or verification.
Audience
First-time customers
Tone
Friendly and simple
Format
One sentence, under 30 words
06. Add boundaries and missing-data behavior
Tell the model what to do when needed information is missing. Raju can say, “Use only the facts below. Do not invent prices or awards. If a required detail is missing, ask me.” Avoid contradictory requests such as “one sentence” and “five detailed paragraphs.”
Allowed evidence
The supplied ingredient list
Missing information
Ask or mark as unknown
Output limits
One sentence; no invented claims
Draft a menu description for first-time customers.
Facts: Ginger tea made with black tea, milk, fresh ginger, and sugar.
Use friendly, simple English. Return one sentence under 30 words. Use only these facts. Do not add prices, awards, or health claims.
Enjoy a warming cup of black tea with milk, fresh ginger, and sugar—a comforting choice for your tea break.
A teaching example, not a recorded benchmark result. Actual outputs can vary.07. Use examples when format is hard to describe
An example can demonstrate the desired mapping or style. For a menu extractor, show “Ginger tea ₹20” becoming “Ginger tea | 20 | INR.” Several input-output demonstrations are often called few-shot prompting. Keep the examples consistent with the instructions and include relevant edge cases.
Example input
Ginger tea ₹20
Example output
Ginger tea | 20 | INR
New input
Masala tea ₹25
08. Separate instructions from source material
Use clear headings such as TASK, SOURCE, and OUTPUT FORMAT. This helps distinguish what to do from the material to process. For example, a customer review is evidence to summarize, not a trusted instruction to change the assistant’s rules.
TASK
Summarize the review
SOURCE
The review text
OUTPUT
Two factual bullet points
09. Review the result before publishing
Suppose the draft calls Raju’s tea “award-winning.” That claim is absent from his facts. Remove it or verify it independently. Ask for a focused revision, but also inspect the new version: having the model check itself is not independent proof.
Facts
Are claims supported?
Instructions
Did it follow the brief?
Usefulness
Does it help the intended reader?
10. Revise one specific problem at a time
Instead of “Make it better,” name what needs improvement: “Remove the award claim. Keep the ingredients unchanged. Use fewer than 25 words.” For repeatable applications, test the prompt on several representative cases, including missing information and unusual inputs.
Observe
Identify the actual failure
Revise
Change the relevant instruction
Retest
Use normal and edge cases
11. Use the same approach for Java learning
A developer might ask: “Explain Java Stream map versus flatMap to a beginner. Give one short Java 8 example for each, with comments and expected output. End with two differences.” This is more specific than “Explain streams.” Any generated code still needs review and execution.
Task
Explain map vs. flatMap
Constraints
Beginner; Java 8; short examples
Validation
Check code and expected output
12. A reusable checklist—not a magic formula
Use the pieces that your task needs. A simple request may need only a sentence. A complex task may benefit from context, output requirements, and examples. Aim for clear, relevant instructions instead of maximum length.
Task + context
What to do; relevant facts
Audience + format
Who it is for; shape of result
Limits + examples
Boundaries; demonstrations when useful
Copy this prompt template
Your practice task
Improve this prompt: “Write a post for my shop.” Choose the platform, provide confirmed shop details, define the audience, and specify a length. Then check whether the generated draft adds any unsupported claims.
See one possible improved prompt
Write an Instagram caption under 40 words for a tea shop. Confirmed facts: ginger tea and masala tea are available. Audience: nearby office workers. Tone: warm and simple. Do not add prices, discounts, opening hours, or health claims. Return only the caption.
A useful prompt tells the model what to do, gives it relevant information, and describes a usable result. You still check the answer.
Next lesson
Temperature and Top-p Explained Simply: how generation settings affect variation, and why more randomness does not mean more accuracy.
Join the conversation: Share the vague prompt you improved and the one change that helped most.
Comments
Post a Comment