Skip to contentNew: Does ChatGPT recommend your brand? Free 60-second AI visibility check →
By The DDH Team · Digital Dashboard Hub

The RTF Prompt Framework (Role-Task-Format), Explained (2026)

RTF — Role, Task, Format — is the simplest prompt framework worth memorizing. This guide breaks down each part with before/after examples, copy-paste templates, and a comparison to plain prompting.

By The DDH Team at Digital Dashboard HubUpdated

RTF stands for Role, Task, and Format: a three-part prompt structure where you tell the model who to be, what to do, and how to shape the answer. It's the lowest-effort framework that reliably beats a one-line request, because it forces you to supply the three things models most often lack — perspective, a precise instruction, and an output shape.

RTF is a community-popularized convention rather than a single published method; the underlying moves (role assignment, clear instructions, explicit output format) are standard practice documented in the DAIR.ai Prompt Engineering Guide and the OpenAI prompting guide. To draft an RTF prompt in seconds, try the ChatGPT Prompt Generator.

Digital Dashboard Hub

Writing good prompts for ONE AI is hard. Writing them for GPT-5, Claude, Gemini, Perplexity, Midjourney and 6 more is a full-time job. DDH's AI Prompt Builder writes once, runs everywhere — locked to your niche, voice, and brand tone.

Free 14 days, no card.

RTF vs plain prompting

Feature
Plain prompt
RTF prompt
Sets a point of view
States one concrete taskOften vagueYes, explicit
Controls output shape
Output usable without cleanupRarelyUsually
Consistent across repeated runsLowHigh
Effort to writeSecondsUnder a minute
Best forThrowaway questionsReal deliverables

Comparison reflects established prompting practice per the [DAIR.ai guide](https://www.promptingguide.ai/) and [OpenAI prompting guide](https://platform.openai.com/docs/guides/prompt-engineering). Current as of June 2026.

What's in this guide

A complete walk-through of the RTF framework, built to be skimmed and copied. The sections below, in order:

1. What RTF is and why three parts · 2. R is for Role · 3. T is for Task · 4. F is for Format · 5. A full before/after rewrite · 6. RTF vs plain prompting (table) · 7. When RTF is enough — and when to reach for more · 8. Common mistakes · 9. FAQs · 10. Sources & further reading.

Every example is a literal prompt you can paste into ChatGPT, Claude, or Gemini and edit. Where a number or claim appears, it links to a real source.


What RTF is and why three parts

Most weak prompts fail for the same three reasons: the model has no point of view, the instruction is fuzzy, and the output arrives in a shape you then have to clean up. RTF closes all three gaps in one pass.

Role sets vocabulary, depth, and priorities. Task states the single concrete thing you want done. Format dictates the structure of the answer so it's usable immediately. None of these are novel on their own — they're the basics of clear prompting — but bundling them into a fixed order (R, then T, then F) makes the framework fast to apply and hard to forget.

Think of RTF as the minimum viable prompt for any non-trivial task. It is deliberately small. If you only ever learn one framework, this is the one with the best effort-to-payoff ratio, and it's the foundation the larger frameworks (CO-STAR, CRISPE, RACE) build on.


R is for Role

The Role line tells the model who it is. A specific role shifts its vocabulary, assumptions, and the depth of detail it offers. 'You are a helpful assistant' adds nothing; 'You are a senior tax accountant explaining to a first-time freelancer' changes the entire answer.

``` You are a senior B2B copywriter who writes for skeptical, time-poor executives. ```

**Why it works:** role assignment is one of the most reliable, lowest-cost prompting moves — see DAIR.ai on role prompting. Make the role concrete and tie it to the audience or context. The more specific the role, the less the model defaults to generic, hedged output. Productized in our Brand Voice Generator.


T is for Task

The Task line is the single, concrete action you want. The failure mode here is vagueness — 'help me with my email' versus 'rewrite this cold email to be shorter and lead with the recipient's problem.' One verb, one clear deliverable, with any constraints stated inline.

``` Rewrite the cold email below so it is under 90 words, opens with the recipient's problem (not our product), and ends with one yes/no question. ```

**Why it works:** a precise instruction with explicit constraints removes the guessing the model would otherwise do — and guessing is where output drifts. If your task has more than one deliverable, that's a signal to split it (see the Prompt Chaining guide) rather than overload one prompt.


F is for Format

The Format line specifies the shape of the answer: a table, a numbered list, JSON, a 3-bullet summary, a 100-word paragraph. Without it, the model picks a format for you — usually a wall of prose you then have to restructure.

``` Format: a markdown table with three columns — Section, Current copy, Suggested rewrite. No preamble, no closing remarks. ```

**Why it works:** specifying output shape is essential whenever the result feeds a downstream step or a human who needs to skim it. For machine-readable output, pair the Format line with your provider's native structured-output / JSON mode for guaranteed-valid results (OpenAI guide, Claude prompt-engineering overview). The Code Prompt Builder emits format-locked prompts like this.


A full before/after rewrite

Here is the same request as a plain prompt and as an RTF prompt, so the difference is concrete.

Before (plain): `Write a product description for my new water bottle.`

That gets you a generic, often overlong blurb with invented features and no consistent structure.

After (RTF):

``` Role: You are a DTC ecommerce copywriter for an outdoor-gear brand. Task: Write a product description for a 32oz insulated steel water bottle. Use only these facts: keeps drinks cold 24h / hot 12h, BPA-free, $35, fits standard cup holders. Do not invent features. Format: a 50-60 word paragraph, then 3 bullet benefits, then a one-line call to action. No emojis. ```

The RTF version produces something on-brand, fact-bounded, and ready to paste into a product page — no cleanup. The 'do not invent features' clause inside the Task is a guardrail worth keeping in any RTF prompt that involves facts. Generate variations with the Product Description Generator.

---

RTF scales down, too. For a quick internal note you might compress it to one line: `As a project manager (R), summarize the notes below into 5 risk bullets (T) as a markdown list (F).` The order — role, then task, then format — is what makes it stick.


When RTF is enough — and when to reach for more

RTF covers the large majority of everyday tasks: rewrites, summaries, drafts, extractions, classifications. If the output is good and consistent, stop there — adding more structure costs tokens and effort for no gain.

Reach for a richer framework when RTF leaves gaps. If tone and audience matter as much as the task (marketing copy, support replies), CO-STAR adds Context, Style, Tone, and Audience. If you want the model to bring its own analysis and run experiments, CRISPE adds Insight and Experiment. And when one prompt can't hold the whole job, decompose it with prompt chaining.

The progression is additive: RTF is the core, and the longer frameworks are RTF plus extra slots for context the simple version omits.

Use RTF when: the task is a single, well-defined deliverable — a rewrite, summary, draft, or extraction — and you mainly need perspective, a clear instruction, and a fixed output shape.
Reach for more when: tone/audience are as important as the task (use CO-STAR), you want model-generated analysis (CRISPE), or the job is too big for one prompt (chain it).


Combining RTF with other prompting techniques

RTF is a skeleton, not a ceiling. Once the three slots are in place, you can layer proven patterns onto any of them without breaking the structure — this is how a simple RTF prompt grows into a production-grade one.

Add few-shot examples to the Task. When a format or edge-case behavior is easier to show than to describe, drop two or three input-to-output examples right under the Task line. In-context learning is well documented — see Brown et al., 2020 (arXiv:2005.14165) — and it pairs cleanly with RTF because the examples simply make the Task concrete.

Add chain-of-thought to the Task for reasoning. If the task involves multi-step logic, append 'work through this step by step, then give the final answer.' Chain-of-thought was introduced by Wei et al., 2022 (arXiv:2201.11903); on reasoning-tuned 2026 models it helps less because they reason internally, so add it only when plain RTF visibly struggles.

Harden the Format with a negative constraint. For factual or retrieval tasks, extend the Format with an uncertainty rule: 'if the answer isn't in the provided text, reply exactly: Not specified.' Without it, models guess fluently. This is the negative-constraint pattern from our 12 prompt patterns guide.

Isolate untrusted input under the Task. If the Task operates on pasted user or external content, fence it in delimiters and tell the model to treat it as data, not instructions — a basic defense against prompt injection, the #1 risk in the OWASP LLM Top 10 (LLM01:2025). RTF stays the backbone; these patterns bolt on where each slot needs reinforcement.


Common mistakes with RTF

Vague role. 'You are an expert' is barely better than no role. Name the specialty and the audience: 'a pediatric dietitian explaining to a worried parent.'

Overloaded task. Two or three deliverables in one Task line produces shallow output on all of them. Keep it to one action; split the rest.

Missing or hand-wavy format. 'Make it nice' is not a format. State the structure, length, and what to omit (preamble, closing remarks, emojis).

No factual guardrail. If the task touches facts, add a 'use only these facts / do not invent' clause to the Task — otherwise the model fills gaps fluently and wrongly. This is the everyday version of the negative-constraint pattern from our 12 prompt patterns guide.


Sources & further reading

RTF is a community convention; the underlying techniques are documented in established sources (current as of June 2026):

DAIR.ai Prompt Engineering Guide (roles, instructions, formatting): https://www.promptingguide.ai/

Learn Prompting: https://learnprompting.org/

OpenAI prompting guide: https://platform.openai.com/docs/guides/prompt-engineering

Claude prompt-engineering overview: https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/overview

Google Gemini prompting strategies: https://ai.google.dev/gemini-api/docs/prompting-strategies

Related on this site: Complete Guide to Prompt Engineering and 12 Prompt Patterns That Convert.

Frequently Asked Questions

What does RTF stand for in prompting?

RTF stands for Role, Task, and Format. You tell the model who to be (Role), what single concrete thing to do (Task), and how to shape the answer (Format). It's a simple, fixed-order structure that closes the three gaps that cause most weak prompts to fail.

Is RTF better than just writing a normal prompt?

For any real deliverable, yes — RTF reliably beats a one-line request because it supplies perspective, a precise instruction, and an output shape, which plain prompts usually omit. For throwaway questions it's overkill. See the comparison table above.

Does RTF work with ChatGPT, Claude, and Gemini?

Yes. RTF is provider-agnostic — role assignment, clear tasks, and explicit formats all transfer across models, though exact behavior varies. For machine-readable output, pair the Format line with each provider's structured-output mode: OpenAI, Claude, Gemini.

How is RTF different from CO-STAR or RACE?

RTF is the minimal core: Role, Task, Format. CO-STAR adds Context, Style, Tone, and Audience for tone-sensitive work; RACE adds Action, Context, and Expectation. They're all the same idea — supply what the model lacks — at increasing levels of detail. Start with RTF and add slots only when it leaves a gap.

Who invented the RTF framework?

RTF has no single documented inventor — it's a community-popularized acronym for techniques that long predate it. The underlying moves (role prompting, clear instructions, explicit output format) are standard practice documented in the DAIR.ai Prompt Engineering Guide and Learn Prompting. Treat RTF as a memory aid, not a proprietary method.

Build an RTF prompt in seconds.

The free ChatGPT Prompt Generator turns a rough idea into a Role-Task-Format prompt ready to paste — no signup, part of 40+ free prompt tools.

Browse all prompt tools →