Back to Blog

Prompt Engineering 101: Write Better AI Prompts

MiloDecember 14, 20253 min read
Prompt Engineering 101: Write Better AI Prompts

What is Prompt Engineering?

Prompt engineering is the art and science of crafting inputs that produce desired outputs from AI systems. A well-written prompt can be the difference between useless garbage and brilliant results.

Core Principles

1. Be Specific

Vague prompts produce vague results. Include details about format, length, style, and audience.

Bad: Write about marketing

Good: Write a 500-word blog post about email marketing strategies for small e-commerce businesses, including 3 actionable tips with examples

2. Provide Context

Help the AI understand the situation. Background information leads to more relevant responses.

Bad: How should I respond?

Good: Im a customer service representative. A customer is upset because their order arrived damaged. How should I respond to acknowledge their frustration while offering a solution?

3. Define the Output Format

Tell the AI exactly how you want the response structured.

Examples:

  • Respond in bullet points
  • Format as a numbered list
  • Include headers and subheaders
  • Provide a table comparing options

4. Use Role-Playing

Assigning a role or persona can improve response quality.

Example: You are an experienced financial advisor. Explain the pros and cons of investing in index funds to a beginner.

Advanced Techniques

Chain of Thought

Ask the AI to show its reasoning step by step.

Prompt: Lets think through this step by step. What factors should I consider when choosing a laptop for video editing?

Few-Shot Learning

Provide examples of the format or style you want.

Prompt: Convert these sentences to past tense:

  • I walk to work (I walked to work)
  • She eats breakfast (She ate breakfast)
  • They run fast (

Iterative Refinement

Build on previous outputs through conversation.

  1. Generate initial draft
  2. Ask for specific improvements
  3. Request additions or changes
  4. Polish the final version

Image Prompt Tips

For Midjourney, DALL-E, and similar tools:

Include:

  • Subject description
  • Art style or medium
  • Lighting conditions
  • Color palette
  • Mood or atmosphere
  • Camera angle or composition

Example: A cozy coffee shop interior, watercolor painting style, warm golden lighting, autumn color palette, peaceful atmosphere, wide-angle view showing customers and barista

Use Modifiers:

  • highly detailed
  • photorealistic
  • cinematic lighting
  • trending on artstation
  • 4k, 8k resolution

Common Mistakes

Being Too Brief

More context usually means better results. Dont be afraid of longer prompts.

Contradictory Instructions

Avoid asking for opposing qualities like brief and comprehensive in the same prompt.

Assuming Knowledge

Dont assume the AI knows your specific context. Provide relevant background.

Not Iterating

The first response is rarely perfect. Refine and ask follow-up questions.

Templates for Common Tasks

Writing:

Write a [type] about [topic] for [audience]. The tone should be [tone]. Include [specific elements]. Length: [word count].

Analysis:

Analyze [subject] considering [factors]. Provide [number] key insights and recommendations.

Problem-Solving:

I need to [goal]. My constraints are [limitations]. What are my options, and which do you recommend?

Conclusion

Prompt engineering is a skill that improves with practice. Experiment with different approaches, save prompts that work well, and keep refining your technique.

Milo

Milo

Milo covers AI coding tools and developer workflows for the Scout AI Team — the same agentic stack that builds and ships this site.

Prompt Engineering 101: Write Better AI Prompts | AIToolScout