Anatomy of a Prompt
The four components: Role, Context, Task, and Format.
The Anatomy of a Prompt
Every great prompt has four components. You do not always need all four, but knowing them gives you a reliable structure you can use for any task -- from writing emails to analyzing data to brainstorming product ideas.
The RCTF Framework (Role, Context, Task, Format) is the most practical prompt structure you can learn. Once it becomes second nature, you will never stare at a blank prompt box again.
The RCTF Framework
R -- Role
Tell the AI who to be. This is not just a gimmick -- when you assign a role, the AI draws on knowledge patterns associated with that expertise. A "senior financial advisor" will mention tax implications that a generic response would skip entirely.
"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. A "pediatric nurse" will explain things differently than a "medical researcher," even if the underlying information is the same.
C -- Context
Provide the background information. This is where you fill in everything the AI needs to know about your specific situation. The more relevant context you provide, the less the AI has to guess -- and guessing is where things go wrong.
"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."
A useful test: if a human expert would need to ask you clarifying questions before starting the task, that information belongs in your Context section. Anticipate those questions and answer them upfront.
T -- Task
State clearly what you want done. This is the one component you should never skip. Be explicit about the deliverable -- what exactly should the AI produce?
"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. This is the difference between getting a wall of text you have to reformat and getting something you can copy-paste directly into your workflow.
"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 is a complete RCTF prompt. Notice how each section flows naturally into the next:
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
Here is a completely different RCTF prompt to show how versatile this framework is:
Role: You are a personal finance coach who specializes in helping young professionals (ages 25-35) manage their money.
Context: I am 28, earn $65,000/year, have $12,000 in student loans at 5.5% interest, and currently save about $200/month. I have no retirement account yet.
Task: Create a 6-month financial action plan that balances debt payoff with starting retirement savings.
Format: Month-by-month breakdown in a table with columns for: Month, Action, Amount, and Why. End with a summary of where I will stand after 6 months.
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 are fine with any format |
The most common RCTF mistake is writing a strong Role and Context but leaving the Task vague. "Help me with marketing" is not a task. "Write 5 subject lines for our abandoned cart email" is a task. Be concrete about the deliverable.
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?