How to Write a Good AI Prompt: 10-Step Formula 2026

Last Updated: September 27, 2026

Quick answer: A good AI prompt clearly tells the AI what to do, who the result is for, what information to use, what requirements to follow, and how the final answer should look. You do not need an extremely long prompt. You need enough relevant information to remove ambiguity and define what a useful answer looks like.

A vague prompt leaves important decisions to the AI.

A specific prompt gives it a clearer target.

For example:

Write a blog post about AI.

This tells the AI very little about the intended result.

Compare it with:

Write a 1,500-word beginner-friendly article explaining how AI productivity tools can help small-business owners save time. Cover research, writing, customer support, and content creation. Use practical examples, descriptive H2 headings, short paragraphs, and a neutral educational tone. Avoid unsupported claims.

The second prompt gives the AI a topic, audience, purpose, scope, structure, tone, and boundaries.

That is the foundation of effective prompt writing.

In this guide, you will learn a practical 10-step formula for writing better AI prompts, see before-and-after examples, and get reusable templates for writing, research, coding, studying, brainstorming, and other common AI tasks.

If you are completely new to prompting, start with Promptenza’s Prompt Anatomy: Parts of an Effective AI Prompt, which explains the individual components that make up a strong prompt.

Why Your AI Prompts May Not Be Working

You type:

“Write a blog post about AI.”

The AI produces an article.

Technically, it followed the instruction.

But the result may be generic because the prompt leaves many decisions unanswered.

What audience is the article for?

How long should it be?

What part of AI should it cover?

What tone should it use?

What examples should it include?

What should the reader learn?

Now try:

“Write a 1,500-word beginner-friendly article explaining how AI productivity tools can help small-business owners save time. Cover research, writing, customer support, and content creation. Use practical examples, descriptive H2 headings, short paragraphs, and a neutral educational tone. Avoid unsupported claims.”

The difference is not simply that the second prompt is longer.

It is that the second prompt reduces ambiguity.

A useful prompt gives the AI enough information to understand the desired outcome without filling important gaps with assumptions.

The most common reasons an AI prompt produces a poor result

Your prompt may need improvement when:

  • The task is too vague.
  • The AI does not know who the audience is.
  • Important context is missing.
  • The requested output is unclear.
  • Multiple instructions conflict.
  • The scope is too broad.
  • You have not specified important constraints.
  • The AI is expected to know information you have not provided.
  • You have not explained what a successful result looks like.
  • You accepted the first response instead of refining the prompt.

The solution is usually not “make the prompt much longer.”

The better solution is to identify what information is missing.

For more detail on individual prompt components, see AI Prompt Structure: 7 Essential Parts of an Effective Prompt and AI Prompt Constraints: How to Control AI Responses.

The 10-Step AI Prompt Formula

Use this structure when you are working on an important task:

1. Goal
2. Role
3. Task
4. Context
5. Audience
6. Requirements
7. Constraints
8. Examples
9. Output format
10. Review and refinement

You do not have to use all ten components in every prompt.

A simple question may only need a task and a little context.

A complex research, writing, coding, or analysis task may benefit from several components.

Think of the formula as a prompt-building checklist, not a rule that every prompt must follow.

The formula in one example

Goal: Create a useful beginner guide
Role: Act as an experienced AI educator
Task: Explain how generative AI works
Context: The reader has never studied AI
Audience: Beginners
Requirements: Cover the basic process and three practical examples
Constraints: Avoid unnecessary technical jargon
Examples: Include one everyday analogy
Output: Use descriptive headings and short paragraphs
Review: Check the explanation for unclear terminology and unsupported claims

This gives the model a much clearer definition of the intended result.

Google’s current Search guidance also emphasizes clear organization and useful content created primarily for people, rather than content created mainly to manipulate search rankings.

1. Define Exactly What You Want

Start with the outcome.

Instead of:

“Help me with my website.”

Try:

“Create 15 article ideas for a website that teaches beginners how to use AI tools.”

The second prompt gives the AI a specific goal.

An even stronger version could be:

“Create 15 article ideas for a beginner-focused AI education website. Group them into prompting, AI tools, productivity, and tutorials. For each idea, provide the search intent, reader problem, and recommended content angle.”

Now the desired output is much clearer.

A simple test

Before sending your prompt, complete this sentence:

“I want the AI to…”

If you cannot finish that sentence clearly, your prompt probably needs more work.

Another useful question is:

“What would a successful answer contain?”

Write that down before adding unnecessary instructions.

2. Give AI a Role When It Actually Helps

A role can provide useful perspective.

For example:

“Act as an SEO content strategist.”

Then:

“Act as an SEO content strategist. Identify content opportunities for a website targeting people who are learning AI.”

Roles can be particularly useful for:

  • Writing
  • Coding
  • Research
  • Marketing
  • Education
  • Analysis
  • Editing

However, a role is not a magic command.

“Act as the world’s greatest expert…”

does not automatically make an answer accurate.

The model still needs relevant context, a clear task, and appropriate requirements.

For many straightforward questions, you may not need a role at all.

Use a role when the perspective or expertise is genuinely useful to the task.

3. Make the Task Specific

This is where many weak prompts fail.

Compare:

Weak

Improve this article.

Better

Rewrite this article to improve clarity and remove repetition.

Much better

Rewrite this article for beginners. Improve clarity, remove repetitive sections, preserve the original facts, and organize the content with descriptive headings. Keep useful examples and explain technical terms in plain language.

The AI now has a clearer definition of what “improve” means.

This principle applies to almost every AI task.

Instead of:

“Analyze this.”

say:

“Analyze this report for its three main findings, supporting evidence, limitations, and unanswered questions. Present the findings in a table.”

Instead of:

“Make this better.”

say:

“Rewrite this introduction to make the main argument clearer, remove repetition, and maintain the original meaning.”

Specific verbs produce clearer tasks.

Useful verbs include:

  • Explain
  • Compare
  • Summarize
  • Rewrite
  • Extract
  • Classify
  • Analyze
  • Generate
  • Organize
  • Transform
  • Evaluate
  • Brainstorm
  • Outline

4. Give the AI the Context It Needs

Context can completely change an AI response.

Compare:

Write an email announcing a new product.

with:

Write an email announcing a new budget smartphone to university students. The phone’s main selling points are battery life, camera quality, and affordability.

The second prompt provides information the AI can actually use.

Context can include:

  • Background information
  • Existing text
  • Relevant data
  • Previous decisions
  • Business information
  • Target audience
  • Technical environment
  • Learning level
  • The purpose of the task

However, more context is not automatically better.

Include context that affects the answer.

For example, if you are asking AI to rewrite an email, the recipient, purpose, existing email, desired tone, and important facts may matter. Your entire company history probably does not.

For a deeper explanation of how prompt components work together, see Prompt Anatomy.

5. Tell AI Who Will Read the Result

The same topic can require completely different answers depending on the audience.

Beginner

Explain machine learning to someone who has never studied computer science.

Student

Explain machine learning to a high-school student preparing for an introductory computer science exam.

Professional

Explain machine learning to a marketing professional who understands basic data analysis.

The audience can affect:

  • Vocabulary
  • Depth
  • Examples
  • Tone
  • Complexity
  • Structure
  • Assumptions

For example, the prompt:

Explain cybersecurity.

is incomplete if the desired audience matters.

Compare:

Explain the basics of cybersecurity to a small-business owner with no technical background. Focus on practical risks and everyday protective measures. Avoid unnecessary technical terminology.

The audience immediately gives the AI more direction.

6. Tell AI What Must Be Included

If something matters, do not leave it to chance.

For example:

Create a beginner guide to email marketing. Include what email marketing is, how it works, three common strategies, five practical examples, and mistakes beginners should avoid.

You can also use a checklist:

Include:

  • Definition
  • Three examples
  • Common mistakes
  • Practical tips
  • Conclusion

This gives the model a clear content target.

You can also distinguish between required and optional information.

For example:

Required: explain the three main concepts and provide two examples for each.

Optional: include a short historical background if relevant.

That can prevent less-important information from taking over the response.

7. Set Useful Constraints

Constraints tell the AI where the boundaries are.

Examples:

Keep the answer under 500 words.

Use exactly five bullet points.

Avoid technical jargon.

Use only the information provided.

Do not repeat the same idea.

Write for beginners.

Constraints are particularly useful when the exact shape of the answer matters.

For example:

Explain blockchain in 300 words using one simple analogy. Avoid unnecessary technical jargon and finish with three key takeaways.

That is easier to control than:

Explain blockchain.

But avoid adding restrictions just because you can.

A prompt containing 20 unnecessary rules can become harder to follow than a prompt containing five useful ones.

For a deeper guide, see AI Prompt Constraints: How to Control AI Responses.

8. Show an Example When the Pattern Matters

Sometimes showing the AI what you want is more effective than explaining it.

For example:

“The product arrived early.” → Positive

“The package arrived damaged.” → Negative

“The order arrived yesterday.” → Neutral

Then:

“The product works well, but delivery was late.”

Classify the review.

The examples demonstrate the pattern the model should follow.

This is commonly called Few-Shot Prompting.

If the task is straightforward and examples are unnecessary, you can use Zero-Shot Prompting instead.

When should you provide examples?

Examples are particularly useful when:

  • The desired format is unusual.
  • The classification rules are specific.
  • You want a particular writing pattern.
  • The task contains subtle distinctions.
  • A previous response shows the model misunderstood your desired format.

A good example should demonstrate the pattern, not simply add more words.

9. Specify Exactly How You Want the Answer

Do not just ask for information.

Tell the AI how you want it organized when structure matters.

For example:

Compare five AI writing tools in a table with these columns:

Tool | Best For | Main Strength | Limitation | Free Option

You can also specify:

Return the answer as five numbered steps.

Or:

Start with a two-sentence answer, followed by a comparison table and three practical recommendations.

This is particularly useful for:

  • Research
  • Comparisons
  • Data extraction
  • Content planning
  • Business analysis
  • Reports
  • Study materials

Google also recommends descriptive headings and crawlable internal links because they help users and search systems understand and discover site content.

10. Don’t Stop After the First Response

This is one of the most important prompt-writing habits.

Your first prompt does not have to produce the final answer.

If the result is too generic, diagnose why.

Too generic?

Add context.

Too long?

Add a length constraint.

Wrong format?

Specify the structure.

Missing important information?

Add requirements.

Wrong tone?

Define the audience and tone.

Contains unsupported claims?

Ask the AI to distinguish known information from uncertainty and verify important claims independently.

Then try again.

This iterative process is an important part of practical prompt engineering.

For a deeper guide, see Prompt Engineering.

A practical refinement loop

Use:

Prompt → Inspect → Diagnose → Refine → Test

For example:

First prompt: Explain AI agents.

The response is too technical.

Refinement: Explain AI agents to a beginner using plain language and three everyday examples. Define unfamiliar technical terms when they first appear.

The response is now too long.

Refinement: Keep the explanation under 500 words and focus only on what AI agents are, how they differ from ordinary chatbots, and three practical examples.

This is often more effective than trying to create a perfect prompt on the first attempt.

The Before-and-After Prompt Test

Here is a practical way to understand prompt quality.

Prompt A

Write a social media post about my business.

Prompt B

Create five Facebook post ideas for a small online clothing business targeting university students. Focus on affordable everyday outfits. Use a friendly, modern tone. Give each post a short caption and a call to action.

Prompt B contains more useful information about the intended result.

It tells the AI:

  • What to create
  • How many
  • Who it is for
  • What the topic is
  • What tone to use
  • What each result should contain

That is what good prompt writing is about: giving the AI the information it needs to make fewer unnecessary assumptions.

The 30-Second Prompt Checklist

Before submitting an important prompt, check:

☐ Is the goal clear?
☐ Did I define the task?
☐ Does the AI have enough context?
☐ Did I identify the audience?
☐ Did I specify important requirements?
☐ Are there useful constraints?
☐ Would an example help?
☐ Did I specify the output format?
☐ Are any instructions contradictory?
☐ Do I know what a successful answer looks like?

If several boxes are missing, improve the prompt before sending it.

For complex prompts, you can also use Promptenza’s Prompt Anatomy guide as a component-by-component checklist.

The One Prompt Formula to Remember

If you do not want to memorize ten steps, remember this:

ROLE + TASK + CONTEXT + REQUIREMENTS + CONSTRAINTS + OUTPUT

For example:

Role: Act as an experienced SEO content strategist.

Task: Create 10 article ideas.

Context: The website teaches beginners how to use AI tools.

Requirements: Include a title, keyword, search intent, and content angle.

Constraints: Avoid duplicate topics and overly technical subjects.

Output: Return the ideas in a table.

This is enough structure for many everyday AI tasks.

However, you do not need to force every component into every prompt.

For a simple question:

Explain opportunity cost using two everyday examples.

may be completely sufficient.

Don’t Make Your Prompts Longer Just for the Sake of It

This deserves special attention.

A common misconception is:

Longer prompt = better AI answer

That is not necessarily true.

Consider:

Explain photosynthesis to a beginner in 250 words using a simple analogy and three key points.

It is short.

But it provides:

  • Topic
  • Audience
  • Length
  • Explanation style
  • Structure

A much longer prompt containing irrelevant instructions could actually be less useful.

The goal is not maximum detail. It is useful detail.

A good prompt should provide the information that changes the desired answer.

How to Write Prompts for Different AI Tasks

The formula changes slightly depending on what you are doing.

Writing Prompts

Focus on:

Audience + purpose + tone + structure + length

Example:

Rewrite this product description for first-time buyers. Keep it under 150 words, use a clear and trustworthy tone, preserve the factual claims, and finish with three concise benefits.

For practical workflows, explore ChatGPT Writing.

Research Prompts

Focus on:

Question + scope + sources + time period + output

Example:

Research the development of generative AI from 2023 to 2026. Focus on major technical developments and documented product changes. Separate established facts from company claims and present the findings chronologically.

See ChatGPT Research for a deeper research workflow.

Coding Prompts

Focus on:

Language + environment + existing code + problem + expected behavior + constraints

Example:

Review this Python function. Identify the bug, explain why it occurs, provide a corrected version, and include a small test case. Do not change the function’s public interface.

See ChatGPT Coding for a deeper coding workflow.

Image Prompts

Focus on:

Subject + composition + environment + lighting + style + perspective

Example:

Create a clean editorial illustration of a student using an AI study assistant at a desk. Use a modern educational setting, wide composition, soft studio lighting, and leave negative space on the right for a headline.

Learning Prompts

Focus on:

Topic + learning level + goal + explanation style + practice

Example:

Teach me the basics of probability at a high-school level. Explain the core concepts with simple examples, then give me five practice questions without answers.

When One Prompt Isn’t Enough

Complex tasks sometimes work better when you break them into stages.

For example:

Research

↓

Organize findings

↓

Create outline

↓

Write draft

↓

Review

↓

Improve

Instead of asking AI to perform all six tasks simultaneously, connect them together.

This is called Prompt Chaining.

Prompt chaining is particularly useful when each stage depends on the result of the previous stage.

For example:

Stage 1: Identify the main research questions.

Stage 2: Organize the information relevant to each question.

Stage 3: Build an outline from the organized information.

Stage 4: Draft the article from the approved outline.

Stage 5: Review the draft for missing evidence and unclear explanations.

This can make complicated workflows easier to inspect and correct.

Build Your Own Prompt Library

Once you find prompts that consistently work, save them.

Create categories such as:

  • Writing
  • Research
  • SEO
  • Coding
  • Students
  • Business
  • Marketing
  • Productivity
  • Image generation
  • Content creation

You can also explore Promptenza’s Prompt Library for reusable prompt ideas.

The goal is not to copy the exact same prompt forever.

It is to build reusable templates that you can adapt to different tasks.

A useful template should contain placeholders such as:

[AUDIENCE]
[TASK]
[CONTEXT]
[REQUIREMENTS]
[CONSTRAINTS]
[OUTPUT FORMAT]

That makes the prompt easier to reuse without turning every task into a completely new prompt.

5 Prompt Templates You Can Start Using Today

Writing

Rewrite the following [CONTENT] for [AUDIENCE]. Keep the original meaning, improve clarity, remove repetition, and use a [TONE] tone. Preserve factual claims and do not invent information.

Research

Research [TOPIC] for [AUDIENCE]. Focus on [KEY AREAS]. Organize the findings into [OUTPUT FORMAT]. Separate established information from uncertain claims and identify information that requires verification.

Learning

Teach me [TOPIC] at a [LEVEL] level. Explain it step by step, give me practical examples, then test my understanding with five questions. Do not give me the answers until I attempt them.

Brainstorming

Generate [NUMBER] ideas for [GOAL]. Prioritize ideas that meet [CRITERIA]. Avoid [THINGS TO AVOID]. Briefly explain the reasoning behind each idea and present the results as [FORMAT].

Content Creation

Create [CONTENT TYPE] about [TOPIC] for [AUDIENCE]. The goal is [GOAL]. Include [REQUIREMENTS], use a [TONE] tone, and present the result in [FORMAT]. Avoid unsupported claims and unnecessary repetition.

How to Get Better Results From ChatGPT, Gemini and Claude

The basic principles of good prompt writing apply across AI platforms.

You can use the same fundamental structure:

Goal → Context → Instructions → Constraints → Output

However, do not assume that a prompt that works perfectly in one AI system will produce identical results in another.

Different models and tools can have different capabilities, interfaces, context limits, and behaviors.

That is why important prompts should be tested in the environment where you intend to use them.

For example, a prompt requiring a specific output format should be checked after you run it rather than assuming the model will always follow the requested structure perfectly.

For more practical AI workflows, explore:

The underlying principle remains the same: make the desired result clear and provide the information necessary to produce it.

Questions People Ask About AI Prompt Writing

What is the best way to write an AI prompt?

Start by clearly defining what you want the AI to accomplish. Then provide relevant context, specify important requirements and constraints, and explain how you want the final answer structured.

For complex tasks, add the audience, examples, or success criteria when they materially affect the result.

What are the 5 parts of a good AI prompt?

A practical five-part structure is task, context, instructions, constraints, and output format.

Depending on the task, you may also benefit from a role, examples, audience information, and success criteria.

There is no single universal prompt formula that must be used for every task.

How long should an AI prompt be?

There is no fixed ideal length.

A prompt should be long enough to provide the information the AI needs, but short enough to avoid unnecessary instructions and irrelevant context.

The best prompt is generally the one that gives enough information to define the desired result without adding information that does not affect the task.

Why are my AI prompts not working?

Common reasons include vague instructions, insufficient context, conflicting requirements, missing output specifications, or unrealistic expectations.

Start by identifying exactly what went wrong with the previous response.

Then change the part of the prompt responsible for the problem.

Should I use examples in my AI prompts?

Use examples when the AI needs to understand a particular pattern, classification system, tone, structure, or style.

This is commonly called few-shot prompting.

Examples are less necessary when the task is already straightforward and the desired output is obvious.

Can I use the same prompt with different AI tools?

Often yes, but the results may differ.

ChatGPT, Gemini, Claude, and other AI systems can have different capabilities and behaviors, so important prompts should be tested on the platform where you intend to use them.

Final Takeaway

The secret to writing better AI prompts is not adding more words.

It is removing uncertainty.

Tell the AI what you want, give it the context it needs, explain who the result is for, define important requirements, add constraints when necessary, specify the output format, and refine the prompt when the result misses the target.

The most useful prompt structure to remember is:

Goal → Task → Context → Requirements → Constraints → Output

You can then add roles, examples, audience information, and review criteria when they genuinely improve the task.

Once you understand these fundamentals, you can create better prompts for writing, research, coding, studying, marketing, image generation, content creation, and everyday AI tasks.

And when you want to go deeper, start with Prompt Anatomy, then explore Prompt Engineering, AI Prompt Structure, and AI Prompt Constraints.

The goal is not to write longer prompts. It is to write clearer prompts that give the AI enough information to produce a useful result.

Explore More on Promptenza

ChatGPT vs Gemini vs Claude: Which AI Is Best in 2026?

15 ChatGPT Features You Probably Aren’t Using Yet in 2026

25 Best Free AI Tools in 2026 for Work, Study, Writing & More

How to Use AI to Learn Faster: 20 Powerful Prompts for Students

Best AI Tools for Students in 2026: 15 Tools for Studying

Gemini vs ChatGPT: What’s the Difference?

AI Prompt Structure: 7 Essential Parts of an Effective Prompt

AI Prompt Constraints: How to Control AI Responses

The Best AI Image, Video & Writing Tools in 2026

About Promptenza Editorial Team

The Promptenza Editorial Team creates practical guides, prompt templates, AI tool resources, and educational content designed to help readers use generative AI more effectively.

Last Updated September 27, 2026

Promptenza Editorial Team
ABOUT THE AUTHOR

Promptenza Editorial Team

AI, prompting & AI tools research

The Promptenza Editorial Team creates practical, research-based guides on AI prompting, artificial intelligence tools, emerging AI models, and real-world AI applications. Our content focuses on helping readers understand AI clearly, write better prompts, evaluate AI tools, and keep up with important developments in the rapidly changing AI landscape. Content is researched, reviewed, and updated as AI tools, models, and best practices evolve.

AI & Prompting AI Tools AI Research
View all articles by Promptenza Editorial Team →

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top