Writing Better Prompts
From the course ChatGPT for Beginners: Complete Guide 2026
The quality of ChatGPT's output depends heavily on the quality of your input. "Prompt engineering" is the practice of crafting effective prompts to get better results. Here are the core principles:
1. Be Specific
Vague prompts get vague answers. Compare these:
❌ "Tell me about dogs" ✅ "What are the top 5 dog breeds for apartment living, considering size, energy level, and noise?"
The specific prompt gives ChatGPT clear constraints, leading to a more useful response.
2. Provide Context
Give ChatGPT the background it needs to tailor its response:
❌ "Write a marketing email" ✅ "Write a marketing email for a SaaS startup launching a new project management tool. The audience is small business owners. Tone should be friendly but professional. Keep it under 200 words."
3. Use Examples (Few-Shot Prompting)
Show ChatGPT what you want by providing examples:
"Convert these sentences to a professional tone: Input: 'Hey, the project's gonna be late' Output: 'I wanted to let you know that the project timeline has been extended.'
Now convert: 'Can you fix this ASAP? It's broken'"
4. Assign a Role
Tell ChatGPT who to be:
"You are a senior Python developer. Review this code and suggest improvements for readability and performance."
"You are a nutritionist. Create a 7-day meal plan for a vegetarian athlete."
5. Specify the Format
Tell ChatGPT exactly how you want the output structured:
"List the pros and cons of remote work in a two-column table" "Summarize this article in 3 bullet points" "Write your answer as a JSON object with keys: title, summary, tags"
6. Iterate and Refine
Don't expect perfection on the first try. Use follow-up prompts to refine:
- "Make it more concise"
- "Add a real-world example"
- "Rewrite this for a non-technical audience"
- "Focus more on the cost comparison"
Prompt engineering is a skill that improves with practice. The more you use ChatGPT, the better you'll get at crafting prompts that produce exactly what you need.
Key Takeaways
- •Be specific — vague prompts produce vague answers
- •Provide context about audience, tone, length, and purpose
- •Use examples (few-shot prompting) to show the desired output format
- •Assign roles and specify output format for more tailored responses
- •Iterate: refine responses with follow-up prompts
Progress is kept in this browser only.