P
Tutoriels Prompting

How to write a good ChatGPT prompt: the complete guide

By L'Art du PromptingPublished on February 23, 202612 min read

Have you ever felt like ChatGPT didn't understand what you wanted? That its responses were generic, off-topic, or too long? The problem probably doesn't come from the AI, but from how you talk to it. Writing a good ChatGPT prompt is a skill that can be learned — and this article will show you exactly how to do it.

Whether you're a complete beginner or regular ChatGPT user, this guide gives you a step-by-step method, concrete before/after examples, and the most common mistakes to avoid. By the end of this article, you'll know how to transform any vague idea into a prompt that produces impressive results.

What is a prompt and why is it important?

A prompt is the instruction you give to ChatGPT. It's your message in the conversation bar. The more precise and well-structured your prompt is, the more relevant and useful the AI's response will be.

Think of it like ordering at a restaurant: if you simply say "food," the server won't know what to bring you. But if you say "a Caesar salad without croutons with dressing on the side," you'll get exactly what you want.

With ChatGPT, it's the same. The quality of your prompt directly determines the quality of the response. A good ChatGPT prompt makes all the difference between a mundane response and one that saves you hours of work.

The 5-step method for writing a good prompt

Here's the method we recommend for structuring each of your prompts. You can also use our prompt builder to apply this method automatically.

Step 1: Define the role

Start by giving ChatGPT a role. This guides its entire response toward an appropriate level of expertise and tone.

Role examples:

  • "You are a digital marketing expert with 15 years of experience"
  • "You are a French teacher for high school seniors"
  • "You are a senior Python developer specialized in data science"

The role frames the conversation and helps the AI draw from the right knowledge.

Step 2: Provide context

Explain the situation. ChatGPT knows nothing about your project, your company, or your constraints. The more context you provide, the more relevant the response will be.

Include:

  • Your overall objective
  • Your target audience
  • Specific constraints (budget, deadline, format)
  • What you've already tried

Step 3: Formulate the instruction clearly

Say exactly what you expect. Use precise action verbs: "write," "list," "compare," "analyze," "summarize," "create."

Avoid vague formulations like "tell me about" or "say something about." Prefer direct and specific instructions.

Step 4: Specify the output format

Indicate how you want to receive the response:

  • Bullet points or table
  • Number of words or paragraphs
  • Structure with titles and subtitles
  • Code with comments
  • Email format, blog article, LinkedIn post

Step 5: Add constraints and examples

Constraints refine the result. Examples show the AI exactly the style or format you want.

Constraint examples:

  • "Maximum 200 words"
  • "Professional but accessible tone"
  • "Don't use technical jargon"
  • "Include numerical data"

10 before/after examples to transform your prompts

Here are 10 common situations where a reformulated prompt completely changes the quality of the response. Practice these techniques with our interactive exercises.

Example 1: Writing an email

Before (vague prompt):
"Write a professional email."

After (optimized prompt):
"You are a professional communication assistant. Write a follow-up email to a client who hasn't responded to our quote sent 10 days ago. The tone should be courteous but assertive. The email is maximum 150 words. Include a catchy email subject and a clear call to action to schedule a call this week."

Example 2: Creating marketing content

Before:
"Write a LinkedIn post."

After:
"You are a copywriter specialized in personal branding on LinkedIn. Write a 200-word post on the theme 'the 3 mistakes entrepreneurs make when delegating to AI.' The tone is conversational and engaging. Start with a compelling hook (a question or statistic). End with an engagement call (open question). Use emojis sparingly."

Example 3: Summarizing a document

Before:
"Summarize this text."

After:
"Summarize this text in 5 key points as bullet points. Each point is maximum one sentence. Focus on actionable information and numerical data. Ignore introductory and concluding parts."

Example 4: Preparing for an interview

Before:
"Help me with a job interview."

After:
"You are a recruitment coach. I'm interviewing for a digital project manager position at a web agency. I have 3 years of project management experience. Generate 10 likely questions the recruiter might ask me, with for each one a response strategy in 2-3 sentences using the STAR method (Situation, Task, Action, Result)."

Example 5: Analyzing data

Before:
"Analyze these numbers."

After:
"You are a financial analyst. Here are the Q1 2026 sales figures: [data]. Analyze this data by identifying: (1) the 3 main trends, (2) anomalies or points of attention, (3) 2 actionable recommendations for Q2. Present the result as a table then a summary paragraph."

Example 6: Generating ideas

Before:
"Give me content ideas."

After:
"You are a content strategist specialized in B2B SaaS. My company sells a project management tool. Our audience: project managers and PMOs in companies (50-500 employees). Generate 15 SEO-optimized blog article ideas, classified by search intent (informational, navigational, transactional). For each idea, provide the title, target keyword, and recommended format."

Example 7: Writing code

Before:
"Write a JavaScript function."

After:
"You are a senior JavaScript/TypeScript developer. Write a function that validates a registration form with fields: email, password (min 8 characters, 1 uppercase, 1 number), password confirmation. The function returns an object with errors by field. Write in TypeScript with strict types. Add JSDoc comments and 3 test cases."

Example 8: Translating content

Before:
"Translate this text to English."

After:
"Translate this text from French to American English. Preserve the informal tone and cultural references (adapt them to American context if necessary). Digital marketing technical terms should remain in English. Format: translated text followed by a note on important translation choices."

Example 9: Planning a project

Before:
"Help me plan my project."

After:
"You are a senior PMP-certified project manager. I'm launching an e-commerce site for artisanal products. Budget: 5000 euros. Timeline: 3 months. Team: me + 1 freelance developer. Create a detailed timeline with: main phases, milestones, deliverables, and identified risks. Table format with columns: Week, Task, Responsible, Deliverable, Status."

Example 10: Correcting and improving text

Before:
"Correct this text."

After:
"You are a professional writer and proofreader. Correct this text by addressing: (1) spelling and grammar errors, (2) awkward phrasing, (3) clarity of overly long sentences. Preserve the author's style and tone. Present the corrected text, then list the 5 most important modifications with a brief explanation for each."

The 7 most common mistakes to avoid

Even with the right method, certain habits sabotage your prompts. Check out our comprehensive guide to common prompting mistakes to go further.

Mistake 1: Being too vague

"Tell me about marketing" will never give a good result. Always specify the subject, angle, and target audience.

Mistake 2: Asking for too many things at once

A prompt that asks to "write a complete business plan with market analysis, financial projections, and marketing strategy" is too ambitious. Break it down into several successive prompts.

Mistake 3: Forgetting the output format

If you don't specify the format, ChatGPT chooses for you — and it's not always what you need.

Mistake 4: Not iterating

The first result is rarely perfect. Use follow-up prompts to refine: "That's good, but make the tone more casual" or "Add concrete examples for point 3."

Mistake 5: Ignoring conversation context

ChatGPT remembers the ongoing exchange. Take advantage of this to build progressively rather than putting everything in one prompt.

Mistake 6: Using negations instead of positive instructions

Rather than "don't make long sentences," write "use sentences of maximum 20 words." Positive instructions are better understood.

Mistake 7: Not providing examples

When you want a specific style or format, show an example. "Few-shot prompting" (giving examples in the prompt) is one of the most powerful techniques for getting exactly what you want.

Advanced tips for even better prompts

Once you've mastered the basic method, here are advanced techniques to go further.

Chain-of-thought

Ask ChatGPT to reason step by step: "Think step by step before responding." This technique significantly improves responses on complex problems: calculations, logic, multi-criteria analysis.

In-depth role-play

Beyond the simple role, give a personality, constraints, and motivations: "You are a startup marketing director who must convince their skeptical CEO to invest in content marketing. You are pragmatic, ROI-oriented, and you communicate with data."

Meta-prompts

Ask ChatGPT to help you write better prompts: "I want to obtain [result]. What would be the ideal prompt I should write to you to get the best possible result?"

The audience persona technique

Specify not only who ChatGPT "is," but also who it's writing for: "Write for an audience of beginner freelancers who have no accounting knowledge." This automatically adjusts vocabulary and level of detail.

Structured iterative prompting

Structure your conversation in phases:

  1. Phase 1: "First, ask me 5 questions to understand my need well"
  2. Phase 2: "Now, propose 3 different approaches"
  3. Phase 3: "Develop approach 2 in detail"

Your perfect prompt checklist

Before sending your next prompt, check these points:

  • Role: Have you defined who ChatGPT is in this context?
  • Context: Does the AI have all the necessary information?
  • Instruction: Is your request precise with an action verb?
  • Format: Have you specified how you want the response?
  • Constraints: Are there limits or conditions to respect?
  • Example: Would an example help clarify your expectations?

To apply this checklist automatically, try our interactive prompt builder that guides you through each step.

Conclusion: practice makes perfect

Writing a good ChatGPT prompt isn't an innate gift — it's a skill that develops with practice. The 5-step method (role, context, instruction, format, constraints) works for 90% of use cases.

Most importantly: never stop at the first result. Prompting is a dialogue. Refine, specify, iterate. It's in successive exchanges that the magic of AI reveals itself.

Ready to put it into practice? Test your new skills with our interactive prompting exercises or explore our complete ChatGPT guide to discover even more techniques.

Stay Updated

Get our best articles and techniques every week.