Prompt Engineering: How to Talk to AI
Learn how to write better prompts so AI tools like ChatGPT give you more useful answers.
What Is Prompt Engineering?
Think of talking to AI like talking to a new coworker. If you're vague, they'll guess wrong. If you're clear, they'll get it right. Prompt engineering is the skill of giving AI clear, specific instructions so it can actually help you.
You don't need to be a programmer. You just need to learn a few tricks — like how to ask, what to include, and what to avoid. The difference between a good prompt and a bad one is like the difference between saying "make me coffee" and saying "make me a strong latte with oat milk, no sugar."
Vague Prompt
- ✗ "Write about dogs"
- ✗ "Help me"
- ✗ "Make it better"
- ✗ "Write code"
Clear Prompt
- ✓ "Write a 200-word article about training golden retrievers for first-time owners"
- ✓ "Help me write a cover letter for a software developer job at Shopify"
- ✓ "Rewrite this paragraph to be more concise and professional"
- ✓ "Write a Python function that reads a CSV and returns the average of column 3"
Why This Skill Matters
AI tools are becoming part of daily life — for work, school, and personal projects. The better you are at talking to them, the more useful they become. A great prompt can save you 30 minutes of back-and-forth. A bad one wastes your time and gives you junk.
Key Insight
Most people give up on AI too quickly because they don't know how to ask properly. They say "ChatGPT doesn't work for me" — when really they just haven't learned to be specific yet. This one skill unlocks everything else.
The Three Keys to Great Prompts
Good prompts have three ingredients: what you want, who it's for, and how you want it. Master these and you can get useful output almost every time.
Be Specific
Instead of "write an email," try "write a follow-up email to a job interview I had yesterday, thanking them and asking about next steps." Specific requests get specific answers.
Set the Role
Tell the AI who to act as. "Act as a professional resume writer" or "Pretend you're explaining this to a 10-year-old." The role changes how it explains things.
Give Format
Tell it how you want the answer: bullet points, code, a table, 500 words, a tweet. Without a format, AI defaults to long paragraphs — which isn't always what you need.
Weak Prompt vs Strong Prompt
Here is the same request, written two ways. The weak version is vague. The strong version gets a useful result.
Write me a Python script
Write a Python script that: - Reads a CSV file called "sales.csv" - Calculates total revenue from the "amount" column - Prints the top 5 highest-selling products - Handles missing values gracefully Use only built-in libraries (no pandas)
Pro Tip
Always start with the strongest version of your prompt. It is faster to get it right the first time than to go back and forth adding details. Think of it like giving directions — "turn left then right" beats just "go that way."
Knowledge Check
Test what you learned about writing better prompts.
3 Questions
What are the three key elements of a good prompt?
Why is "act as a..." helpful in a prompt?
What should you do if the AI gives you a bad answer?