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
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
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
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
Want to create an RTF prompt in seconds?
Try our free generator to create perfect prompts based on your specific needs.