Module 2: Concepts - Basic Prompt Engineering
A **prompt** is the instruction, question, or input you give to an AI system to generate a specific output.
Module 2: Concepts - Basic Prompt Engineering
1. What is a Prompt?
Definition
A prompt is the instruction, question, or input you give to an AI system to generate a specific output.
Think of it as:
- A request to an assistant
- Instructions to a tool
- A conversation starter
- A creative brief
Why Prompts Matter
The quality of your prompt directly affects the quality of the AI's response.
Analogy:
Asking AI is like asking a very knowledgeable person for help. If you ask vaguely, you get vague answers. If you're specific and clear, you get useful responses.
Simple Example
❌ Bad Prompt: "Write about dogs"
✅ Good Prompt: "Write a 200-word article explaining why dogs make good pets for families with young children"
Difference:
- Specific topic (dogs as family pets)
- Clear audience (families with young children)
- Defined length (200 words)
- Clear format (article)
2. Types of Text Prompts
2.1 Content Creation Prompts
Purpose: Generate new content from scratch
Examples:
- "Write a professional email declining a meeting invitation"
- "Create a social media post announcing a new product launch"
- "Draft a blog post introduction about sustainable living"
Key elements:
- What to create (email, post, article)
- Topic or subject
- Tone (professional, casual, friendly)
- Length (if relevant)
2.2 Summarization Prompts
Purpose: Condense long content into shorter form
Examples:
- "Summarize this article in 3 bullet points"
- "Provide a one-paragraph summary of this research paper"
- "Extract the key takeaways from this meeting transcript"
Key elements:
- What to summarize
- Desired length
- Format (bullets, paragraph, etc.)
- Focus (main points, action items, etc.)
2.3 Transformation Prompts
Purpose: Change content from one form to another
Examples:
- "Rewrite this email in a more formal tone"
- "Convert these bullet points into a paragraph"
- "Translate this text from English to Spanish"
- "Simplify this technical explanation for a 10-year-old"
Key elements:
- Original content
- Desired transformation
- Target audience or style
2.4 Ideation Prompts
Purpose: Generate ideas, brainstorm, explore possibilities
Examples:
- "Give me 10 blog post ideas about healthy eating"
- "Suggest creative names for a coffee shop"
- "What are some ways to improve team communication?"
Key elements:
- Topic or area
- Number of ideas
- Any constraints or preferences
2.5 Question & Answer Prompts
Purpose: Get information, explanations, or clarifications
Examples:
- "What is photosynthesis? Explain in simple terms"
- "How do I fix a leaky faucet?"
- "What's the difference between HTTP and HTTPS?"
Key elements:
- Clear question
- Desired depth of answer
- Preferred explanation style
3. Elements of an Effective Prompt
3.1 Clarity
Be clear about what you want
❌ Unclear: "Tell me about marketing"
✅ Clear: "Explain the difference between digital marketing and traditional marketing"
3.2 Specificity
Provide specific details
❌ Vague: "Write a story"
✅ Specific: "Write a 300-word mystery story about a missing cat, set in a small town"
3.3 Context
Give relevant background information
❌ No context: "Write an email to John"
✅ With context: "Write a professional email to John, my colleague, thanking him for his help with the presentation yesterday"
3.4 Format
Specify the desired output format
❌ No format: "Give me information about exercise"
✅ With format: "Create a bullet-point list of 5 benefits of regular exercise"
3.5 Tone/Style
Indicate the desired tone
❌ No tone: "Write about climate change"
✅ With tone: "Write an optimistic, encouraging article about individual actions that can help combat climate change"
3.6 Length
Specify desired length when relevant
❌ No length: "Summarize this article"
✅ With length: "Summarize this article in exactly 3 sentences"
4. Prompt Structure Template
Basic Template
[Role/Persona] + [Task] + [Context] + [Format] + [Tone] + [Constraints]
Example Breakdown
Prompt: "Act as a career counselor. Write a 200-word motivational message for someone changing careers at age 40. Use an encouraging and supportive tone. Format it as a letter."
- Role: Career counselor
- Task: Write motivational message
- Context: Career change at age 40
- Format: Letter
- Tone: Encouraging and supportive
- Constraints: 200 words
5. Text Prompting Use Cases
5.1 Professional Writing
Email Writing
Write a professional email to my manager requesting time off for a family event next month. Keep it brief and polite.
Report Writing
Create an executive summary of this quarterly sales data. Focus on key trends and actionable insights. Keep it under 250 words.
Proposal Writing
Draft a project proposal for implementing a new customer feedback system. Include problem statement, proposed solution, and expected benefits.
5.2 Creative Writing
Story Writing
Write a short story (500 words) about a robot learning to paint. Make it heartwarming and suitable for children.
Poetry
Write a haiku about autumn leaves
Dialogue
Write a conversation between two friends discussing their favorite books. Make it natural and engaging.
5.3 Educational Content
Explanations
Explain quantum computing to a high school student using everyday analogies. Keep it under 300 words.
Study Guides
Create a study guide for the American Revolution covering key events, important figures, and outcomes. Use bullet points.
Quiz Questions
Generate 5 multiple-choice questions about photosynthesis for a middle school science class.
5.4 Business Content
Marketing Copy
Write a compelling product description for eco-friendly water bottles. Highlight sustainability and quality. Target environmentally conscious consumers.
Social Media
Create 3 engaging Instagram captions for a bakery's new cupcake flavor. Use a fun, friendly tone and include relevant hashtags.
Presentations
Create an outline for a 10-minute presentation on workplace diversity. Include key points and suggested talking points.
6. Image Prompting Basics
6.1 What is Image Prompting?
Describing in text what you want an AI to generate as an image.
Tools: DALL-E, Midjourney, Stable Diffusion, Canva AI
6.2 Key Elements of Image Prompts
-
Subject: What is in the image?
- "A golden retriever"
- "A futuristic city"
- "A bowl of fruit"
-
Style: What artistic style?
- "Photorealistic"
- "Watercolor painting"
- "Digital art"
- "Cartoon style"
-
Details: Specific characteristics
- "Wearing a red collar"
- "At sunset"
- "With neon lights"
-
Composition: How is it arranged?
- "Close-up portrait"
- "Wide landscape view"
- "Bird's eye view"
-
Lighting: What kind of lighting?
- "Soft natural light"
- "Dramatic shadows"
- "Golden hour lighting"
-
Mood: What feeling?
- "Peaceful and calm"
- "Energetic and vibrant"
- "Dark and mysterious"
6.3 Image Prompt Examples
Basic Prompt:
A cat sitting on a windowsill
Improved Prompt:
A fluffy orange cat sitting on a wooden windowsill, looking outside at falling snow, soft natural lighting, cozy atmosphere, photorealistic style
Creative Prompt:
A steampunk-style coffee shop interior, brass and copper details, vintage furniture, warm Edison bulb lighting, customers reading books, detailed digital art
Professional Prompt:
Modern minimalist office space, clean lines, natural wood desk, large windows with city view, green plants, bright daylight, architectural photography style
6.4 Image Transformation Prompts
Editing Existing Images:
- "Change the background to a beach scene"
- "Make the image black and white"
- "Add a sunset sky"
- "Remove the person in the background"
Style Transfer:
- "Convert this photo to look like a Van Gogh painting"
- "Make this image look like a vintage 1950s photograph"
7. Video Prompting Basics
7.1 What is Video Prompting?
Describing what you want in a video for AI to generate or edit.
Tools: Runway, Pika, Sora (when available)
Current Capabilities (as of 2026):
- Short clips (few seconds)
- Animations
- Video editing
- Subtitle generation
- Avatar creation
7.2 Video Prompt Elements
- Scene Description: What happens?
- Duration: How long?
- Style: Animation, realistic, etc.
- Movement: Camera angles, motion
- Audio: Music, voiceover, sound effects
7.3 Video Prompt Examples
Simple Animation:
A 5-second animation of a paper airplane flying through clouds, smooth motion, bright blue sky, cheerful mood
Product Demo:
10-second video showing a smartphone rotating 360 degrees, clean white background, professional product photography style
Subtitle Generation:
Add accurate subtitles to this video lecture, white text with black background, positioned at bottom center
Avatar Video:
Create a professional avatar delivering this script about company values. Business casual attire, office background, friendly and confident tone.
8. Common Prompting Mistakes
Mistake 1: Being Too Vague
❌ Bad: "Write something about health"
✅ Good: "Write a 300-word blog post about the benefits of drinking water, targeted at busy professionals"
Why it matters: AI needs direction to be useful
Mistake 2: Being Too Complex
❌ Bad: "Write a comprehensive, multi-faceted analysis of the socioeconomic implications of artificial intelligence on global labor markets, considering historical precedents, current trends, future projections, ethical considerations, policy recommendations, and potential mitigation strategies across various sectors and demographics"
✅ Good: "Explain how AI might affect jobs in the next 10 years. Include both risks and opportunities. Keep it under 500 words."
Why it matters: Simpler prompts often get better results
Mistake 3: Missing Context
❌ Bad: "Write an email to Sarah"
✅ Good: "Write a professional email to Sarah, my project manager, updating her on the status of the website redesign project. Mention that we're on track for the March 15 deadline."
Why it matters: AI can't read your mind
Mistake 4: No Format Specification
❌ Bad: "Tell me about renewable energy"
✅ Good: "Create a bullet-point list of 5 types of renewable energy with a one-sentence description of each"
Why it matters: Format affects usability
Mistake 5: Wrong Expectations
❌ Bad: Expecting AI to access real-time data or personal information it doesn't have
✅ Good: Providing necessary information in the prompt
Why it matters: AI has limitations
9. Iterating on Prompts
The Iteration Process
- Start with a basic prompt
- Review the output
- Identify what's missing or wrong
- Refine the prompt
- Try again
- Repeat until satisfied
Example Iteration
Attempt 1:
Write about coffee
Output: Generic, unfocused
Attempt 2:
Write about the health benefits of coffee
Output: Better, but too long and technical
Attempt 3:
Write a 200-word article about 3 health benefits of coffee for a general audience. Use simple language and a friendly tone.
Output: Much better!
10. Prompt Best Practices
✅ Do's
- Be specific about what you want
- Provide context when relevant
- Specify format (bullets, paragraph, etc.)
- Indicate tone (formal, casual, etc.)
- Set length when it matters
- Iterate if first result isn't perfect
- Give examples when helpful
- Use clear language
❌ Don'ts
- Don't be vague or overly general
- Don't assume AI knows context you haven't provided
- Don't make prompts unnecessarily complex
- Don't expect perfection on first try
- Don't share sensitive information
- Don't trust output blindly
- Don't give up after one attempt
Key Takeaways
- ✅ A prompt is your instruction to AI—quality in, quality out
- ✅ Good prompts are clear, specific, and contextual
- ✅ Include: task, format, tone, length, and any constraints
- ✅ Different tasks need different prompt types
- ✅ Image prompts need: subject, style, details, composition, lighting, mood
- ✅ Video prompting is emerging but has current limitations
- ✅ Iteration is normal—refine prompts based on results
- ✅ Common mistakes: too vague, too complex, missing context
Reflection Questions
- What makes a prompt effective?
- How would you improve a vague prompt?
- What's the difference between a prompt for text vs. a prompt for images?
- When should you iterate on a prompt?
Related Documents
Prompts
<img width="395" alt="prompts.chat" src="https://github.com/user-attachments/assets/e0d0e32d-d2ce-4459-9f37-e951d9f4f5de" />
Daily Agent Tasks Framework
**Your Daily System for Working with Claude and Codex**
VPM Package Template
Starter for making Packages, including automation for building and publishing them.
Script Kit Guide
<!-- value: https://github.com/johnlindquist/kit/blob/main/GUIDE.md -->