How to write the perfect prompt: a 5-step method
Introduction
Have you ever felt that frustration: you ask ChatGPT a question and the answer is... disappointing? Generic? Off the mark? The problem is not the AI. It is the prompt.
After testing thousands of prompts and training hundreds of professionals, we developed a simple 5-step method that works every time.
Step 1: Define the role (the R in RCFOC)
The first thing to do is tell the AI WHO it is. A marketing expert does not write like an engineer. A journalist does not analyze like a consultant.
Formula: "You are a [role] with [X years of experience] specialized in [domain]."
Why it works: The AI adjusts its vocabulary, detail level, and angle based on the role. This is the most powerful and most underestimated lever.
Step 2: Give context (the C)
The AI does not know your situation. The more context you provide, the more relevant the response will be.
Context elements to provide:
- Your industry
- Your target audience
- The problem you are trying to solve
- Specific constraints
Step 3: Specify the format (the F)
Do not let the AI choose the format. Specify exactly what you expect:
- Bullet points or paragraphs?
- Table or list?
- How many words?
- What structure (headings, subheadings)?
Step 4: Define the objective (the O)
What will you do with this response? The objective changes everything:
- Convince a client -> persuasive tone, arguments, proof
- Inform a team -> neutral tone, facts, structure
- Inspire an audience -> emotional tone, storytelling
Step 5: Add constraints (the C)
Constraints are your guardrails. They prevent the AI from going off track.
Examples of useful constraints:
- "Maximum 200 words"
- "No technical jargon"
- "Include at least 3 concrete examples"
- "Avoid cliches and superlatives"
The RCFOC method in action
Here is a complete example using all 5 steps:
Role: "You are a digital strategy consultant with 15 years of experience." Context: "My client is a 50-person SME in agrifood with no online presence." Format: "Produce an action plan in table format: Action | Priority | Budget | Timeline." Objective: "I need to present this plan to the board to secure budget." Constraints: "Maximum 10 actions. Total budget under 50,000 EUR. Actions achievable in 6 months."
The 3 mistakes to avoid
- Too much text: An effective prompt is 5-15 lines, not 50.
- No iteration: The first result is a draft, not the final deliverable.
- Blind copy-paste: Always adapt prompts found online to YOUR context.
Conclusion
The RCFOC method is your compass for writing effective prompts. Role, Context, Format, Objective, Constraints: these 5 elements transform any mediocre prompt into a professional one.
Practice with our free prompts and you will see the difference from the very first try.
Become an AI professional with AI2 — Paris
Bachelor (RNCP 6) and Master's (RNCP 7) in Artificial Intelligence & Data Science. Work-study, CPF and company funding available. Enrollment open until October — limited seats.
Get a free call back within 24h
Leave your number — our admissions team calls you to answer everything (programs, funding, enrollment until October). No commitment.
Le Brief IA — Chaque semaine, l'essentiel
3 actus, 1 prompt, 1 astuce. Gratuit.