Module 6 โ€ข Beginner

Writing Your First Prompt

Learn prompt engineering: clarity, context, format, and persona to get better AI responses.

๐Ÿ“Š Module Progress

Complete objectives and quizzes to unlock your badge!
0/9 Tasks Completed

๐ŸŽฏ Learning Objectives

Write clear, specific prompts โ€” Vague prompts get vague answers.
Provide context โ€” Help AI understand your level and needs.
Define output format โ€” Tables, bullet points, paragraphs โ€” ask for what you need.
Set tone/persona with system prompts โ€” Shape AI's personality.

๐Ÿ“– Theory: Anatomy of a Great Prompt

โœ๏ธ Why Prompts Matter

The quality of AI's response depends entirely on your prompt. A vague prompt gets a vague answer. A specific prompt gets a specific answer. It's that simple.

๐ŸŽฏ The 4 Pillars of Good Prompts

1. CLARITY โ€” Be Specific
โŒ Bad: "Tell me about AI."
โœ… Good: "Explain what AI agents are in 3 paragraphs, using simple analogies for a 15-year-old."



2. CONTEXT โ€” Give Background
โŒ Bad: "Translate this."
โœ… Good: "Translate this English text to Malay formally, as if for a business email: 'Dear Sir...'"



3. FORMAT โ€” Define Structure
โŒ Bad: "List some tools."
โœ… Good: "List the top 5 AI tools for students in a table with columns: Tool Name, Purpose, Pricing."



4. TONE/PERSONA โ€” Set the Voice
โŒ Bad: "Write a story."
โœ… Good: "Write a 200-word story about friendship for primary school children, using a warm and encouraging tone."

๐Ÿฅช The "Sandwich Method" for Prompt Writing

Structure your prompt like a sandwich: Top bun (context) โ†’ Meat (task) โ†’ Bottom bun (format).

๐Ÿž TOP BUN โ€” Context
"I'm a student learning about AI..."
๐Ÿฅฉ MEAT โ€” The Task
"Please explain what API keys are..."
๐Ÿž BOTTOM BUN โ€” Format
"Give your answer in 3 bullet points with examples."

๐Ÿค– System Prompts: Setting AI's Persona

A system prompt sets the AI's behavior before the conversation starts. It's like giving the AI an employee handbook.

You are JiXe, a helpful AI assistant who mixes English and Malay naturally. You are direct, have opinions, and avoid corporate speak. When explaining technical concepts, use analogies and simple language for students. Call user "bro" or "Ajim". Focus on helping with JimFit (fitness), Criticalyx (tutoring), and DJ career.
โŒ Weak Prompt
What is an API key?

Too vague. AI may give a one-sentence definition without context or examples.

โœ… Strong Prompt
I'm a beginner programmer learning about APIs. Explain what an API key is in simple terms, with a real-world analogy, and give 2 examples of when you'd need one. Format: 3 bullet points.

Clear context (beginner), format (3 bullets), expectations (analogy, examples). AI can tailor response perfectly.

๐Ÿงช Hands-On: Prompt Engineering Practice

Upgrade Your Prompts (10 minutes)

Step 1 โ€” Start with a weak prompt
Pick one of these:
โ€ข "Tell me about Python."
โ€ข "How do I lose weight?"
โ€ข "What is marketing?"

Step 2 โ€” Add CLARITY
Make it more specific. Instead of "Tell me about Python" โ†’ "Explain Python's key features for data science."

Step 3 โ€” Add CONTEXT
Who are you? "I'm a complete beginner" or "I'm a finance professional."

Step 4 โ€” Add FORMAT
"Give me a table with columns: Feature, Description, Why it matters for data science."

Step 5 โ€” Test both versions
Compare AI's response to the weak prompt vs your upgraded prompt. Notice the quality difference!

๐Ÿ“ Quiz: Prompt Engineering Basics (5 Questions)

Q1: A good prompt should be:

A
Vague and short
B
Clear, specific, and contextual
C
As long as possible

Q2: What does a system prompt do?

A
Deletes conversations
B
Sets AI behavior before chat starts
C
Increases internet speed

Q3: Which is an example of defining output format?

A
"Tell me about AI."
B
"List 5 tools in a table with columns: Name, Purpose."
C
"What is AI?"

Q4: The "Sandwich Method" includes (in order):

A
Meat, Top Bun, Bottom Bun
B
Top Bun (Context), Meat (Task), Bottom Bun (Format)

Q5: Why add context to prompts?

A
Makes AI faster
B
Gets more relevant, level-appropriate answers
C
Uses more tokens
โœ๏ธ
โœ๏ธ Prompt Newbie
Prompt Newbie

You've completed all objectives and quizzes!