PROMPT ENGINEERING
0% complete
teqvault.study — prompt engineering

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.

18
Lessons
60+
Real-World Examples
$85k+
Average Starting Salary
8hrs
Estimated Completion

What You'll Learn

🧠
How LLMs Think
Understand how models like GPT and Claude process and generate text so you can work with them, not against them.
⚙️
Proven Frameworks
COSTAR, RISEN, RTF, and more — structured approaches used by professionals at top AI companies.
💼
Real Job Skills
Build prompts for content creation, coding, research, customer support, data analysis, and more.
🚀
Advanced Techniques
Chain-of-thought, few-shot learning, RAG, agents, and system prompt engineering at the API level.

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.

💡 How This Course Works

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.

MODULE 1 / GETTING STARTED
What Is Prompt Engineering?
The discipline of communicating with AI to get reliable, high-quality results.

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:

Average User
You
write me a blog post about marketing
AI
Sure! Here's a generic 500-word blog post about marketing that says nothing specific, targets no one in particular, and could have been written by anyone for any company in any industry...

A prompt engineer approaches the same task differently:

Prompt Engineer
You
You are a senior content strategist at a B2B SaaS company. Write a 600-word blog post titled "Why Your Email List is Your Most Undervalued Marketing Asset" targeting early-stage startup founders. The tone should be direct and data-driven, like a founder talking to another founder. Include one compelling stat in the opening paragraph, three actionable takeaways in the body, and end with a CTA to join our newsletter. Avoid jargon.
AI
The result: a targeted, useful article that a real founder would actually read — and that your marketing team could publish immediately.

Why This Skill Matters Now

YearWhat ChangedImpact on Prompt Engineering
2022ChatGPT launchesPrompt engineering emerges as a concept
2023GPT-4, Claude 2, Gemini launchJob listings for "Prompt Engineers" surge 500%
2024AI embedded in every SaaS toolSkill becomes table stakes for knowledge workers
2025+AI agents and multimodal AI become commonAdvanced prompt engineering drives entire workflows
🎯Knowledge Check
Which of the following best describes prompt engineering?
MODULE 1 / GETTING STARTED
How LLMs Actually Work
You don't need a PhD — but understanding this will make you dramatically better at prompting.

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.

The Core Mental Model

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:

Temperature & Randomness

When generating each token, the model picks from a probability distribution. Temperature controls how random that selection is:

TemperatureBehaviorBest For
0.0Always picks the most likely tokenFactual Q&A, data extraction, code
0.3–0.7Mostly predictable, slight variationBusiness writing, summaries
0.8–1.0Creative and variedBrainstorming, storytelling, marketing copy
1.5+Highly unpredictableExperimental/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:

⚠️ Critical Insight

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:

🎯Knowledge Check
If you want an LLM to write creative, unpredictable marketing taglines, which temperature setting is most appropriate?
MODULE 2 / CORE SKILLS
Anatomy of a Good Prompt
The six components that separate professional prompts from amateur ones.

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

#ComponentWhat It DoesRequired?
1Role / PersonaSets the AI's expertise and voiceHighly recommended
2TaskThe core thing you want doneAlways
3ContextBackground the AI needs to do it wellUsually
4FormatHow the output should be structuredOften
5ConstraintsRules, limits, things to avoidSituational
6ExamplesSamples of what good looks likeFor precision tasks

Before & After: See the Difference

✗ Weak Prompt
Write a product description for our new headphones.
✓ Strong Prompt
You are a senior copywriter for a premium audio brand. Write a 120-word product description for "ArcFlow Pro" wireless headphones targeting music producers aged 25–40. Emphasize the 40-hour battery life, 48kHz studio-grade audio, and foldable design. Tone: confident, technical but accessible. No hyperbole. End with a single punchy sentence.

Building Your First Professional Prompt

prompt — annotated
[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).
Real World Marketing Agency — Social Media Post

A marketing manager needs Instagram captions for a skincare brand launch. Here's how they'd apply the anatomy:

prompt
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."
Prompt Frameworks
Proven templates that professionals use daily — memorize these and you'll never write a weak prompt again.

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.

COSTAR
Context · Objective · Style · Tone · Audience · Response
C
Context
Background information the AI needs. "We're a Series A SaaS startup targeting HR teams..."
O
Objective
The specific task. "Write a landing page headline and sub-headline."
S
Style
Writing style or creative direction. "Similar to Basecamp's direct, no-fluff style."
T
Tone
Emotional register. "Confident and empathetic, not salesy."
A
Audience
Who will read this. "HR directors at companies with 200–2000 employees."
R
Response
Output format. "Return 3 headline options, each with a 20-word sub-headline."
RTF
Role · Task · Format — the quickest professional framework
R
Role
Who the AI should act as. Simple and fast to set up.
T
Task
Exactly what you need done — be specific about deliverable.
F
Format
Structure, length, style of the output.
RISEN
Role · Instructions · Steps · End Goal · Narrowing — best for complex tasks
R
Role
The expert persona you're assigning.
I
Instructions
The core task with relevant details.
S
Steps
Break down the process or order of operations if sequential.
E
End Goal
What success looks like. "The output should allow a developer to begin implementation immediately."
N
Narrowing
Constraints, exclusions, scope limits. "Do not include API documentation. Limit to under 500 words."

Framework in Action: COSTAR Example

COSTAR prompt — email campaign
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.
Role & Persona Prompting
The single highest-ROI technique in prompt engineering.

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.

✗ Vague Role
You are an expert in marketing. Write ad copy for my product.
✓ Specific Role
You are a direct response copywriter with 15 years of experience writing high-converting ads for e-commerce brands. You've worked with DTC brands doing $1M–$20M in annual revenue and your copy focuses on pain points, not features.

The Role Layering Technique

Stack multiple role dimensions for maximum precision:

role layering
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

TaskEffective 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."
✦ Pro Tip: Adversarial Personas

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 & Memory
Giving the AI everything it needs — and managing conversations like a professional.

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:

🎯
Task Context
What specifically you're trying to accomplish and why. This is always essential.
👤
Audience Context
Who will use/read/receive the output. Age, expertise level, goals, pain points.
🏢
Business Context
Company type, size, industry, stage. A startup prompt differs from an enterprise prompt.
⚠️
Constraint Context
What's already been tried, what doesn't work, what's off-limits.

Managing Multi-Turn Conversations

Most professional use cases involve back-and-forth conversations, not single prompts. Treat each conversation like a project:

conversation management strategy
// 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:

context block — marketing team example
## 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
Controlling Output Format
Get exactly the structure you need — from markdown to JSON to tables.

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

📝
Markdown
Default for documentation, blogs, README files. Ask for specific heading levels, bold, bullets.
📊
JSON / XML
Essential for developers. Perfect for structured data extraction, API inputs, config files.
📋
Tables
Comparisons, feature matrices, research summaries. Specify column names explicitly.
📧
Prose Templates
Emails, reports, scripts. Use placeholders like [NAME] and [COMPANY] for reusable templates.

Requesting JSON Output

structured data extraction
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

InstructionEffect
"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
✦ Power Move: Anti-Sycophancy Instructions

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.

MODULE 3 / ADVANCED TECHNIQUES
Chain-of-Thought Prompting
Force the AI to reason step-by-step — dramatically improving accuracy on complex problems.

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.

Why It Works

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%.

✗ Without CoT
If a SaaS company has 1,200 customers, a 5% monthly churn rate, and adds 80 new customers per month, what will the customer count be in 6 months?
✓ With CoT
If a SaaS company has 1,200 customers, a 5% monthly churn rate, and adds 80 new customers per month, what will the customer count be in 6 months? Think step-by-step, showing your calculation for each month.

Advanced CoT: Structured Reasoning

structured reasoning prompt
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

TypeHow To UseBest For
Zero-Shot CoTAdd "think step by step" — no examples neededQuick reasoning tasks, math, logic
Few-Shot CoTShow 1–3 examples of the reasoning process, then ask your questionSpecialized domains, consistent format needed
Self-Consistency CoTGenerate 3–5 answers independently, pick the most common oneHigh-stakes decisions, reducing hallucination risk
Few-Shot & Zero-Shot Learning
Teach the AI your exact style with examples — no fine-tuning required.

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

TypeExamples ProvidedWhen to Use
Zero-Shot0 (rely on instructions alone)Common tasks, simple formats
One-Shot1 exampleWhen you have a strong template to follow
Few-Shot2–5 examplesStylistic tasks, classification, specialized formats
Many-Shot6+ examplesComplex classification, rare formats

Few-Shot in Action: Brand Voice Matching

few-shot — brand voice replication
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

few-shot — sentiment classification
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:
⚠️ Watch Out: Example Bias

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.

System Prompts & APIs
How professional applications are built on top of AI — and how to write the instructions that power them.

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.

api call structure
{
  "model": "claude-sonnet-4-20250514",
  "system": "[YOUR SYSTEM PROMPT GOES HERE]",
  "messages": [
    {
      "role": "user",
      "content": "[USER MESSAGE]"
    }
  ]
}

Anatomy of a Professional System Prompt

system prompt — SaaS customer support bot
## 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

PatternExampleWhy 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
Prompt Iteration & Debugging
The professional workflow: diagnose, refine, test, repeat.

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

iteration workflow
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

SymptomRoot CauseFix
Output too genericMissing context or roleAdd specific audience, company, or use case details
Wrong formatFormat not explicitly requestedAdd explicit format instructions with an example structure
Too long / too shortNo length constraintAdd exact word/paragraph count
Hallucinations presentNo grounding or fact-check instructionAdd "only use information I've provided" + CoT
Ignoring key constraintsInstructions buried in long promptMove constraints to the top; use ALL CAPS for critical rules
Sycophantic openerDefault model behaviorAdd "Do not begin with acknowledgment. Start directly."
Inconsistent resultsHigh temperature or ambiguous instructionsLower temperature; clarify vague terms

A/B Testing Your Prompts

When you're building a production system, test multiple prompt variants against the same inputs:

evaluation framework
// 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
How to give AI access to your private knowledge base — and prompt it effectively.

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)

rag pipeline — simplified
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:

grounded RAG prompt template
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]
MODULE 4 / REAL-WORLD APPLICATIONS
Content & Copywriting
Professional prompts for the most common real-world use case.

Content Types & Templates

Blog Post SEO Article — Full Production Prompt
SEO blog prompt
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.
Email Cold Outreach Email — B2B Sales
cold email prompt
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
Social Media LinkedIn Thought Leadership Post
LinkedIn post prompt
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.
Coding With AI
Prompt patterns every developer needs — from code generation to debugging.

The Developer's Prompt Toolkit

Code Generation Writing a New Function
code generation prompt
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
Debugging Diagnosing a Bug
debug prompt structure
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
Code Review Getting a Professional Review
code review prompt
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]
Data Analysis & Research
Using AI to process, interpret, and report on complex information.
Data Analysis Interpreting Survey Results
data interpretation prompt
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
Research Competitive Analysis
research synthesis prompt
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]
AI Agents & Automation
The frontier: multi-step AI systems that take actions, not just produce text.

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

🔧
Tools / Functions
Actions the agent can call: search_web(), run_python(), send_email(), query_db(). You define what tools exist and the agent decides when to use them.
🧭
Planning Prompts
Instructing the agent to create an action plan before executing. "Before taking any action, output a numbered plan. Wait for confirmation."
🔁
ReAct Pattern
Reason → Act → Observe → Repeat. The agent thinks, acts, sees what happened, then plans the next step. Most robust pattern for complex tasks.
🛡️
Safety Rails
Always build in: confirmation before irreversible actions, rate limits, scope constraints, and human-in-the-loop checkpoints.

Agent System Prompt Template

agent system prompt
## 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
MODULE 5 / JOB READINESS
The Model Landscape
Know your tools — the major AI platforms and when to use each one.
Model FamilyMade ByStrengthsBest For
GPT-4o / o1 / o3OpenAIBroad capability, multimodal, tool use, huge ecosystemGeneral use, coding, vision tasks, DALL-E integration
Claude 3/4 SeriesAnthropicLong context (200k tokens), nuanced writing, safety, document analysisLong documents, careful reasoning, writing quality
Gemini 1.5 / 2.0Google DeepMindHuge context (1M tokens), Google Workspace integration, multimodalMassive documents, Google ecosystem, video analysis
Llama 3 / 3.1Meta (Open Source)Free, self-hostable, no data leaves your infrastructurePrivacy-sensitive apps, custom fine-tuning, cost-sensitive scale
Mistral / MixtralMistral AIEuropean data compliance, efficient, open weightsEU-regulated industries, edge deployment

Choosing the Right Model

💰
Budget-Sensitive
Use GPT-4o-mini, Claude Haiku, or Gemini Flash for high-volume tasks. Save the expensive models for high-stakes outputs.
🔒
Privacy Required
Use self-hosted Llama or Mistral when data cannot leave your infrastructure. Enterprise API tiers of OpenAI/Anthropic also offer no-training agreements.
📄
Long Documents
Claude 3.7 (200k) or Gemini 1.5 Pro (1M) for processing entire codebases, legal contracts, or research archives.
🖼️
Vision / Multimodal
GPT-4o or Gemini for image analysis, diagram reading, screenshot processing. Claude also handles images and PDFs natively.
💡 Prompt Portability

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.

Ethics, Safety & Bias
Professional responsibility in the age of AI — what every practitioner needs to know.

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 TypeExampleMitigation
Representation biasAI consistently generates male names for leadership rolesExplicitly specify demographic diversity in outputs; audit results
Confirmation biasAI agrees with your premise even when wrongAsk for counterarguments: "What's the strongest case against this?"
Recency biasAI over-weights recent events in its training dataSpecify date ranges; verify facts for historical claims
Cultural biasAI assumes Western cultural norms by defaultSpecify target region/culture explicitly in prompts

The Prompt Engineer's Responsibility Checklist

⚠️ Legal & Compliance Landmines

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.

Portfolio & Career Path
How to turn this course into a job — what to build, where to apply, and what to say.

Roles That Hire Prompt Engineers

AI/Prompt Engineer $85k–$140k

Dedicated roles at AI companies, tech startups, and consulting firms. Responsible for building, testing, and optimizing prompt libraries for products.

Prompt frameworksAPI integration Evaluation/testingPython basics LLM APIs
AI Product Manager $110k–$175k

Defines AI features, writes specifications that include prompt behavior, and bridges between engineering and business teams.

System promptsEvaluation frameworks Product thinkingUser research
AI Content Strategist $65k–$110k

Uses AI to scale content production. Builds prompt libraries, maintains brand voice guides for AI, and manages editorial review workflows.

Few-shot examplesBrand voice Content strategySEO basics
AI Automation Specialist $70k–$120k

Builds workflows using tools like Zapier, Make, n8n, or custom code to automate business processes with AI at the center.

Agent promptingWorkflow tools API basicsBusiness analysis

Portfolio: What to Build

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.

Capstone Project
Build something real. This is the final step between student and practitioner.
✦ Congratulations — You've Reached the Capstone

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

course complete

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.

18
Lessons Completed
60+
Real Examples Studied
Prompts Yet to Write
Roadmap