School/Prompt Engineering/Prompt Fundamentals
2/3
Wave 212 minbeginner

Anatomy of a Prompt

The four components: Role, Context, Task, and Format.

The Anatomy of a Prompt

Every great prompt has four components. You don't always need all four, but knowing them lets you construct prompts like a pro.

The RCTF Framework

R — Role

Tell the AI who to be.

"You are a senior marketing strategist with 15 years of experience in SaaS companies."

Why it works: Setting a role activates relevant knowledge patterns and sets the appropriate tone and expertise level.

C — Context

Provide the background information.

"My company sells project management software to small businesses (10-50 employees). We're launching a new feature: AI-powered task prioritization. Our main competitors are Asana and Monday.com."

T — Task

State clearly what you want done.

"Create a product launch email sequence of 3 emails. Email 1 should build anticipation, Email 2 should announce the feature, and Email 3 should drive trial sign-ups."

F — Format

Specify the output structure.

"For each email, provide: Subject line, Preview text, Body (under 200 words), CTA button text. Use a professional but friendly tone."

Putting It Together

Here's a complete RCTF prompt:

Role: You are a senior marketing strategist specializing in SaaS product launches.

Context: My company, TaskFlow, sells project management software to small businesses (10-50 employees). We're launching AI-powered task prioritization next month. Our main competitors are Asana and Monday.com, but they don't have this feature yet.

Task: Create a 3-email launch sequence. Email 1: build anticipation (send 1 week before). Email 2: announce the feature (launch day). Email 3: drive trial sign-ups (3 days after launch).

Format: For each email provide:

- Subject line (under 50 characters)

- Preview text (under 90 characters)

- Body copy (under 200 words)

- CTA button text

- Tone: professional but energetic

When to Use Each Component

ComponentAlways needed?When to skip
RoleUsually helpfulSimple factual questions
ContextAlmost alwaysThe task is self-contained
TaskAlwaysNever skip this
FormatVery helpfulWhen you're fine with any format

Exercises

0/3
Quiz+5 XP

In the RCTF framework, what does the "R" stand for?

Prompt Challenge+20 XP

Using the RCTF framework, write a prompt asking AI to help you prepare for a job interview. Include all four components clearly labeled.

Hint: Role: Interview coach. Context: your industry and the position. Task: create prep materials. Format: specify what deliverables you want.

Quiz+5 XP

Which component should you NEVER skip in a prompt?