Skip to content
Faisal Habib
How to Write Better AI Prompts: A Simple Formula with Examples
Artificial Intelligence

How to Write Better AI Prompts: A Simple Formula with Examples

Faisal Habib 12/2/2026 5 min read

Key Takeaways

  • Generic prompts give generic answers. The more useful context you give, the more useful the answer.
  • A strong prompt covers six things: role, task, context, audience, format and examples or limits.
  • Ask for options, then improve the best one in the same chat instead of starting again.
  • Image prompts need different details: subject, style, setting, light, shape and what must stay the same.
  • Always check facts, numbers and names in AI answers, however good the prompt.

Two people can ask the same AI the same question and get very different answers. One gets a generic paragraph that could apply to anyone. The other gets a clear, practical answer that fits their exact situation. The difference is not luck or a paid plan. It is the prompt.

A prompt is simply the message you send to an AI assistant like ChatGPT, Gemini or Claude. Writing good prompts is a skill anyone can learn in an afternoon, and it makes every AI tool more useful. This guide gives you a simple formula, real before-and-after examples, and easy ways to improve any answer.

Why AI gives generic answers

An AI assistant only knows what you tell it. If you write "write a post for my shop", it does not know what you sell, who your customers are, what tone you like or where the post will go. So it fills the gaps with the most average, safe guess. Every missing detail becomes a guess, and guesses make the answer generic.

The fix is to give the AI the same information you would give a smart new assistant on their first day.

The six-part prompt formula

  1. Role: who the AI should act as. "You are an experienced social media manager for small food businesses."
  2. Task: exactly what you want. "Write five Instagram captions for our new chocolate cake."
  3. Context: the background it needs. "We are a home bakery in Manchester. The cake costs £35 and we deliver free across the city center."
  4. Audience: who it is for. "Young families and office workers who order for birthdays."
  5. Format: how the answer should look. "Each caption under 40 words, with one emoji and a call to action to order on WhatsApp."
  6. Examples or limits: what to copy or avoid. "Friendly tone like this past caption: '...'. Do not use the words 'delicious' or 'yummy'."

You do not need all six every time. For a quick question, task and context are enough. For anything you will publish or send, use the full formula.

Before and after: three examples

1. Business

Before: "Write an email to a client about a late payment."

After: "You are a polite but firm accounts assistant. Write a short email to a client whose invoice of $1,700 is 15 days overdue. We have worked together for two years and want to keep a good relationship. Mention the invoice number INV-204, ask for payment by Friday, and offer a call if there is a problem. Under 120 words, professional and warm."

2. Study

Before: "Explain photosynthesis."

After: "Explain photosynthesis to a Class 9 student preparing for a board exam. Use simple words and one everyday example, then list the five points most likely to be asked in the exam, and finish with three short questions to test me. Do not give the answers until I reply."

3. Image

Before: "Make my photo look cool."

After: "Using my attached photo, keep my face, beard and glasses exactly the same. Turn it into a cinematic portrait on a rooftop at golden hour, with a city skyline behind me, warm light from the left, shallow depth of field and realistic skin texture. Vertical 9:16 for Instagram Stories. No text."

Tricks that improve any answer

  • Ask for options. "Give me five versions" and pick the best, instead of accepting the first try.
  • Improve in the same chat. "Shorter", "more friendly", "add a line about free delivery". The AI remembers the conversation.
  • Let it ask you questions. "Before you start, ask me any questions you need to do this well." This is one of the most powerful prompt lines.
  • Give an example. Paste something you liked and say "in this style".
  • Ask it to think step by step for plans, math and decisions, and to explain its reasoning.
  • Ask it to check its own work. "Review your answer for mistakes and missing points, then give an improved version."
  • Say what to avoid. Words, topics, length or claims you do not want.

Writing prompts for images

Image prompts need visual details instead of writing instructions. Cover:

  • Subject: who or what is in the image.
  • What must stay the same: your face, product or logo, if you attach a photo.
  • Style: realistic photo, 3D, watercolor, cartoon, cinematic.
  • Setting and light: where it happens, time of day and the kind of light.
  • Shape: square, portrait 4:5, vertical 9:16 or wide 16:9.
  • Text: the exact words in quotes, or "no text".

The AI Image Prompt Builder asks for each of these in a short form. For trends, see the guide to viral AI photo prompts.

Common prompt mistakes

  • Too short. One line rarely gives a great answer for important work.
  • Too many tasks at once. Split big jobs into steps: plan first, then write, then edit.
  • No audience. An answer for experts and an answer for beginners are very different.
  • Accepting the first answer. The second and third tries are usually better.
  • Trusting every fact. AI can be confidently wrong. Check numbers, dates, prices, names and sources.
  • Sharing private data. Never paste passwords, bank details, ID numbers or customer information.

Save time with ready-made prompts

You do not have to write every prompt from scratch. The free AI Prompt Library has more than a hundred prompts built on this formula for business, marketing, study, careers and images. You fill in a short form, leave anything you are unsure about blank, and the full prompt is written for you, ready for ChatGPT, Gemini, Claude or any other assistant.

Good places to start: the Perfect Prompt Maker, which turns a rough idea into a detailed prompt, the AI Beginner Coach if you are new to AI, and the Summarize Anything prompt for long articles and documents. To choose which assistant to use, read ChatGPT vs Gemini vs Claude.

Frequently Asked Questions

What is a prompt in AI?
A prompt is the message or instruction you give an AI assistant like ChatGPT, Gemini or Claude. The clearer and more detailed it is, the more useful the answer.
How long should a prompt be?
As long as it needs to be. A quick question can be one line, but for anything you will publish or send, a few lines covering the task, context, audience and format give much better results.
Do the same prompts work in ChatGPT, Gemini and Claude?
Yes. A well-written prompt works in all of them. If one answer is not right, paste the same prompt into another assistant and keep the better result.
What is the best single line to add to a prompt?
Ask the AI to ask you questions first, for example: 'Before you start, ask me any questions you need to do this well.' It fills the gaps you forgot to mention.
Can good prompts stop AI from making mistakes?
They reduce mistakes but cannot remove them. Always check facts, numbers, names and sources before you rely on or publish an answer.
Artificial Intelligence
Share:

Author

Faisal Habib

Marketing Director at Advisible, founder of Thinkropic, and a trainer since 2016 — the pipeline that produced his own team.