To write a good prompt, tell the AI what you want (the task), why and for whom (the context), in what shape (the format), and what to watch out for (the limits). A prompt is the message you type to an AI tool. The model cannot read your mind. It guesses everything you leave out, and its guesses may not match what you wanted.
This guide shows weak and strong prompts side by side and gives you a template you can reuse.
What does a good prompt look like?
Weak prompt:
The answer will probably be long, general, and not at your level.
Strong prompt:
This prompt gives the level (9th grade), the goal (a test), the length (150 words), the method (a comparison), and an extra request (3 questions). The model has much less to guess.
What are the five basic tips for prompt writing?
1. Start the task with a clear verb.
Use "summarize", "compare", "list", "fix", or "explain". Instead of "something about photosynthesis", write "compare the two stages of photosynthesis".
2. Give context.
Say who you are, what you will use the answer for, and what you already know. The sentence "I just started Python, I know loops but not functions" changes the level of the whole answer.
3. Say what format you want.
A table, a bullet list, or a paragraph? How many items or words? For example: "a table with three columns: term, definition, example".
4. Show an example.
A style is hard to describe and easy to show. A short sample after "Write in this style:" often works better than a long explanation.
5. Set limits.
"Do not use technical terms." "Do not invent sources. If you are not sure, say so." "Do not change my code. Only explain the error."
Is there a prompt template I can copy?
You do not need to remember five tips every time. Fill in these four parts:
- Context: Who am I, why do I need this, what do I know?
- Task: One sentence, one verb: what should be done?
- Format: Length, table or list, language, and tone.
- Limits: What should not happen? What should the model do when it is unsure?
A filled-in example:
Two details matter. Separating the material (notes, homework question, error message) from your instructions with a marker such as triple quotes helps the model tell which part is the instruction and which is the material. The sentence "if information is missing, ask me" stops the model from filling gaps with guesses.
How do you improve an AI answer after the first reply?
The first answer is rarely perfect. Continuing the chat is a skill:
- "Make it shorter."
- "Explain the second point with an example."
- "Rewrite this as if you were talking to a 12-year-old."
- "Which parts of this answer might be wrong?"
The last question is especially useful, because asking the model to review its own answer can reveal problems you missed. It is still not a check. Verify important facts yourself (see [AI hallucinations](/blog/ai-hallucinations)).
If the chat has drifted off topic, or the model keeps repeating an old mistake, do not try to repair it. Start a new chat and paste in your improved prompt.
Why does AI give bad answers?
Most bad answers come from missing information, not from a broken tool. A short prompt leaves the model to guess your level, your goal, and your format. A prompt with two jobs in one sentence gets a messy answer. And the model can still be wrong even for a clear prompt, because it writes likely text, not checked facts. You can read why in [how chatbots work](/blog/how-ai-chatbots-work).
What are good prompt writing tips for students?
Your prompt can help you learn, or it can let you skip the learning. Compare:
| Weakens learning | Strengthens learning |
|---|---|
| "Write the answer to this assignment." | "I tried this question and got stuck here. Do not give the answer. Give me a hint." |
| "Fix this code." | "This code gives an error. Do not fix it. Tell me which line to look at so I can find the problem." |
| "Summarize the topic." | "I read the topic and wrote my own summary. Show me what is missing or wrong." |
Connections you build yourself stay with you. A ready answer feels good now but does not help in an exam. Follow your school's rules on AI use in assignments.
Common mistakes
- Writing too little. A two-word prompt gets a general answer.
- Packing several jobs into one sentence. Split complex work into steps.
- Stopping at the first answer. Give feedback and ask for a fix.
- Typing private information. Never put passwords, ID numbers, or other people's personal data in a prompt.
- Using the answer without checking. A well-written prompt can still get a wrong answer.
What to read next
- The AI course lessons [good prompt](/learn/ai/good-prompt) and [improve prompt](/learn/ai/improve-prompt) practice these skills. See the full [Artificial Intelligence Foundations course](/courses/ai).
- Learn why answers can be wrong in [AI hallucinations](/blog/ai-hallucinations).
- Writing clear instructions is also the base of programming. Read [what is an algorithm](/blog/what-is-an-algorithm).
- #prompts
- #chatbots
- #ai for students