RTF Prompt Framework: Complete Guide with Examples (2026)

Last updated June 28, 2026 · 3 examples · Works with ChatGPT, Claude, Gemini
Quick Answer

RTF is the simplest structured prompt framework: Role assigns the AI a persona, Task defines what to do, and Format specifies the output structure. Three fields, written in under 30 seconds. Use it when speed matters and the task is straightforward.

What Is the RTF Prompt Framework?

RTF strips prompt engineering down to its three most essential components. It is the fastest structured framework to write and the easiest to remember. The tradeoff is that it omits Context. Think of RTF as a starting point: use it for quick tasks, then upgrade to RACE when you need to add context.

What Does RTF Stand For?

The simplest structured framework — written in under 30 seconds.

R
Role
The professional persona. Keep it short for RTF — one sentence. Example: You are a Python developer.
T
Task
The specific action. Be precise. Example: Convert the following JSON to a CSV with headers.
F
Format
The output structure — list, table, code block, word count. Example: Return only the CSV. No explanation.
+R
Rules (optional)
Constraints added by Promptary as an optional fourth field.

When to Use RTF

Use RTF for quick, well-defined tasks where the context is obvious — formatting code, translating text, converting data between formats. When output feels too generic, add a Context field and you have effectively upgraded to RACE.

RTF Examples

Data conversion
Role: You are a data engineer.
Task: Convert the following JSON array to a markdown table with columns: name, email, plan.
Format: Return only the markdown table. No explanation or surrounding text.
Quick translation
Role: You are a professional Dutch translator.
Task: Translate the following English product description to Dutch.
Format: Return only the Dutch translation. Preserve paragraph breaks. No notes or commentary.
Code refactor
Role: You are a senior JavaScript developer.
Task: Refactor the following function to use async/await instead of promise chains.
Format: Return only the refactored code in a JavaScript code block. No explanation.

RTF vs Other Frameworks

RTF vs RACE: RTF is faster but skips Context — the field most responsible for output quality. If RTF outputs feel generic, add Context and use RACE. RTF vs TAG: TAG is goal-driven while RTF is format-driven. Use TAG when the end goal needs to be explicit.

Use this RTF template in Promptary — free

Save your first RTF prompt in the structured editor and get a permanent REST API endpoint. Personal plan is free forever, no credit card required.

Start free

Frequently Asked Questions

What does RTF stand for in prompt engineering?

RTF stands for Role, Task, and Format. It is the simplest structured prompt framework — three fields covering the minimum viable structure for an AI instruction.

When should I use RTF instead of RACE?

Use RTF when the task is quick, well-defined, and context is obvious. Use RACE when output quality matters more than speed.

Is RTF good for beginners?

Yes. RTF is the best starting framework for beginners. Easy to remember, fast to write, and produces noticeably better results than an unstructured prompt.