AI Prompt Engineering Mastery

Transform your AI interactions. Master prompt engineering with professional-grade tools and interactive learning.

View the Project on GitHub ElaMCB/AI-Prompt-Engineering

Foundations Lab Solutions & Examples

Challenge #1 Solutions

Broken Prompt #1 - SOLUTION

Original: “Write me a blog post about productivity”

Improved:

You're a productivity expert writing for overwhelmed remote workers who struggle with work-life balance. Write a 1200-word blog post titled "5 Boundaries That Will Save Your Sanity When Working From Home."

Target audience: Remote employees working 50+ hours per week, feeling burned out.

Structure:
- Hook: Start with a relatable scenario about checking emails at 10 PM
- 5 specific boundaries with actionable implementation steps
- Real examples for each boundary
- Conclusion with a 7-day challenge

Tone: Empathetic but direct, like a supportive colleague who's been there.

Include: Specific time-blocking techniques, communication scripts for setting boundaries with managers, and tools/apps that help enforce boundaries.

Broken Prompt #2 - SOLUTION

Original: “Help me with this Python code”

Improved:

You're a senior Python developer helping a junior developer. I'm building a web scraper for e-commerce prices but getting inconsistent results. Here's my current code:

[Include actual code snippet]

Problems I'm facing:
1. Sometimes gets blocked by anti-bot measures
2. Parsing fails on certain product pages
3. Takes too long to scrape 100+ products

My experience: 6 months Python, comfortable with basics but new to web scraping.

Please provide:
- Specific fixes for each problem
- Code improvements with explanations
- Best practices I should follow
- Recommended libraries for this use case

Focus on reliability and speed optimization.

Broken Prompt #3 - SOLUTION

Original: “Give me a marketing strategy”

Improved:

You're a marketing consultant for B2B SaaS companies. Create a 90-day marketing strategy for my project management tool targeting construction companies with 20-200 employees.

Current situation:
- 6 months old, 50 paying customers
- $15k MRR, $99/month pricing
- No dedicated marketing team (just me, the founder)
- $5k/month marketing budget

Target audience: Construction project managers frustrated with Excel spreadsheets and paper-based tracking.

Deliverables needed:
1. Channel prioritization with budget allocation
2. Content calendar for first 30 days
3. Lead generation tactics specific to construction industry
4. Metrics to track and success benchmarks
5. Quick wins I can implement this week

Focus on cost-effective strategies that don't require a marketing team.

CLEAR Framework Examples

Example 1: Email Marketing

**Context:** You're a conversion copywriter specializing in SaaS email sequences.

**Length:** Write 5 emails, each 150-200 words.

**Examples:** Use the problem-agitation-solution framework. Start each email with a specific pain point.

**Audience:** Small business owners who signed up for a free trial of accounting software but haven't activated their account.

**Requirements:** 
- Include specific feature benefits, not just features
- Add social proof in emails 2 and 4
- Clear CTA in each email
- Maintain helpful tone, not pushy
- Address common objections about switching from current solution

Example 2: Technical Documentation

**Context:** You're a technical writer creating developer documentation.

**Length:** 2000-word comprehensive guide with code examples.

**Examples:** Include step-by-step tutorials, common error scenarios, and troubleshooting sections.

**Audience:** Frontend developers integrating a payment API for the first time, intermediate JavaScript skills.

**Requirements:**
- Start with authentication setup
- Include complete code examples for common use cases
- Explain error codes and how to handle them
- Provide testing strategies
- Link to relevant resources
- Use clear headings and bullet points for scanability

Foundations Lab Success Metrics

You’ve mastered Foundations Lab if you can:

Red flags that you need more practice: