Back
10 min read

How to Write Better Text Prompts for ChatGPT, Claude and LLMs

Learn proven techniques to create prompts that get better results from ChatGPT, Claude, Gemini and other AI models.

Share with more people:

Getting good results from AI models like ChatGPT, Claude, or Gemini depends on one thing: how you write your prompts. Most people write vague requests and get disappointing results.

But with the right techniques, you can get professional-quality outputs that save hours of work. This guide shows you proven strategies to write prompts that work every time.

Table of Contents

Why Better Prompts Get Better Results

Prompt engineering means designing inputs to get the best outputs from AI models. Unlike coding where you write exact instructions, prompts use natural language to guide AI toward what you want.

The difference between good and bad prompts is huge. Companies see 300-500% productivity gains by mastering these techniques. A well-crafted prompt can turn generic content into professional-grade work.

Bad PromptGood PromptResult Quality
Write about marketingWrite 500 words about email marketing for SaaS companies3x better
Help with my resumeReview my marketing manager resume and suggest 5 improvements5x better
Create social postsWrite 3 LinkedIn posts about productivity tips for remote workers4x better

The best part? You can test and improve prompts instantly. No expensive training or technical knowledge needed.

Be Clear and Specific

Clear communication is the foundation of good prompting. AI models follow specific instructions well but struggle with vague requests.

❌ Bad Prompt:

Write about marketing

✅ Better Prompt:

Write a 500-word blog post about email marketing for SaaS companies.
Include 3 strategies and real examples that marketing managers can use this week.

🌟 Best Prompt:

You are a SaaS marketing expert. Write a 500-word blog post titled
"3 Email Strategies That Boosted Our Conversions 40%"
 
Target: Marketing managers at B2B SaaS companies (10-100 employees)
Tone: Professional but conversational
Structure:
- Strong opening hook
- 3 main strategies (150 words each)
- Include: what it is, how to do it, expected results
- End with clear next steps
 
Focus on practical tips, not theory.

Notice how the best prompt includes context, constraints, structure, and success criteria. This level of detail dramatically improves results.

Use Examples to Show What You Want

Examples are one of your most powerful tools. They show AI exactly what you want, reducing guesswork and improving consistency.

Here's how to use examples effectively:

  • Single example: Shows basic format and style
  • Multiple examples: Shows patterns and variations
  • Contrasting examples: Shows what to do vs. avoid

Example-Driven Prompt:

Create product descriptions using this template:
 
Example - Tech Product:
Product: Wireless Headphones
Description: "🎧 Studio-quality sound anywhere. Features: 40hr battery,
noise cancellation, comfortable fit. Perfect for: commutes, gaming, workouts.
⭐ 4.8/5 rating from 2,000+ customers. Free shipping + 30-day returns."
 
Now create descriptions for:
1. Stainless Steel Water Bottle (24oz, insulated)
2. LED Desk Lamp (adjustable, USB charging)

This approach gives AI multiple reference points and shows formatting patterns clearly.

Ask AI to Think Step by Step

Chain-of-thought prompting makes AI show its reasoning process. This leads to more accurate and thoughtful responses, especially for complex tasks.

Basic Analysis Prompt:

Analyze this business idea: subscription box for office supplies

Step-by-Step Analysis Prompt:

Analyze this business idea: "Monthly subscription box for remote worker supplies"
 
Think through this systematically:
 
First - Market opportunity:
- Who is the target customer?
- What problem does this solve?
- Market size potential?
 
Then - Competition:
- Main competitors?
- Our advantages/disadvantages?
- How different is this?
 
Next - Business model:
- Revenue streams and pricing
- Unit economics
- Scalability factors
 
Finally - Risks:
- Operational challenges
- Customer acquisition costs
- Supply chain issues
 
End with: Should we pursue this? Why? What does success look like?

This structured approach guides AI through comprehensive analysis rather than surface-level observations.

Organize Prompts with XML Tags

XML tags help organize complex prompts and ensure AI understands exactly what you need. They're especially useful for multiple tasks or specific output formats.

Unorganized Prompt:

Summarize this article and create social posts: [article text]

Organized with XML Tags:

<article>
[article text here]
</article>
 
<task>
Create social media content from this article
</task>
 
<requirements>
1. Write 2-sentence summary of main insight
2. Create LinkedIn post (150-200 words, professional tone)
3. Create 3 Twitter posts (280 chars each, casual tone)
4. Include relevant hashtags
</requirements>
 
<format>
<summary>[summary here]</summary>
<linkedin>[LinkedIn post here]</linkedin>
<twitter>[Twitter posts here]</twitter>
</format>

XML tags make complex requests clearer and ensure you get the exact format you need.

Give AI a Role or Character

Assigning a specific role dramatically improves response quality. This taps into the model's training on expert content in various domains.

TaskEffective RoleWhy It Works
Resume reviewSenior HR recruiterKnows what hiring managers want
Business analysisManagement consultantStructured analytical thinking
Technical writingSenior software engineerUnderstands complex concepts
Marketing copyDirect response copywriterFocuses on conversions

Role-Based Prompt Example:

You are a senior executive recruiter specializing in marketing roles at
high-growth SaaS startups. You've placed 200+ marketing professionals.
 
I'm applying for Senior Marketing Manager at Series A-B startups.
Background: 5 years digital marketing, paid acquisition, content, automation.
 
Review my resume and provide:
1. Specific improvements for each section
2. Keywords for ATS optimization
3. Ways to highlight startup experience
4. Red flags that concern hiring managers
5. Overall positioning strategy
 
Be direct and actionable - I'm applying this week.

This establishes expertise, provides context, and requests actionable advice with appropriate urgency.

Start the Response for AI

Response prefilling lets you start AI's response in a specific direction. This ensures consistent formatting and tone.

Without Prefilling:

Write a customer service email for delayed shipping complaint

With Prefilling:

Write a professional customer service email for this complaint:
"My order was supposed to arrive 3 days ago. No updates. Unacceptable.
I need this for an important event."
 
Tone: Apologetic but solution-focused
Length: 150-200 words
Include: Next steps, compensation, timeline
 
Start with:
"Dear [Customer Name],
I understand how frustrating this delay must be, especially with your
important event approaching."

This ensures the response starts correctly while giving clear parameters for the rest.

Break Complex Tasks into Steps

For big projects, breaking tasks into smaller steps often works better than one massive prompt. Each step gets full attention.

Instead of: "Create a complete marketing campaign"

Try this sequence:

  1. "Analyze target market for sustainable fashion among millennials"
  2. "Create content strategy based on this analysis"
  3. "Write 5 blog post outlines using this strategy"
  4. "Create social posts promoting these articles"

This approach lets you refine each step and ensures higher quality throughout.

Advanced Tips That Work

Control Consistency: More specific prompts produce more consistent outputs. Instead of "write creatively," try "write in the style of a tech journalist for Wired magazine."

Preserve Context: For long conversations, summarize key points: "So far we've established: target is small businesses, budget is $5K, goal is lead generation."

Prevent Errors: Include what NOT to do: "Don't include pricing, avoid jargon, don't mention competitors by name."

Build in Improvement: "After your response, review it and suggest one specific improvement."

Looking to understand AI systems better? Check out our comprehensive guide to AI agents and how they work for advanced applications.

Mistakes That Hurt Your Results

Over-complicating: Adding unnecessary complexity confuses rather than clarifies. Keep instructions simple but specific.

Being too vague: Expecting AI to read your mind. Always provide context and constraints.

Not testing variations: Your first prompt is rarely your best. Test different approaches and refine based on results.

Ignoring model strengths: Each AI has different capabilities. Understanding AI fundamentals helps you choose the right tool.

Forgetting about bias: AI can perpetuate training data biases. Always review outputs critically, especially for sensitive topics.

For deeper understanding of how these models work, explore our guide on what LLMs are and how they function.

Frequently Asked Questions

What makes a good prompt for text generation?

Good prompts are specific, clear, and include context. They define the task, audience, tone, and desired output format. Instead of "write about marketing," use "write a 500-word email marketing guide for small business owners."

Should I use examples in my prompts?

Yes, examples dramatically improve output quality. They show the AI exactly what you want instead of relying on vague descriptions. Use 1-3 examples to establish patterns and style.

What's the difference between chain-of-thought and regular prompting?

Chain-of-thought prompting asks the AI to show its reasoning step-by-step, leading to more accurate and thoughtful responses. Regular prompting just asks for the final answer.

How long should my prompts be?

Length matters less than clarity. Include enough detail to be specific, but avoid unnecessary complexity that confuses the AI. Most effective prompts are 50-200 words.

Do XML tags really help with prompts?

Yes, XML tags help organize complex requests and ensure the AI understands different sections of your prompt clearly. They're especially useful for multi-part tasks or specific output formatting.

Conclusion

Writing better prompts is now a essential skill for working with AI. The techniques in this guide help you consistently get high-quality text from any AI model.

Start with clear, specific prompts. Add examples and structure. Try advanced techniques as you get comfortable. Remember that effective AI collaboration requires practice and iteration.

The key principles never change: clarity, specificity, context, and structure. Master these, and AI becomes a powerful, predictable tool that amplifies your capabilities.

Those who learn to collaborate effectively with AI will have a significant advantage. Start practicing these techniques today and see the difference in your results immediately.

Share with more people:

Join Our Newsletter