Master Prompt Engineering.
From Zero to Job-Ready.
Prompt engineering is the fastest growing skill in tech. This course teaches you to communicate with AI systems at a professional level — turning vague requests into powerful, reliable results.
What You'll Learn
Prerequisites
None. You only need curiosity and access to any AI chatbot (ChatGPT, Claude, Gemini — all work). We'll build everything from the ground up.
Each lesson includes plain explanations, real-world examples, before/after prompt comparisons, and a quick knowledge check. Try every example yourself — active practice is how this sticks.
A prompt is any text you send to an AI model. Prompt engineering is the skill of crafting those prompts to get the exact output you want — consistently, efficiently, and at professional quality.
Think of it like this: an AI model is an incredibly powerful tool, but like any tool, its output depends entirely on how you use it. A saw in the hands of someone who doesn't understand it makes a jagged cut. The same saw in the hands of a craftsperson makes clean, precise cuts.
The Skill Gap Is Real
Most people use AI like this:
A prompt engineer approaches the same task differently:
Why This Skill Matters Now
| Year | What Changed | Impact on Prompt Engineering |
|---|---|---|
| 2022 | ChatGPT launches | Prompt engineering emerges as a concept |
| 2023 | GPT-4, Claude 2, Gemini launch | Job listings for "Prompt Engineers" surge 500% |
| 2024 | AI embedded in every SaaS tool | Skill becomes table stakes for knowledge workers |
| 2025+ | AI agents and multimodal AI become common | Advanced prompt engineering drives entire workflows |
A Large Language Model (LLM) is trained on billions of text documents from the internet. During training, it learns to predict: "given this text, what word comes next?" — over and over, billions of times, until it develops a deep statistical model of language and knowledge.
An LLM is a very sophisticated text-completion machine. It doesn't "know" things the way you do — it predicts what a knowledgeable person would write given your prompt. Your job as a prompt engineer is to set up the context so that the "knowledgeable person" it's imitating is exactly the expert you need.
Tokens: The Basic Unit
LLMs don't read words — they read tokens. A token is roughly ¾ of a word. "marketing" is 1 token. "unbelievable" might be 2–3. This matters because:
- Models have a context window — a maximum number of tokens they can process at once (GPT-4: ~128k, Claude 3: ~200k)
- API pricing is per token, so efficient prompts save money
- Very long prompts can cause the model to "forget" early instructions
Temperature & Randomness
When generating each token, the model picks from a probability distribution. Temperature controls how random that selection is:
| Temperature | Behavior | Best For |
|---|---|---|
| 0.0 | Always picks the most likely token | Factual Q&A, data extraction, code |
| 0.3–0.7 | Mostly predictable, slight variation | Business writing, summaries |
| 0.8–1.0 | Creative and varied | Brainstorming, storytelling, marketing copy |
| 1.5+ | Highly unpredictable | Experimental/artistic (rarely useful) |
Why Context Matters So Much
The model has no memory between conversations (unless given one). Every message you send is processed as a fresh context window. This means:
Everything the model needs to give you a great answer must exist in your prompt. It cannot access the internet (unless tools are enabled), remember your last conversation, or infer what you "really meant." Give it everything it needs upfront.
Hallucinations & Why They Happen
LLMs sometimes confidently state incorrect information. This is called a hallucination. It happens because the model is always predicting plausible-sounding text — it can't distinguish between "I know this" and "this sounds right." Your prompts can reduce hallucination by:
- Asking the model to cite its reasoning
- Providing source documents and asking it to only use those
- Instructing it to say "I don't know" when uncertain
- Setting temperature low for factual tasks
Professional prompts aren't magic — they're built from a predictable set of components. Once you know these, you'll be able to reverse-engineer any great prompt and build your own from scratch.
The Six Components
| # | Component | What It Does | Required? |
|---|---|---|---|
| 1 | Role / Persona | Sets the AI's expertise and voice | Highly recommended |
| 2 | Task | The core thing you want done | Always |
| 3 | Context | Background the AI needs to do it well | Usually |
| 4 | Format | How the output should be structured | Often |
| 5 | Constraints | Rules, limits, things to avoid | Situational |
| 6 | Examples | Samples of what good looks like | For precision tasks |
Before & After: See the Difference
Building Your First Professional Prompt
[ROLE] You are a senior UX researcher at a fintech startup. [TASK] Write a user interview script for testing our new expense-tracking feature. [CONTEXT] Target users: freelancers aged 28–45 who currently use spreadsheets. The feature lets users photo-scan receipts, auto-categorize them, and set monthly budgets. We've had 3 failed launches in this space — users found previous tools too complex. [FORMAT] - Opening (2 min): rapport building - Core questions (15 min): 8–10 open-ended questions - Usability tasks (10 min): 3 specific tasks - Closing (3 min): final impressions Use bold headers. Questions numbered within each section. [CONSTRAINTS] Avoid leading questions. Do not mention competitor products by name. All questions should be open-ended (no yes/no answers).
A marketing manager needs Instagram captions for a skincare brand launch. Here's how they'd apply the anatomy:
You are a social media strategist specializing in beauty and wellness brands. Write 5 Instagram captions for the launch of "Lumina Glow Serum" by Aura Skin. The product: a vitamin C + hyaluronic acid serum, $68, launching Feb 14th. Audience: women 25–38, interested in clean beauty, follow accounts like @glossier. Format: Each caption should be 50–80 words, include 3–5 relevant hashtags, and end with a call to action (link in bio or swipe up). Vary the tone: 2 emotional/aspirational, 2 educational, 1 playful. Do not use the word "luxury." Avoid generic phrases like "glow up" or "self-care."
Instead of building from scratch every time, use a framework as a scaffold. These are industry-standard structures used by prompt engineers at AI companies, agencies, and in-house teams.
Framework in Action: COSTAR Example
Context: We're an online coding bootcamp, "LaunchCode." We have a list of 12,000 subscribers who signed up for our free Python tutorial but haven't enrolled in a paid course. It's been 30 days since they finished the tutorial. Objective: Write a re-engagement email to get them to start a free trial of our "Python to Production" course ($297 after 7 days free). Style: Conversational and personal, like an email from a mentor — not a marketing blast. No emojis. Short paragraphs. Tone: Warm, encouraging. Acknowledge they might be busy or unsure. No pressure or countdown timers. Audience: Beginner developers, mostly 24–40, working full-time jobs. They want to switch careers but feel overwhelmed. Response: One email, subject line + body. Under 200 words. Include a single CTA: a text link (not a button) to start the free trial.
When you assign a role to an AI, you're not just changing its tone — you're activating a specific cluster of knowledge, vocabulary, reasoning patterns, and priorities. A prompt starting "You are a tax attorney" will produce fundamentally different output than "You are a financial blogger" — even for the same question.
How to Write Great Roles
Bad roles are vague. Good roles are specific, contextual, and include implicit constraints.
The Role Layering Technique
Stack multiple role dimensions for maximum precision:
You are [job title] with [years] of experience in [specific niche]. You've worked at [reference company/type]. Your expertise is specifically in [sub-skill]. You are known for [distinctive trait — e.g., "making complex topics accessible" or "being ruthlessly concise"]. // Example: You are a senior product manager with 10 years of experience in B2B SaaS. You've worked at Salesforce and two early-stage startups. Your expertise is specifically in reducing churn through onboarding redesigns. You are known for data-driven recommendations backed by user research.
Real-World Role Examples
| Task | Effective Role |
|---|---|
| Legal contract review | "You are a contract attorney specializing in SaaS vendor agreements. You are reviewing this on behalf of the buyer." |
| Python code review | "You are a senior Python engineer who cares deeply about code readability and will fail a PR that lacks type hints or docstrings." |
| Job interview prep | "You are a technical recruiter at a FAANG company who has interviewed 500+ software engineers. Be demanding." |
| Financial analysis | "You are a CFO at a Series B startup who thinks in unit economics and is skeptical of vanity metrics." |
| Customer support | "You are a customer success manager at Stripe who resolves billing issues with empathy and efficiency. You never escalate without trying at least two solutions first." |
Assign a critical role to stress-test your own work. "You are a skeptical venture capitalist who has seen 5,000 pitches and immediately spots weak assumptions. Review my pitch deck and list every red flag." This gives you honest feedback that a supportive prompt never would.
Context is the difference between a generic answer and a genuinely useful one. Every piece of relevant information you provide dramatically narrows the solution space — and narrows it toward the right answer.
The Context Pyramid
Think of context in layers, from most to least important:
Managing Multi-Turn Conversations
Most professional use cases involve back-and-forth conversations, not single prompts. Treat each conversation like a project:
// TURN 1: Set the stage "We're going to work on [project]. Here's all the context you need: [context block]. Do not produce any output yet. Just confirm you understand the brief." // TURN 2: First deliverable "Now write [first component]. Focus only on this piece." // TURN 3: Refinement "Good. Now revise the second paragraph — the current version is too technical for the audience we defined. Replace all jargon with plain language." // TURN N: Keep context alive "Keeping everything we've established in mind, now create [next piece]."
The Context Document Technique
For recurring tasks, create a reusable "context block" — a brief document you paste at the start of relevant conversations:
## COMPANY CONTEXT (paste at start of all marketing prompts)
Company: Northwave Analytics
Product: Real-time social listening dashboard
Pricing: $149/mo (Starter) | $399/mo (Pro) | Custom (Enterprise)
Target customer: Marketing managers at B2B tech companies, 50–500 employees
Core differentiator: 12-second data refresh vs industry-standard 15 minutes
Brand voice: Confident, data-driven, direct. No buzzwords. No emojis.
Competitors we're aware of: Brandwatch, Sprout Social, Mention
Things we never say: "game-changing," "revolutionary," "best-in-class"
Current campaign: Q3 focus on reducing churn, not new acquisition
Professional prompt engineers don't just get good content — they get content in the exact format they can immediately use. Format control is what makes AI output production-ready.
Output Format Options
Requesting JSON Output
Extract the key information from this job posting and return it as a JSON object.
Use exactly this structure:
{
"job_title": "",
"company_name": "",
"location": "",
"remote": true/false,
"salary_range": { "min": 0, "max": 0, "currency": "" },
"required_skills": [],
"years_experience": 0,
"seniority_level": "junior|mid|senior|staff",
"apply_url": ""
}
Return only the JSON. No explanation. No markdown code blocks.
Job posting: [PASTE JOB DESCRIPTION HERE]
Length & Density Control
| Instruction | Effect |
|---|---|
| "Under 100 words" | Forces ruthless brevity |
| "Use only bullet points" | Prevents rambling prose |
| "No preamble — go straight to the answer" | Removes "Certainly! Here is..." |
| "Write at an 8th-grade reading level" | Controls vocabulary complexity |
| "Use short paragraphs of 1–3 sentences" | Improves readability/scannability |
| "Do not use the word 'leverage' or 'utilize'" | Enforces vocabulary constraints |
LLMs naturally want to agree with you and start responses with validation. Stop it cold: add "Do not start your response with a compliment or acknowledgment. Go directly to the output." This alone makes AI output dramatically more usable.
Chain-of-Thought (CoT) prompting is one of the most powerful techniques discovered in AI research. By instructing a model to "think out loud" before giving an answer, you activate its reasoning capabilities and dramatically reduce errors on logic, math, and multi-step tasks.
When an LLM generates its reasoning token-by-token, each step becomes context for the next step. This mirrors how humans solve problems by writing them out — the act of articulation improves accuracy.
The Basic Trigger Phrase
Simply adding "Let's think through this step by step" or "Think step-by-step before answering" to the end of a prompt activates chain-of-thought reasoning. Research from Google Brain found this simple addition improved accuracy on math word problems by up to 40%.
Advanced CoT: Structured Reasoning
You are a senior business analyst. Analyze whether we should expand into the German market. Think through this in the following order: 1. Market Assessment: Size, growth rate, competitive landscape 2. Our Readiness: What we'd need (localization, legal, support) 3. Risk Analysis: Top 3 risks and their likelihood 4. Financial Projection: Break-even timeline estimate 5. Recommendation: Go/No-go with your reasoning Show your reasoning in each section before giving conclusions. Company context: [INSERT COMPANY DETAILS]
Zero-Shot CoT vs Few-Shot CoT
| Type | How To Use | Best For |
|---|---|---|
| Zero-Shot CoT | Add "think step by step" — no examples needed | Quick reasoning tasks, math, logic |
| Few-Shot CoT | Show 1–3 examples of the reasoning process, then ask your question | Specialized domains, consistent format needed |
| Self-Consistency CoT | Generate 3–5 answers independently, pick the most common one | High-stakes decisions, reducing hallucination risk |
Few-shot prompting means giving the model examples of what you want before asking it to do the task. It's the most effective way to transfer a specific style, format, or reasoning pattern to the AI without any technical training.
Zero-Shot vs One-Shot vs Few-Shot
| Type | Examples Provided | When to Use |
|---|---|---|
| Zero-Shot | 0 (rely on instructions alone) | Common tasks, simple formats |
| One-Shot | 1 example | When you have a strong template to follow |
| Few-Shot | 2–5 examples | Stylistic tasks, classification, specialized formats |
| Many-Shot | 6+ examples | Complex classification, rare formats |
Few-Shot in Action: Brand Voice Matching
You are a copywriter learning our brand voice. Study these examples, then write a new tweet in the same style. EXAMPLE 1: Prompt: Write about our new dark mode feature Tweet: dark mode is here. your eyes can finally forgive us. EXAMPLE 2: Prompt: Write about our 99.9% uptime Tweet: 99.9% uptime. the 0.1% keeps us humble. EXAMPLE 3: Prompt: Write about onboarding being fast Tweet: you'll be live in 4 minutes. we timed it. NOW YOUR TURN: Prompt: Write about our new CSV export feature Tweet:
Few-Shot for Classification Tasks
Classify each customer review as POSITIVE, NEGATIVE, or NEUTRAL. Return only the classification label. Examples: Review: "The setup was seamless and the support team was incredible." Classification: POSITIVE Review: "It works but the UI is clunky and exports are slow." Classification: NEGATIVE Review: "Does what it says. Nothing special but gets the job done." Classification: NEUTRAL Now classify: Review: "Been using it for 3 months. Had two outages but support resolved them fast." Classification:
The model will mirror your examples — including their flaws. If your examples use passive voice, expect passive voice output. If they're all negative in sentiment, neutral inputs may skew negative. Always review your examples for unintended patterns before using them at scale.
When you use an AI feature inside a product (a chatbot on a website, an AI writing assistant, a code reviewer) — there's almost always a system prompt running behind the scenes that you can't see. Understanding and writing system prompts is the core skill of building AI-powered products.
What Is a System Prompt?
A system prompt is an instruction set provided to the AI before the user's first message. It defines the AI's persona, capabilities, constraints, and behavior for the entire conversation. Users typically can't see or override it.
{
"model": "claude-sonnet-4-20250514",
"system": "[YOUR SYSTEM PROMPT GOES HERE]",
"messages": [
{
"role": "user",
"content": "[USER MESSAGE]"
}
]
}
Anatomy of a Professional System Prompt
## Identity You are Aria, the customer support assistant for Northwave Analytics. You are helpful, efficient, and empathetic. You speak in plain English. You never use jargon unless the user uses it first. ## Capabilities You can help with: - Account and billing questions - Feature explanations - Basic troubleshooting (connectivity, login, exports) - Submitting bug reports and feature requests ## Escalation Rules If a user asks about a refund, enterprise pricing, or a bug you cannot diagnose in 2 messages, say: "I'm connecting you with our team for this — they'll follow up within 2 hours." Then set the conversation status to ESCALATE. ## Hard Rules - Never make up features that don't exist - Never promise timelines for feature releases - If you don't know an answer, say "I want to make sure I get this right — let me connect you with our team" rather than guessing - Never mention competitor products by name ## Tone Concise. No filler words. Short sentences. Get to the solution fast.
Key System Prompt Patterns
| Pattern | Example | Why It Matters |
|---|---|---|
| Capability Boundary | "You can only discuss topics related to cooking." | Prevents off-topic responses in focused apps |
| Failure Mode | "If you don't know, say 'I'm not sure — let me find out.'" | Controls hallucination behavior |
| Output Format Lock | "Always respond in this JSON structure: {}" | Ensures parseable output for downstream code |
| Persona Consistency | "Your name is Max. Never break character." | Creates consistent UX |
| Safety Rails | "Never provide medical diagnoses. Always recommend professional consultation." | Legal and safety compliance |
Great prompts aren't written — they're iterated. Every professional prompt engineer treats prompt writing like a feedback loop, not a one-shot task. This lesson teaches you the systematic process.
The Prompt Debugging Loop
1. WRITE → Draft your best prompt 2. TEST → Run it 3–5 times (outputs vary due to temperature) 3. DIAGNOSE → Identify the specific failure mode 4. HYPOTHESIZE → What instruction would fix this? 5. EDIT → Change ONE thing at a time 6. REPEAT → Until consistently good output
Common Failure Modes & Fixes
| Symptom | Root Cause | Fix |
|---|---|---|
| Output too generic | Missing context or role | Add specific audience, company, or use case details |
| Wrong format | Format not explicitly requested | Add explicit format instructions with an example structure |
| Too long / too short | No length constraint | Add exact word/paragraph count |
| Hallucinations present | No grounding or fact-check instruction | Add "only use information I've provided" + CoT |
| Ignoring key constraints | Instructions buried in long prompt | Move constraints to the top; use ALL CAPS for critical rules |
| Sycophantic opener | Default model behavior | Add "Do not begin with acknowledgment. Start directly." |
| Inconsistent results | High temperature or ambiguous instructions | Lower temperature; clarify vague terms |
A/B Testing Your Prompts
When you're building a production system, test multiple prompt variants against the same inputs:
// For each prompt variant, score on 5 criteria (1–5 scale): Accuracy: Is the information correct? Relevance: Does it address the actual need? Format: Is the output in the right structure? Tone: Does it match the target voice? Efficiency: Is it appropriately concise? // Run 5 test inputs through each variant. // Total max score: 25 points per variant. // Pick winner. Document what made it better.
RAG (Retrieval Augmented Generation) is the technique of retrieving relevant documents from a knowledge base and injecting them into your prompt before the AI responds. It's how companies build chatbots that "know" their internal docs, product manuals, or legal contracts.
How RAG Works (Simply)
USER QUESTION → "What's our refund policy for annual plans?" ↓ RETRIEVAL STEP → Search knowledge base for relevant chunks ↓ FOUND CHUNKS → [Refund Policy Doc, p.3] [Terms of Service, §7.2] ↓ INJECT INTO PROMPT: "Using ONLY the following documents, answer the question. If the answer isn't in the documents, say 'I don't have that information.' [Document 1]: Annual plan refunds are available within 30 days... [Document 2]: Enterprise customers may negotiate custom terms... Question: What's our refund policy for annual plans?"
The Grounded Prompt Pattern
This is the single most important RAG prompt pattern — it prevents hallucination by anchoring the AI to your provided sources:
You are a [ROLE] answering questions for [AUDIENCE]. Answer the following question using ONLY the information provided in the documents below. Do not use any outside knowledge. Rules: - If the answer is clearly in the documents, answer directly and cite the relevant section. - If the answer is partially in the documents, answer what you can and note what's unclear. - If the answer is NOT in the documents, respond with: "I don't have information about this in the available documents. Please contact [support channel] for help with this question." DOCUMENTS: --- [DOCUMENT 1 TITLE] [DOCUMENT 1 CONTENT] --- [DOCUMENT 2 TITLE] [DOCUMENT 2 CONTENT] --- QUESTION: [USER QUESTION]
Content Types & Templates
You are an SEO content strategist and senior writer. Write a 1,200-word blog post targeting the keyword "best project management software for small teams." Requirements: - Title: Include the target keyword naturally - Opening: Hook with a specific pain point, no generic openers - Structure: H2 headers for each section, short 2-3 sentence paragraphs - Include exactly 5 tool recommendations with a 2-sentence description each - Each recommendation: name, one key differentiator, pricing tier - Tone: Helpful and direct, like advice from a knowledgeable colleague - CTA at the end: Drive readers to a free trial signup - SEO: Use the keyword in the title, first 100 words, and 2 H2 headers - Do NOT include pricing tables (we update pricing separately) - Avoid: "game-changing," "robust," "seamless" Target audience: Operations managers and founders at companies of 5–30 people who are currently using spreadsheets or a tool they've outgrown.
You are a B2B sales development representative (SDR) who specializes in writing cold emails with above-average reply rates. Write a cold outreach email to [PROSPECT NAME], [TITLE] at [COMPANY]. We sell a data analytics platform to mid-size e-commerce brands. The prospect's company recently: [INSERT RECENT NEWS/TRIGGER EVENT] Email rules: - Subject line: Under 7 words, no clickbait, no question marks - Opening: Reference the trigger event — no generic "hope this finds you well" - Body: One clear value prop tied to their likely problem - Social proof: One sentence, reference a similar company we helped - CTA: One specific ask (15-min call, not "let me know your thoughts") - Length: Under 90 words total (not counting subject line) - No attachments, no links in first email
You are a ghostwriter for senior tech executives writing LinkedIn content. Write a LinkedIn post for a VP of Engineering sharing a lesson learned from their last product launch. The lesson: shipping fast without cutting corners on monitoring cost them 6 hours of downtime. Post requirements: - Hook: First line makes them stop scrolling — pattern interrupt or stat - No opener like "I learned something important today" - Story format: Setup → What happened → What I did → What I learned - Paragraph structure: 1-2 sentences per paragraph. White space matters. - End with a question to drive comments - Tone: Humble but authoritative. Vulnerable but professional. - 200-250 words - No hashtags in body. 3-4 hashtags at the very end only.
The Developer's Prompt Toolkit
Language: Python 3.11 Framework context: FastAPI, using Pydantic v2 models Write a function that: - Takes a list of user dictionaries with keys: id, email, created_at (ISO string) - Filters out users created more than 90 days ago - Returns a sorted list (newest first) of Pydantic User models - Handles edge cases: empty list, missing keys, invalid date formats Requirements: - Type hints on all parameters and return value - Docstring with Args, Returns, Raises sections - Unit tests using pytest for: happy path, empty input, invalid date, missing key - Do NOT use pandas — use only stdlib + pydantic
I have a bug in my [LANGUAGE] code. Here's the context: WHAT IT SHOULD DO: [Describe expected behavior] WHAT IT ACTUALLY DOES: [Describe actual behavior, include error message] ERROR OUTPUT: [PASTE FULL STACK TRACE] MY CODE: [PASTE RELEVANT CODE] WHAT I'VE TRIED: 1. [Thing you tried] 2. [Thing you tried] Please: 1. Identify the root cause 2. Explain WHY this causes the bug (not just what to change) 3. Show the fixed code 4. Flag any other issues you notice while reading it
You are a senior software engineer conducting a code review. Be thorough and direct — this is going to production. Review the following [LANGUAGE] code for: 1. Correctness: Logic bugs, off-by-one errors, edge cases not handled 2. Security: SQL injection, XSS, insecure dependencies, exposed secrets 3. Performance: N+1 queries, unnecessary loops, memory leaks 4. Maintainability: Naming, complexity, missing error handling 5. Tests: Coverage gaps, brittle tests, missing assertions For each issue found, provide: - File/line reference - Severity: CRITICAL / HIGH / MEDIUM / LOW - What's wrong (explain the risk, not just the fix) - Suggested fix with example code [PASTE CODE]
You are a data analyst specializing in customer research. Below is raw data from a 200-person customer satisfaction survey. [PASTE DATA] Analyze this data and produce: 1. Executive Summary (3-4 sentences): The single most important finding 2. Key Findings (5 bullets): Statistically notable patterns 3. Segment Breakdown: How responses differ by [customer_tier] and [company_size] 4. Verbatim Quotes: 3 most representative quotes for positive feedback, 3 for negative feedback 5. Recommended Actions: Top 3 prioritized recommendations with rationale Rules: - Only report what the data shows — do not invent trends - Flag any data quality issues you notice (gaps, outliers, inconsistencies) - Use plain language — this goes to non-technical leadership - Express confidence levels where appropriate
You are a market research analyst preparing a competitive brief. I'll paste information about 4 competitors below. Based ONLY on this information (do not add outside knowledge that may be outdated), create: 1. Comparison Table: Features, pricing, target market, key differentiators 2. Positioning Map Description: How each player positions in the market 3. Gap Analysis: What none of them do well (our opportunity) 4. Threat Assessment: Which competitor is our biggest threat and why Flag clearly if any comparison point has insufficient data. COMPETITOR DATA: [PASTE COMPETITOR RESEARCH]
An AI agent is a system where an LLM can take actions — browse the web, run code, send emails, query databases — based on a task, making decisions along the way. Prompt engineering for agents is different from prompt engineering for chat because you're programming autonomous behavior.
Key Concepts
Agent System Prompt Template
## Role You are a research assistant agent. Your job is to answer questions by searching for current information, synthesizing findings, and producing structured reports. ## Available Tools - web_search(query): Search the internet - read_url(url): Read the contents of a webpage - write_file(filename, content): Save output to a file ## Behavior Rules 1. Before taking any action, output: "PLAN: [numbered steps]" 2. After each tool use, output: "OBSERVATION: [what you found]" 3. Never hallucinate — if information isn't available via search, say so 4. Always cite your sources (URL) for factual claims 5. If a task requires more than 10 tool calls, pause and ask for guidance ## Constraints - Do not access URLs that require login - Do not save files without confirming the filename with the user - If you encounter an error twice, stop and report the issue
| Model Family | Made By | Strengths | Best For |
|---|---|---|---|
| GPT-4o / o1 / o3 | OpenAI | Broad capability, multimodal, tool use, huge ecosystem | General use, coding, vision tasks, DALL-E integration |
| Claude 3/4 Series | Anthropic | Long context (200k tokens), nuanced writing, safety, document analysis | Long documents, careful reasoning, writing quality |
| Gemini 1.5 / 2.0 | Google DeepMind | Huge context (1M tokens), Google Workspace integration, multimodal | Massive documents, Google ecosystem, video analysis |
| Llama 3 / 3.1 | Meta (Open Source) | Free, self-hostable, no data leaves your infrastructure | Privacy-sensitive apps, custom fine-tuning, cost-sensitive scale |
| Mistral / Mixtral | Mistral AI | European data compliance, efficient, open weights | EU-regulated industries, edge deployment |
Choosing the Right Model
Well-structured prompts using frameworks like COSTAR or RISEN work across all major models. The concepts you've learned in this course apply whether you're using GPT, Claude, or Gemini. Always test your prompts on your target model — behavior varies.
As a prompt engineer, you're not just a user of AI — you're a designer of AI behavior. That comes with professional responsibility. Companies are increasingly held accountable for AI outputs that cause harm, discriminate, or mislead.
Bias in AI Systems
LLMs inherit biases from their training data. As a prompt engineer, you can reduce bias through careful design:
| Bias Type | Example | Mitigation |
|---|---|---|
| Representation bias | AI consistently generates male names for leadership roles | Explicitly specify demographic diversity in outputs; audit results |
| Confirmation bias | AI agrees with your premise even when wrong | Ask for counterarguments: "What's the strongest case against this?" |
| Recency bias | AI over-weights recent events in its training data | Specify date ranges; verify facts for historical claims |
| Cultural bias | AI assumes Western cultural norms by default | Specify target region/culture explicitly in prompts |
The Prompt Engineer's Responsibility Checklist
- Disclose when content is AI-generated where required by law or platform policy
- Never use AI to generate misleading information, fake reviews, or impersonate real people
- Test AI outputs for demographic bias before deploying to users
- Build in human review for high-stakes decisions (hiring, medical, legal, financial)
- Respect copyright — AI can reproduce copyrighted content; always review outputs
- Protect user data — never include PII in prompts sent to third-party APIs without consent
- Document your prompts — treat them like code (version control, testing, review)
In regulated industries (finance, healthcare, legal, HR), AI outputs may carry liability. "The AI wrote it" is not a defense. If you're deploying AI in these contexts, involve legal counsel and always include human review in the loop before outputs affect decisions.
Roles That Hire Prompt Engineers
Dedicated roles at AI companies, tech startups, and consulting firms. Responsible for building, testing, and optimizing prompt libraries for products.
Defines AI features, writes specifications that include prompt behavior, and bridges between engineering and business teams.
Uses AI to scale content production. Builds prompt libraries, maintains brand voice guides for AI, and manages editorial review workflows.
Builds workflows using tools like Zapier, Make, n8n, or custom code to automate business processes with AI at the center.
Portfolio: What to Build
- Prompt Library: A GitHub repo with 20+ documented prompts across 5+ categories, each with example inputs/outputs. Show your before/after comparisons.
- AI-Powered Tool: A simple web app (even on Replit or CodePen) that uses the OpenAI or Anthropic API. A content generator, a resume reviewer, a classification tool.
- Case Study: Document a real problem you solved with prompt engineering. Show the iteration process: failed prompt → diagnosis → fix → result.
- System Prompt Design: Design and document a complete system prompt for a fictional product (customer support bot, writing assistant, code reviewer). Include evaluation criteria.
- Evaluation Framework: A spreadsheet or tool that scores prompt variants. Shows you think systematically, not just creatively.
Job Search Keywords
Search for these titles in addition to "Prompt Engineer": AI Specialist, LLM Engineer, AI Product Manager, Conversational AI Designer, AI Content Strategist, Generative AI Engineer, AI Automation Engineer.
You've covered every major technique in professional prompt engineering. Now it's time to synthesize everything into a single project that you can include in your portfolio.
The Capstone: Build an AI-Powered Product Feature
Choose a business domain below and design a complete AI system for it. Your deliverable is a documented prompt engineering spec — the kind you'd hand to a developer to implement.
Option A — Customer Support Bot
Design a complete support chatbot for a SaaS product of your choice. Include: system prompt, escalation logic, 10 test conversations (with expected responses), and an evaluation rubric.
Option B — Content Production Pipeline
Design a series of 5 connected prompts that take a raw topic and produce: research brief → outline → draft → edited version → social media distribution package. Document how each prompt hands off to the next.
Option C — AI Code Reviewer
Design a system prompt for an AI that does automated code reviews. Include: role definition, review criteria, severity framework, output format, and 3 example reviews (input code + expected AI output).
Deliverable Checklist
- System prompt (if applicable) with full documentation of each decision
- At least 3 prompt templates with COSTAR or RISEN frameworks applied
- 5 test cases with expected vs actual outputs
- Iteration log: at least 2 rounds of refinement with explanation
- Evaluation rubric: how you would measure "good" output
- One-page write-up: the problem, your approach, key decisions made
You're Job Ready.
You've learned the complete toolkit of professional prompt engineering — from the fundamentals of how LLMs work to advanced techniques like RAG, agents, and system prompt design. Now ship something.