The RICE Prompt Framework: My Favorite Method for Getting Great AI Output
โก Quick Answer
The RICE prompt framework (Role, Instructions, Context, Examples) explained with real templates โ the most versatile structured prompting method for consistent AI results.
Get more content like this on Telegram!
Daily AI tips, notes & resources โ free
Advertisement
The RICE Prompt Framework: My Favorite Method for Getting Great AI Output
RICE โ Role, Instructions, Context, Examples โ is a structured prompting framework that takes 30 seconds to learn and reliably improves output quality across writing, code, analysis, and research.
Its real value shows up when a response disappoints: RICE gives you a diagnostic checklist for exactly which element was missing, instead of vague guessing about "better prompting."
Applied daily to client work โ reports, data analysis, strategy documents โ inconsistent prompts used to mean some drafts landed immediately and others needed 4-5 rewrites. RICE is what made output quality predictable.
This guide breaks down each element with real examples, provides 10 ready-to-use RICE templates, and explains when to use each element and when to skip it.
The RICE Framework Explained
R โ Role
Role tells the model who it is before you tell it what to do โ the single highest-leverage element in most prompts.
Without a role, a model defaults to the average treatment of a topic across the internet. Assign a specific role and the response calibrates to that expert's knowledge, vocabulary, and priorities.
Without role: "Explain our customer churn data"
โ Generic statistical analysis
With role: "You are a customer success strategist who has worked with
SaaS companies from $1M to $50M ARR, specializing in identifying
churn risk signals from behavioral data"
โ Analysis that speaks the language of SaaS CS teams with specific, actionable insightsRole specification levels:
| Level | Example | When to Use |
|---|---|---|
| Generic | "You are a writer" | Simple tasks only |
| Domain-specific | "You are a marketing writer" | Most tasks |
| Expert-specific | "You are a direct response copywriter who writes for B2B software companies" | Professional deliverables |
| Character-specific | "You are a skeptical venture capitalist who has seen 500+ pitch decks and rejects most of them" | Analysis, review, critique |
I โ Instructions
Instructions are the core task description โ specific about what you want, not just what the topic is.
Common instruction mistakes:
โ "Write about productivity" (describes topic, not task)
โ
"Write a 600-word blog intro about productivity tools for remote teams"
โ "Help with my email" (too vague)
โ
"Write a follow-up email declining a vendor's proposal politely but firmly,
leaving the door open for a smaller-scope future engagement"
โ "Review this code" (what aspect?)
โ
"Review this code for security vulnerabilities and performance issues.
For each issue: severity rating (critical/high/medium/low),
explanation of risk, and suggested fix"Instruction completeness checklist:
C โ Context
Context is everything the model can't see that would change how it responds. It's the most commonly underprovided element โ and the most common reason for mediocre output.
What to include:
- Audience: Who will read or use this output?
- Purpose: What will this be used for?
- Current state: What already exists? What's been tried?
- Constraints: Budget, timeline, technical limits, what to avoid
- Domain knowledge: Industry-specific information
Context transformation example:
Without context:
"Write a job description for a senior engineer"
โ Generic senior engineer JDWith context:
Context:
- Company: 30-person Series A startup building developer tools
- Stage: First engineering hire after 2 founding engineers
- Culture: Remote-first, async, high autonomy
- Challenge: We've had 3 candidates ghost us mid-process;
we think our JDs sound too corporate
- Goal: Attract engineers who've worked at small startups before,
not big company engineers who'll be frustrated by ambiguitySame instruction. Completely different output.
E โ Examples
Examples are the fastest way to communicate style, quality, and format. Showing beats describing, especially for tone and voice.
When to include examples:
- You need a specific tone or voice
- You have an existing format to match
- The task is creative and style matters
- Previous responses missed the mark on style
Example usage:
"Write a product update email in this style:
[Paste example of your best previous email or a competitor's email you admire]
The update to communicate: [your actual news]"Negative examples (what NOT to do):
"Write a LinkedIn post.
Avoid this style:
'Excited to announce that I have just accepted a new position at [Company].
Grateful for this opportunity. #blessed #newbeginnings'
Instead, write in this style:
'Three months ago I left a comfortable job at [Company] for something
uncomfortable. Here's what I've learned so far: [insight]'"10 Ready-to-Use RICE Templates
Template 1: Strategy Document
Role: You are a management consultant with 12 years of experience working
with Series A-C technology companies on go-to-market strategy.
Instructions: Write a 2-page strategy brief covering [strategic question].
Structure: Situation โ Complication โ Key Questions โ Strategic Options
(3 options with pros/cons) โ Recommendation.
Context:
- Company: [size, stage, market]
- Current situation: [what's happening]
- Key constraint: [what limits our options]
- Decision deadline: [when this needs to be decided]
Examples: [Optional: paste a strategy brief you admire]Template 2: Technical Documentation
Role: You are a technical writer who specializes in developer documentation.
Your documentation is known for being accurate, concise, and genuinely useful
โ not just comprehensive.
Instructions: Write documentation for [API endpoint / function / feature].
Include: description, parameters (type, required/optional, description),
return value, example request/response, and common errors.
Context:
- Audience: Mid-level backend developers who are new to our API
- Existing docs standard: [link or example]
- Specific gotchas to document: [known issues]
Examples:
[paste a section from docs you consider exemplary]Template 3: Sales Email Sequence
Role: You are a B2B sales copywriter who has written for SaaS companies
with average contract values between $10K-$100K.
Instructions: Write a 4-email cold outreach sequence targeting [role] at
[company type]. Each email: subject line, under 120 words, one clear CTA.
Email 1: Problem-focused cold open. Email 2: Social proof follow-up.
Email 3: Value-add (share useful resource). Email 4: Break-up email.
Context:
- Our product: [what it does]
- Their pain point: [specific problem we solve]
- Our differentiator: [what makes us different]
- Their likely objection: [what holds them back]
Examples: [paste your best-performing existing email for reference]Template 4: Code Architecture Review
Role: You are a staff engineer with deep experience in [language/framework]
who is known for caring about maintainability and scalability,
not just correctness.
Instructions: Review this system architecture and identify:
1. Single points of failure
2. Scalability bottlenecks
3. Security concerns
4. Technical debt that will compound
5. What I got right (don't just criticize)
Context:
- Scale: [current and expected usage]
- Team size: [relevant for complexity assessment]
- Deployment: [infrastructure]
- Known constraints: [time, budget, team skills]
[Architecture diagram or description]Template 5: Executive Summary
Role: You are a chief of staff who writes for a CEO who reads 200+
documents per week and has no patience for filler.
Instructions: Summarize [document] as a 1-page executive summary.
Format: 3 bullets for key findings, 2 bullets for implications,
1 bullet for recommended action. Total: under 200 words.
Context:
- Reader: [CEO/board/investor] background
- Decision this informs: [what will be decided]
- What they most care about: [their priorities]
[Document to summarize]When to Use Each Element
| Task Complexity | R | I | C | E |
|---|---|---|---|---|
| Quick question | Optional | Required | Optional | No |
| Short deliverable | Recommended | Required | Recommended | If available |
| Professional work | Required | Required | Required | Recommended |
| Highly stylized | Required | Required | Required | Required |
| Sensitive/high-stakes | Required | Required | Required | Required |
Rule of thumb: When output disappoints, add the missing element.
- Tone feels wrong โ Add/improve Role
- Missing important points โ Add Context
- Wrong format โ Improve Instructions
- Style doesn't match โ Add Examples
Combining RICE with Other Techniques
RICE + Chain of Thought: Add "Think step by step before providing the final output" to any RICE prompt for complex reasoning tasks.
RICE + Negative Prompting: Add constraints to Instructions: "Do NOT use passive voice, corporate jargon, or bullet points" for more distinctive writing.
RICE + Iteration: Start with a basic RICE prompt, evaluate the output, then ask: "Using the same role and context, rewrite this improving: [specific weakness]"
For more prompt frameworks, see our complete prompt engineering guide. For applying structured prompts to coding specifically, see our prompt engineering for coding guide.
Further Reading
- How to Build a Prompt Library That Saves You 5 Hours a Week
- The Art of Asking AI the Right Questions (And Getting Real Answers)
- The Prompt Engineer's Toolkit: 10 Tools You Actually Need in 2025
- The Ultimate Prompt Engineering Guide 2026: Master AI Prompting
- How to Use AI to Write Code: The Prompt Engineering Guide for Devs
- Ollama Tutorial: Run LLMs Locally on Your Computer (Complete Setup Guide)
- ChatGPT for Lawyers: How Legal Professionals Use AI Ethically
- AI for Academic Writing: Thesis, Essays, and Research Papers
Advertisement
๐ฌ DiscussionPowered by GitHub Discussions
Frequently Asked Questions

Software Testing Expert & Prompt Engineering
Ensures every release is bug-free through rigorous testing, and crafts high-precision prompts that power our AI-driven workflows. Abdullah Al Arman Emon leads QA and prompt engineering across AiTechWorlds.
Not sure yet? Ask AI about this article
Get an instant, unbiased AI summary of โThe RICE Prompt Framework: My Favorite Method for Getting Great AI Outputโ.
Advertisement
Related Articles
Jailbreak or Not? Understanding the Ethics of Prompt Manipulation
AI prompt ethics explained โ the real difference between jailbreaking, clever prompting, and legitimate use, plus why AI safety guardrails exist and when to respect them.
How to Build a Prompt Library That Saves You 5 Hours a Week
Build an AI prompt library that saves hours every week โ the exact structure, tagging system, and workflow for organizing prompts you'll actually use and find again.
Prompt Engineering for Business: Templates That Get Results
Business prompt templates that get results โ ready-to-use AI prompts for marketing, HR, strategy, finance, and operations that professionals use to save hours every week.
Chain of Thought Prompting: The Technique That Makes AI 10x Smarter
Chain of thought prompting explained โ how this simple technique transforms AI reasoning, with real examples for math, logic, analysis, and complex decisions.