AI Tutorials by AI4Planet · Tutorial #1

Prompt Engineering — Complete Guide

From absolute beginner to advanced — interactive examples, a live prompt builder, and 50 ready-to-use prompts.

8
Techniques
50
Prompts
5
Elements
25m
Read
ChatGPTClaude AIGeminiNo coding neededBeginner to Advanced
1

What is Prompt Engineering?

The basics — no technical background needed

Imagine hiring a brilliant assistant who can write, code, research, and analyse — but only follows your instructions exactly as you give them. If you say “write something about dogs,” you might get a random poem. But if you say “write a 200-word blog intro about Labrador retrievers for first-time dog owners, in a warm and friendly tone,” you get exactly what you needed.

That difference — between a vague instruction and a precise one — is what prompt engineering is all about.

💡
Simple definitionPrompt engineering is the skill of writing clear, structured instructions for AI so you consistently get high-quality, accurate, and useful results.

Weak vs. Strong Prompts

Weak PromptStrong Prompt
“Write about climate change”“Write a 300-word explainer on how climate change affects India’s monsoon season, aimed at high school students.”
“Translate this”“Translate the following paragraph into formal Hindi, keeping all technical terms in English.”
“Help me with my email”“Rewrite this email to be more professional and concise. It’s going to a senior manager I’ve never met.”
🎯
Key insightThe AI is not bad at its job — most of the time, the prompt is bad. When you get a generic or wrong answer, the fix is almost always in how you asked the question.

Why learn prompt engineering?

✅ Save time — right answer on the first try
✅ Get professional-quality outputs consistently
✅ Use AI tools better than 90% of users
✅ Unlock capabilities most users never discover
2

The 5 Core Elements of a Great Prompt

Click each element to see examples

Every powerful prompt has some combination of these five elements. You do not always need all five, but knowing them gives you a reliable framework every time.

🎯
Task
What to do
📋
Context
Background
📐
Format
Structure
🎨
Tone
Voice
🚫
Constraints
Rules
🔧 Interactive Prompt Builder

Fill in the fields below to build a strong prompt.

3

8 Prompt Engineering Techniques

Click any card to see a real example

Beginner
Technique 01
Zero-Shot Prompting
Give a task with no examples
Beginner
Technique 02
Few-Shot Prompting
Teach by showing 2–3 examples
Intermediate
Technique 03
Chain-of-Thought
Ask AI to reason step by step
Beginner
Technique 04
Role Prompting
Assign an expert persona
Beginner
Technique 05
Instruction + Example
Combine instructions with sample output
Intermediate
Technique 06
Iterative Refinement
Refine AI output over multiple turns
Beginner
Technique 07
Negative Prompting
Tell AI what NOT to do
Intermediate
Technique 08
Structured Output
Request output as table, JSON, markdown
4

Advanced Techniques

Tree of Thought, System Prompting, ReAct

PrerequisiteGet comfortable with the 8 basic techniques above before attempting these.

Tree of Thought (ToT)

An extension of Chain-of-Thought. Ask the AI to explore multiple approaches, evaluate each, and choose the best.

Example
"Generate 3 strategies to increase user engagement. Explore the merits and drawbacks of each, then recommend the best one for a small team with a limited budget."

System Prompting

The overarching instruction given to AI before the conversation starts. Used in Claude Projects, the OpenAI API, and other platforms.

System Prompt
"You are a professional content editor. Review articles and provide feedback on clarity, structure, accuracy, and SEO. Format as: Strengths | Areas to Improve | Suggested Rewrite."

ReAct Prompting (Reason + Act)

Ask AI to alternate between reasoning (thinking) and acting (taking a step toward the solution).

Example
"Plan a 4-week social media campaign. For each week, first think about the goal and theme (Reason), then list the specific posts and actions to take (Act)."
5

7 Common Mistakes to Avoid

Fix these to immediately improve your results

6

50 Best Prompts You Can Use Today

Filter, search, and copy with one click

7

Test Your Knowledge

5 quick questions

8

Frequently Asked Questions

Quick answers about prompt engineering

✅ Copied!
Scroll to Top