Framework RTF: Role - Task - Format

The RTF framework is a simple and effective method for creating optimized prompts for artificial intelligence. RTF stands for Role, Task, and Format. This approach helps you get more precise, professional, and useful answers from models like ChatGPT.

Why use the RTF framework for writing prompts?

  • Guide AI with a clear and consistent role
  • Specify exactly what you want it to do (task)
  • Define the output format to make it easier to use
  • Improves the quality, accuracy, and consistency of responses

Role: who is the AI for you?

The first element of the RTF framework is the role. Specifying who the artificial intelligence should be allows you to frame the type of language, content, and tone expected.

Examples:
  • • Act as a SEO expert
  • • You are a lawyer specializing in labor law
  • • Pretend to be a sports nutritionist
  • • Speak as a university professor
Each role influences the style, sources used, and depth of response.

Task: what do you want it to do?

The task is the operational heart of the prompt. It should be clear, direct, and unambiguous.

Examples:
  • • Write an effective product description for Amazon
  • • Explain the difference between standard VAT and reduced VAT
  • • Generate 5 titles for a blog about artificial intelligence
  • • Translate this text into French in a professional tone
The task must be specific, measurable, and contextualized.

Format: how should the response be?

Indicating the format guides the AI in providing a readable and consistent output that meets your needs. Avoid overly generic or disorganized responses.

Examples:
  • • Write the answer in bullet points
  • • Show the data in a comparative table
  • • Produce a text with introduction, body, and conclusion
  • • Respond with commented Python code
The format is what transforms a useful response into a usable response.

Advanced extensions of the RTF framework

In addition to Role, Task, and Format, you can specify:

  • Tone: friendly, professional, ironic
  • Audience: children, executives, students
  • Goal: inform, persuade, instruct
  • Call to action: e.g., "Explain why I should buy this product"
  • Length: short, medium, or in-depth response
These elements further improve the precision of the prompt.

Want to create an RTF prompt in seconds?

Try our free generator to create perfect prompts based on your specific needs.

Frequently Asked Questions about the RTF framework

It's a method for creating more effective prompts for artificial intelligence, using Role, Task, and Format.

To get clearer, more helpful, and consistent responses.

You can adapt the structure according to context, but using all of them improves the result.

An RTF prompt is structured, clear, and includes key elements like role, task, and format. It gets much more precise results.

Certainly. You can specify that the format be commented code, Python snippets, or technical guides.

Yes. It's ideal for naming, creative writing, brainstorming, and copywriting.

Yes. It reduces the number of attempts needed to get a good response, optimizes interaction with AI, and improves efficiency.

No. It was created specifically to help those without experience write effective prompts right away.