How-To Guides

How to Write Better AI Prompts: A Simple Formula That Works

Learn a simple 4-part prompt formula, see before-and-after examples and fix weak answers in minutes.

In this article
  1. The 4-part formula
  2. Before and after
  3. 6 habits that help every time
  4. Fix a bad answer fast
  5. Let a tool improve your prompt
  6. Prompt templates for common tasks

Most weak AI answers come from weak questions. The AI does not know your goal, your audience or the format you want. Fix that and answers improve at once.

The 4-part formula

  1. Role: who should the AI act as?
  2. Task: what exactly should it do?
  3. Context: what does it need to know about you and the situation?
  4. Format: how should the answer look (length, tone, structure)?
Act as a [role]. Your task is to [task]. Context: [who it is for, goal, any facts]. Answer in this format: [bullets / table / 200 words / simple English].

Before and after

Weak prompt: "Write about healthy eating."

Better prompt:

Act as a friendly dietitian. Write a one-page guide on healthy eating for busy office workers in India. Include 5 simple tips, a sample one-day vegetarian menu and 3 mistakes to avoid. Use simple English and short bullet points.

The second prompt gives the AI a role, an audience, a structure and a tone, so the result is much more useful.

Advertisement

6 habits that help every time

  • Give an example. "Write in a style like this: [short sample]."
  • Say what to avoid. "No jargon. No long introductions."
  • Ask for questions first. "Ask me 3 questions before you start if anything is unclear."
  • Break big tasks into steps. Outline first, then each section.
  • Iterate. Say "make it shorter", "more specific" or "give 3 options".
  • Set the length. "Under 150 words" works better than "short".

Fix a bad answer fast

If the answer misses the point, do not start over. Reply with exactly what is wrong.

This is too general. Make it specific to [my situation]. Replace the generic tips with concrete steps and one example for each.

Let a tool improve your prompt

Paste a rough prompt into our free Prompt Improver to add structure. If you work with long prompts, the AI Token Counter gives an estimate of their size.

Prompt templates for common tasks

Explain:

Explain [topic] to a beginner. Use a simple analogy, a real example and a 3-point summary.

Compare:

Compare [A] and [B] in a table with columns: best for, pros, cons, cost. Then give a recommendation for [my situation].

Plan:

Create a step-by-step plan to [goal] in [time]. List the first 3 actions I can take today.

Fill in the brackets with real details. You will notice the answers are much more useful.

Tools mentioned

All AI tools β†’

A general-purpose AI assistant for writing, learning, coding and images.

Freemium From $20/mo 4.7

A thoughtful AI assistant that is strong at writing, long documents and coding.

Freemium From $20/mo 4.7

Google's AI assistant that works with Search, Gmail, Docs and more.

Freemium From $19.99/mo 4.5

Free tools you can use now

Prompt Improver

Paste a rough prompt and turn it into a clearer, more structured prompt in one click.

AI Token Counter

Estimate how many tokens your text uses before you send it to an AI model.

Frequently asked questions

Do prompts work the same in ChatGPT, Claude and Gemini?

The formula works in all of them. Each tool has its own style, so small tweaks may help. Try the same prompt in two tools and compare.

Does a longer prompt always give a better answer?

No. A clear prompt beats a long one. Add details that change the answer and remove the rest.

What is prompt engineering?

It is simply the skill of giving AI clear instructions and examples so you get the result you want.

Get new AI tools and prompts in your inbox

One short email when something useful is added. No spam.

AI tools change quickly. Features, limits and prices mentioned here can differ from what you see today, so check the official website before you decide.