⬡ Overview
◈ CTF Framework
⌖ Anatomy
✦ Prompt 1
✦ Prompt 2
✦ Prompt 3
◇ Check
★ Results
0 / 4
Hands-On Lab  ·  Module 6  ·  BAA 6.0

Structured
Prompt Crafting

A prompt is not a question — it is an architecture decision. The Context–Task–Format framework gives agents the precision they need to produce consistent, role-appropriate, professionally structured output every time.

Learning Objectives
01
Define the three components of the Context–Task–Format framework and explain what each controls.
02
Identify weak vs. strong prompt elements and classify them into the correct CTF layer.
03
Build three complete prompts — for Healthcare, Customer Service, and Education — using the CTF framework.
04
Explain why each design decision produces better agent output for a specific role and use case.
Your Lab Roadmap
—
The CTF Framework
Click Context · Task · Format to explore each component — see good vs. weak examples
1
Prompt Anatomy Lab
Drag 9 prompt fragments into Context · Task · Format — distinguish strong from weak
2
Prompt 1 — Healthcare AI
Build a clinical risk extraction prompt for a healthcare AI product owner
3
Prompt 2 — Customer Service
Build a complaint resolution prompt for an e-commerce brand
4
Prompt 3 — AI Instruction
Build an explainability prompt for a non-technical audience
5
Knowledge Check
7 questions · CTF mastery · 70% to pass
—
Your Results
Score breakdown · key takeaways
The Framework

Context · Task · Format

Every professional prompt has three layers. Click each to understand what it controls — and what breaks when it's missing.

🏷️ Context
🎯 Task
📐 Format
CONTEXT — Who is the agent? What does it know? Context is the role, expertise, and situational knowledge you give the agent before it does anything. It answers: who is this agent, what does it already know, what constraints apply, and what perspective should it reason from.

Without context: The agent has no persona — it defaults to a generic assistant with no domain authority.
With strong context: "You are a senior clinical documentation specialist at a HIPAA-compliant telehealth platform with 8 years of experience reviewing physician intake forms." — the agent now reasons from that position.
The Confusion Tax
Weak Prompt

"Summarize the customer feedback and tell me what to do about it."

No role, no output type, no constraints. Every run produces a different result.

Strong CTF Prompt

[C] "You are a CX analyst at a B2B SaaS company…
[T] Analyze the 10 reviews below and identify the top 3 themes…
[F] Return a JSON array with theme, frequency, and urgency."

Role defined. Goal precise. Output deterministic. Works every time.

Section 01 · Lab Activity

Prompt Anatomy Lab

Each fragment below belongs to exactly one CTF layer. Drag it to the correct zone. Some fragments are intentionally weak — and still belong to a layer, just done poorly.

Unclassified prompt fragments — drag to Context · Task · or Format
On mobile? Tap to assign
Section 02 · Prompt Builder

Prompt 1 — Healthcare AI

For each CTF component, choose the strongest option. When all three are locked in, you'll see the assembled final prompt.

Your role:

You are an AI Product Owner at a HIPAA-compliant telehealth startup. Your agent reads physician intake forms and flags potential clinical risks before the patient's first appointment — allowing the care team to prepare in advance. You need a prompt that is precise, clinically grounded, and produces a consistent structured output every time.

✦ Your Assembled Prompt
🏷️ Context
🎯 Task
📐 Format
Section 03 · Prompt Builder

Prompt 2 — Customer Service

Choose the strongest Context, Task, and Format for this scenario.

Your role:

You are an AI consultant helping an e-commerce brand automate their first-response to 1-star reviews. The agent must produce empathetic, brand-appropriate resolution replies that de-escalate frustration and offer a concrete next step — without sounding scripted or dismissive.

✦ Your Assembled Prompt
🏷️ Context
🎯 Task
📐 Format
Section 04 · Prompt Builder

Prompt 3 — AI Instruction

Choose the strongest Context, Task, and Format for this scenario.

Your role:

You are an AI/ML Instructor at a workforce training program. Your agent must explain a confusion matrix to a non-technical marketing team — people who understand campaign performance metrics but have no machine learning background. The explanation must be practical, relatable, and immediately applicable to their work.

✦ Your Assembled Prompt
🏷️ Context
🎯 Task
📐 Format
Section 05

Knowledge Check

Test your understanding. You need 70% or higher to mark this section complete.

Question 1 of 7Score: 0 / 0
Your Results

Lab Complete