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
| Component | Always needed? | When to skip |
|---|---|---|
| Role | Usually helpful | Simple factual questions |
| Context | Almost always | The task is self-contained |
| Task | Always | Never skip this |
| Format | Very helpful | When you're fine with any format |
Exercises
0/3In the RCTF framework, what does the "R" stand for?
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.
Which component should you NEVER skip in a prompt?