Mastering the Perfect ChatGPT Prompt: A Detailed Breakdown
- Nerds Talk AI
- 20 feb.
- 4 min läsning
Uppdaterat: 25 feb.
Below is a detailed breakdown of each step, along with practical examples on how to apply them.
The Six Key Components of a Good Prompt
To consistently generate high-quality responses from ChatGPT or Google Bard, you need to structure your prompt using these six components in order of importance:

Task – What you want the AI to do (the most critical step).
Context – Background information to help the AI understand the task.
Exemplars – Examples or structures to guide the AI.
Persona – Defining the “role” the AI should assume.
Format – How you want the response structured.
Tone – The style or feeling of the response.
💡 Key Insight: You don’t need all six components in every prompt, but including more of them ensures better and more precise responses.
1. Task – The Foundation of Every Prompt (01:28)
Every prompt must have a clearly defined task, or else the AI will not generate meaningful responses.
The task should be written as a clear instruction.
Best Practices for Writing a Task:
✔ Start the task sentence with an action verb:
“Generate an article about AI’s impact on marketing.”
“Analyze user feedback and identify the top three issues.”
✔ Clearly define the expected outcome:
Should it be a short list? A detailed analysis?
✔ Break down complex tasks into steps:
Example: "Analyze 100 customer reviews → Identify the three most common complaints → Categorize them by department responsible for resolution.”
💡 Key Insight: Without a clearly defined task, the response will be vague and imprecise.
2. Context – Providing Background for Better Results
Context helps the AI generate a response that is relevant to your situation.
Too much information can be overwhelming and lead to unnecessarily long responses.
Three Questions to Determine the Right Amount of Context:
What is the user’s background?
Example: Is the user a beginner or an expert on the topic?
What does success look like?
Example: Do you want a detailed analysis or a quick summary?
What environment is the user in?
Example: "I am a 70kg male trying to gain muscle and can only work out twice a week."
💡 Key Insight: Provide just enough context—enough for the AI to understand the task, but not so much that it gets overwhelmed.
3. Exemplars – Enhancing Output with Examples (02:57)
Research shows that when AI is given examples, the quality of the response improves significantly.
Examples can take different forms:
Structures: "Answer using the STAR method (Situation, Task, Action, Result)."
Reference material: "Use the same style as this LinkedIn job post."
Example sentences: "Rewrite this sentence to sound more professional."
Example: How Exemplars Improve Responses
❌ Without an example:
"Write a strong job description."
✅ With an example:
"Write a job description similar to this LinkedIn post but tailored for our marketing department."
💡 Key Insight: AI performs better when given a concrete reference to follow.
4. Persona – Defining AI’s Role for More Contextual Responses
Ask the AI to act as a specific expert to get more specialized responses.
Examples:
"You are an experienced recruiter. Write a job description."
"You are a doctor specializing in sports injuries. Give advice on knee problems."
You can reference famous people (e.g., "Write this in Warren Buffett’s style").
AI can also take on fictional personas (e.g., "Write an email from Batman to a company").
💡 Key Insight: Defining a persona makes the response more credible and relevant.

5. Format – Structuring the Output for Readability
Many users forget to specify a format, leading to unstructured responses.
Examples of useful formats:
Tables: "List the problems in a table with three columns: Issue, Cause, Solution."
Bullet points: "Summarize the key insights as bullet points."
Markdown: "Write the response using H2 headings and short paragraphs."
💡 Key Insight: If you have a specific structure in mind, specify it in your prompt for better results.
6. Tone – Adjusting the Style of the Response
Do you want the response to be formal, casual, humorous, or serious?
Examples of tone adjustments:
"Write in a professional and factual manner."
"Use a lighthearted and humorous tone."
"Write like an inspiring speaker."
Pro Tip: If unsure, ask ChatGPT for tone suggestions:
"I want to sound professional but not too stiff. Give me five tone options."
💡 Key Insight: The tone affects how the response is perceived—choose wisely.
Example of a Complete Prompt with All Six Components
Weak Prompt:"I launched the Apple Car and got 12,000 pre-orders. Write an email to my boss."
Strong Prompt with All Six Components:"You are a senior product marketing manager at Apple (persona). You have just launched the Apple Car in collaboration with Tesla and received 12,000 pre-orders, which is 200% above target (context). Write an email to your boss, Tim Cook, presenting this result (task). The email should include a TL;DR section, project background, business results, and a closing acknowledgment for the product and engineering teams (format). Use a professional yet enthusiastic tone (tone)."
💡 Key Insight: Including more components makes the response more detailed and useful.
The Difference Between a Weak and Strong Prompt
A weak prompt produces generic, vague responses.
A well-structured prompt results in highly specific, context-aware responses.
What’s Next?
The next video will cover advanced prompt optimization techniques.
Subscribe to stay updated on ChatGPT and productivity tips.
Final Summary: How to Build the Perfect ChatGPT Prompt
Start with a clear task.
Provide just enough context.
Include exemplars to guide the AI.
Define a persona for expert-level responses.
Specify a format to improve readability.
Adjust the tone to match your audience.
💡 By mastering these six steps, you can create AI prompts that consistently generate high-quality responses.
This was very helpful thank you