What is the RTF Framework?

The RTF framework is the most minimal structured prompt approach that still covers the three variables that most directly affect AI output quality. Its components are Role (the expert persona the AI should adopt), Task (the specific thing it needs to do), and Format (how the output should be structured, presented, and scoped).

  • R — Role: Assign a specific expert persona
  • T — Task: State what needs to be done
  • F — Format: Define the output structure

RTF's value is in its radical simplicity. Many prompt frameworks add valuable components — context, examples, style instructions, narrowing constraints — but each component is another thing to think about and write. RTF makes a deliberate trade-off: by keeping the framework to three components, it becomes fast enough to use for everyday tasks without feeling like overhead. The three components happen to be the ones that produce the greatest improvement over an unstructured prompt.

RTF is an ideal framework for building reusable prompt templates. Because the structure is fixed and predictable, you can save RTF prompts with placeholder Task descriptions and reuse them for recurring workflows — weekly reports, customer support drafts, code review checklists, meeting summaries, and more.

When to Use the RTF Framework

📋

Recurring Workplace Tasks

Meeting summaries, status reports, performance review drafts — tasks with a consistent format and role that you can template and reuse with just the Task updated each time.

💼

Job Postings & HR Docs

Assign an HR or recruiting role, specify the position and requirements as the Task, and use Format to enforce a consistent job posting structure across all openings.

🍽️

Meal Plans & Health Guides

Set a nutritionist or fitness coach role, describe the client's needs in Task, and specify a table or structured format that makes the output immediately actionable.

💻

Focused Code Tasks

Assign a developer role matching the language and paradigm, describe the specific coding task, and format the output to include only what you need — code, explanation, or both.

📰

Article Outlines & Drafts

Set a writer or editor role, describe the topic and key arguments in Task, and specify the outline format (H2 headings, word counts per section) in Format for a structured first draft.

🎙️

Presentation Scripts

Assign a presenter or coach role, specify the presentation topic and audience in Task, and request a speaker-notes format with slide titles and key talking points per slide.

How to Use the RTF Framework

  1. 1

    Role — Assign a specific expert persona

    Name the expert the AI should emulate: their domain, seniority, and specialization. "Expert technical recruiter with 10 years of experience hiring software engineers at fast-growing startups" is far more useful than "a recruiter." The Role sets the vocabulary, assumptions, quality bar, and perspective the AI brings to the Task. A well-specified Role is the single highest-impact improvement over an unstructured prompt.

  2. 2

    Task — State what needs to be done

    Describe the specific job in clear, concrete terms. Start with a strong action verb (write, create, generate, analyze, rewrite, summarize) followed by the object and any key constraints. The Task should be specific enough that there is only one reasonable interpretation of what you are asking for. If you find yourself writing two or three sentences of Task, consider whether RACE's Action + Context split would serve you better.

  3. 3

    Format — Define the output structure

    Specify: the document structure (table, bullet list, numbered steps, headings and body paragraphs), the length (word count, number of items, number of sections), the tone (formal, casual, technical, encouraging), and any hard constraints (no jargon, must include a CTA, maximum 150 words). Think of Format as a contract between you and the AI about what a successful output looks like.

Prompt Examples

Job Posting — Senior Backend Engineer
Role: Expert technical recruiter with 10 years of experience hiring software engineers at fast-growing startups.

Task: Write a job posting for a senior backend engineer specializing in distributed systems.

Format: Use standard job posting structure — Company Overview (2 sentences), Role Summary (3 sentences), Key Responsibilities (6 bullet points), Required Qualifications (5 bullet points), Nice-to-Have Skills (3 bullet points), and What We Offer (4 bullet points). Keep the total length under 500 words. Tone: direct, ambitious, and human — avoid corporate buzzwords.
5-Day Plant-Based Meal Plan
Role: Nutritionist specializing in plant-based diets and meal planning for busy professionals.

Task: Create a 5-day meal plan for someone transitioning from an omnivore diet to a fully plant-based diet.

Format: Present as a table with columns: Day, Breakfast, Lunch, Dinner, Snack. Below the table, add a short "Shopping List" section with all unique ingredients grouped by category (produce, grains, proteins, pantry). Include a brief note for each day highlighting the key nutritional benefit. Total length: fit on two printed pages.

Pros and Cons

🟢 Pros🔴 Cons
Fastest structured framework to learn and apply consistentlyNo dedicated Context component — add background inline when needed
Ideal for building reusable, templatized prompt librariesLess effective for nuanced tasks that require audience or situational awareness
Covers the three highest-impact prompt variablesFormat can be hard to specify precisely for open-ended creative tasks
Low cognitive overhead — leaves mental energy for the Task itself

Frequently Asked Questions

What does RTF stand for in prompt engineering?

RTF stands for Role, Task, Format. You assign the AI a specific expert persona (Role), tell it exactly what to do (Task), and specify how the output should be structured (Format). It is one of the most minimal structured frameworks — just three components — but those three components address the most impactful variables in any AI prompt.

How is RTF different from TAG or APE?

RTF explicitly includes a Role component, making it the simplest framework that combines persona assignment with task and output formatting. TAG (Task, Action, Goal) is outcome-focused but lacks a Role. APE (Action, Purpose, Expectation) is audience-focused but also lacks a Role. RTF is the easiest entry point for anyone who wants to use role prompting as part of their standard workflow.

When should I use RTF over RACE?

Use RTF when your prompt is clear and self-contained — you know the role, the task, and the format, and no additional context is needed. Use RACE when the task requires background information the AI wouldn't otherwise have (e.g., your product's specific brand voice, your audience's particular characteristics, or domain-specific constraints). RACE's Context component is the key differentiator.

What belongs in the Format component of RTF?

Format should specify the output's structure (bullet list, numbered steps, table, prose paragraphs, markdown), its length (word count, number of items, sections), its tone or register (formal, casual, technical), and any hard constraints (no jargon, must include a CTA, max 150 words). The more specific your Format, the more predictable and usable the AI's output will be.

Can I use RTF as a template for repeated tasks?

Absolutely — this is one of RTF's greatest strengths. Because it has only three components and clear semantics, RTF is ideal for creating reusable prompt templates. You can fix the Role and Format for recurring tasks (weekly reports, customer emails, code reviews) and only update the Task description each time you use the template.

Does RTF work for coding tasks?

Yes. Set Role to the type of developer needed (e.g., 'senior Python engineer'), Task to the specific coding job (e.g., 'refactor the following function to use async/await'), and Format to the output structure (e.g., 'return only the refactored code followed by a brief explanation of each change, no markdown code fences'). RTF handles focused coding tasks well.

Is RTF a good first prompt framework to learn?

RTF is arguably the best starting framework for beginners. It is minimal enough to learn in under a minute, yet it addresses the three variables that most dramatically improve AI output quality: who is speaking (Role), what they are doing (Task), and what the result should look like (Format). Mastering RTF builds the intuitions needed for more complex frameworks like RACE or RISEN.