How do I write a good prompt for ChatGPT?
Key ingredients of a good prompt
A good prompt for ChatGPT usually includes four parts: the task (what to do), the context (why or for whom), the format (how to present it), and any constraints (what to avoid). For example: "Summarize this article for a busy executive in three bullet points, avoiding technical jargon."
You can also assign a role ("Act as a travel agent") or provide examples of the output you want. ChatGPT responds well to explicit instructions like "think step by step" for reasoning tasks, though results vary by model version.
- Start with an action verb: Write, Explain, List, Compare.
- Specify audience and tone: "for beginners," "in a friendly tone."
- Set format: "in a table," "as a numbered list," "in 200 words."
- Add constraints: "do not use technical terms," "include only facts."
- Ask for reasoning: "explain your steps" or "show your work."
Iterate and refine
Rarely does the first prompt yield the perfect answer. Treat it as a conversation: if the output isn't right, tell ChatGPT what to change. You can say, "That's too long—make it half the length" or "Add more examples."
For complex tasks, break the prompt into smaller steps. For instance, first ask for an outline, then ask to expand each section. This gives you more control and often better results.
Common mistakes
- Writing a vague prompt like "Tell me about dogs" and expecting a tailored answer.
- Assuming ChatGPT remembers previous conversations—each new chat starts fresh unless you provide context.
- Overloading a single prompt with too many unrelated requests, which can dilute the output.
