How to write AI prompts that get useful answers

Most bad AI answers come from short prompts. When you type “write a blog post about coffee”, the AI has to guess the audience, length, tone, angle and format, so it plays safe and gives you something generic.

The fix isn’t clever tricks. Give the AI the same brief you’d give a capable new colleague on their first day.

The 5-part prompt formula

Good prompts usually contain five things. You won’t always need every part, but checking against this list fixes most vague answers.

Part What it does Example
Role Sets the expertise and point of view “Act as a senior HR manager…”
Context The background only you know “…at a 40-person software company in Pune.”
Task The exact thing you want done “Write a job post for a junior QA tester.”
Format How the answer should be laid out “Use headings: About us, The role, You’ll need, Pay.”
Constraints Limits and things to avoid “Under 300 words, no buzzwords, include the salary range.”

Before and after

Here’s the same request written two ways.

Before:

Write an Instagram caption for my bakery.

After:

Act as a social media manager for small food businesses.

I run a home bakery in Ahmedabad that sells eggless cakes. This post shows our new mango cheesecake, available only this weekend, ₹650 for 500g.

Write 3 Instagram caption options. Each should open with a hook line, mention it's eggless, include the price, and end by asking people to DM to order. Under 60 words each, warm and playful tone, max 2 emojis.

The second prompt takes 40 seconds longer to write and saves several rounds of “make it shorter” and “no, it’s eggless”.

Five habits that improve any prompt

1. Paste the real material

AI tools are much better at editing, sorting and reshaping your material than at inventing it from nothing. If you want a summary, paste the document. If you want your voice, paste examples of your writing. If you want a resume tailored, paste the job description.

2. Ask for options

For anything creative, like headlines, hooks, subject lines or names, ask for 10 and pick the best two. It’s faster than asking for one perfect answer.

3. Say what to avoid

Tell it the clichés and habits you don’t want, such as “No ‘in today’s fast-paced world’”, “Don’t use bullet points”, “Don’t invent statistics”. Negative instructions work well when they’re specific.

4. Let it ask you questions

For bigger tasks, end your prompt with: “Before you start, ask me any questions you need answered to do this well.” The AI will often spot missing information you didn’t think to give.

5. Edit in the same chat

If the first answer is 70% right, don’t start again. Reply with exactly what to change: “Keep version 2, but make the opening punchier and cut the last paragraph.” The AI remembers the conversation, so small corrections are cheap.

Prompt templates with fill-in blanks

Every prompt in our prompt library uses highlighted placeholders like [your product] and [target audience]. A template is a prompt with the structure already worked out, so you only add your details.

A general-purpose template you can adapt for almost anything:

Act as [expert role].

Context: [who you are, what you're working on, who it's for].

Task: [exactly what you want].

Format: [list / table / email / headings / word count].

Avoid: [things you don't want].

Before you start, ask me up to 3 questions if anything important is unclear.

Common mistakes

  • Asking several unrelated things at once. Split them into separate messages, or number them clearly.
  • Treating answers as facts. AI tools can state wrong numbers, dates and quotes confidently. Check anything you’ll publish.
  • Pasting private information. Keep passwords, ID numbers and other people’s personal details out of prompts.
  • Giving up after one try. The first answer is a draft. The second or third, after your feedback, is usually the one you use.

Where to go next

If you’d rather start from something that already works, browse the library by what you’re doing: marketing, SEO, your resume, or Gemini photo editing.

Questions people ask

What is an AI prompt?
A prompt is the instruction you type into an AI tool like ChatGPT, Gemini or Claude. It can be a question, a task, or a task with background information and examples. The clearer the prompt, the more useful the answer.
What is the best formula for writing prompts?
A reliable formula is role, context, task, format and constraints. Say who the AI should act as, give the background, state the exact task, describe how you want the answer laid out, and add any limits like word count or tone.
How long should a prompt be?
As long as it needs to be to include the details that matter. A one-line question is fine for a quick fact. For anything you’ll publish or send, a prompt of 50 to 150 words usually gets a much better first draft.
Do I need to learn prompt engineering?
Not in the technical sense. For everyday use, writing a good prompt is closer to writing a good brief for a colleague. Be specific, give context and say what a good result looks like.