How to Write a Good Prompt: A Formula That Works

Beginner · 8 min read · updated November 24, 2026

A prompt is what you type to the AI. The same AI can give an average or an excellent answer depending on how you ask. The good news: you don't need tricks, just clear instructions, the way you would brief a new colleague.

The five-part formula

  1. Role: who the AI should be. "You are an experienced travel guide for Italy."
  2. Task: exactly what you want. "Plan a three-day trip."
  3. Context: everything a colleague would need to know. "We travel in May, two adults and a 6-year-old, no car, budget $1,500."
  4. Format: how you want the answer. "Organize it by day, in bullet points, with rough prices."
  5. Examples or limits: "Avoid long walks in the midday sun. Maximum 300 words."

Bad prompt vs good prompt

Bad:

write a cover letter

Good:

Write a cover letter for a sales assistant job at a sports equipment store. I'm 24, I have two years of experience as a waiter, I love running and I speak fluent Spanish. Keep the tone friendly and confident, not over the top. Maximum 200 words.

The second prompt produces a letter you can send almost immediately, because the AI doesn't have to guess.

Seven tips that help right away

  • Be specific. Numbers, names, deadlines and audience make a huge difference.
  • Say why. "This is for a presentation to a busy boss" changes the whole answer.
  • Give an example of a text or style you like.
  • Ask it to ask you. Add "Before you start, ask me any questions you need."
  • Work in steps. First an outline, then each part separately.
  • Refine by chatting. "Shorter", "more formal", "add an example" all work well.
  • Paste the source. If the AI needs to work with a text, paste it or upload the file instead of describing it.

Copy-and-paste template

You are [role]. I need [task]. Context: [who, what, when, why]. Write the answer as [format], at most [length]. Make sure that [limits]. If anything is unclear, ask me first.

For ready-made examples, see 30 ready-made prompts for work, school and everyday life.

Read next