How to Write an AI Prompt That Gets You a Useful Answer
Use four simple parts (task, context, example, format) to turn vague AI answers into ones you can actually use. Includes before-and-after prompts.
You type a question into an AI assistant and get back something long and generic that doesn’t quite fit. That usually isn’t the AI failing. It answered the question you asked, and the question was missing the details that would have made the answer useful.
The good news is that you don’t need special tricks. A useful prompt usually has four parts. Once you know them, you can use them in ChatGPT, Claude, Gemini, Copilot or any other assistant.
The four parts of a useful prompt
- Task: what you want done. Start with an action word: write, summarize, explain, compare, suggest, fix.
- Context: who it’s for, why you need it, and anything the AI can’t know on its own.
- Example: a sample of what “good” looks like for you, such as a past email, a sentence in the tone you want, or a rough draft.
- Format: what the answer should look like. Length, bullet points or paragraphs, a table, a subject line, reading level.
You won’t need all four every time. A quick question might only need a task. But when an answer misses, one of these four is almost always what’s missing.
Before and after: an email to a landlord
Before:
Write an email to my landlord about the heating.This gets you a polite, bland email that could be about anything. It may invent details, like how long the heating has been broken, or what you want done.
After:
Task: Write an email to my landlord asking them to fix the heating.
Context: The radiator in my bedroom stopped working 5 days ago. I reported it by phone on Monday and haven't heard back. It's getting cold at night. I want to stay on good terms but make it clear this is urgent.
Example of my tone: "Hi Sam, hope you're well. Just a quick note about..."
Format: Under 150 words. Include a subject line. End by asking for a repair date this week.Now the AI knows the facts, the mood, your voice and the shape of the answer. You’ll likely need only small edits.
Before and after: a school project
Before:
Explain photosynthesis.You’ll get a correct but textbook-style answer, possibly too advanced or too long.
After:
Task: Explain how photosynthesis works.
Context: My daughter is 11 and has a science poster due Friday. She understands that plants need sunlight and water, but not what happens inside the leaf.
Format: 5 short bullet points she could copy onto a poster, plus one simple comparison to something from everyday life. Use words an 11-year-old knows.There’s no example here, and that’s fine. The context and format do most of the work.
Before and after: a small bakery’s menu
Before:
Write descriptions for my bakery menu.After:
Task: Write short menu descriptions for 4 items at my bakery.
Context: We're a small neighborhood bakery. Our customers are mostly local families and people on their way to work. We're friendly and a bit playful, not fancy. The items are: [item 1], [item 2], [item 3], [item 4].
Example of a description I like: "Our sourdough: crackly crust, soft middle, baked before the sun's up."
Format: One sentence each, under 20 words. No words like "artisanal" or "decadent".The example does a lot here. It shows the AI your style much faster than an adjective like “playful” could.
A template you can reuse
Copy this and fill in the brackets. Delete any line you don’t need.
Task: [What you want done, starting with an action word]
Context: [Who it's for, why you need it, and the key facts the AI can't know]
Example: [A sample of the tone, style or structure you want, or "none"]
Format: [Length, layout, reading level, anything to include or avoid]You don’t have to use the labels. Writing it as a normal paragraph works just as well. The labels just help you remember all four parts.
When the first answer isn’t right
Treat it as a conversation, not a one-shot request. Instead of starting over, tell the assistant what to change:
This is close. Make it shorter, drop the second paragraph, and sound a bit less formal.If you’re not sure what context the AI needs, ask it:
Before you answer, ask me up to 3 questions that would help you give a better answer to this: [your request]This is useful when you’re stuck or the topic is new to you.
Watch out for
- Made-up details. If you leave gaps, the AI may fill them with plausible-sounding facts: dates, names, numbers, policies. Read every fact in the answer and check it against what you actually know.
- Confident but wrong. AI writes smoothly whether it’s right or not. For anything that matters, like facts in a school project or figures in a business email, check a reliable source.
- Ignored instructions. Assistants sometimes skip part of a long prompt, such as a word limit. Check the answer against your format line and ask again if it’s missed something.
- Losing your voice. If the result doesn’t sound like you, give a better example of your own writing, or edit the draft yourself.
A note on privacy
Good context makes better answers, but you choose how much to share. Before pasting anything in:
- Leave out full names, addresses, account numbers, ID numbers and passwords. Use placeholders like [landlord’s name] or [account number] and fill them in yourself afterward.
- Be careful with medical, financial or legal details. You can describe the situation in general terms and still get help.
- For work documents, check your employer’s rules on AI tools first. Some workplaces don’t allow pasting company information into public assistants.
- Most assistants have settings for chat history and whether your conversations can be used to improve their models. It’s worth looking at those settings once.
The short version
Next time an answer feels generic, don’t blame the tool straight away. Check your prompt for the four parts: task, context, example, format. Adding even one of them usually makes a noticeable difference, and getting all four in becomes a habit faster than you’d expect.
Related
How to Get AI to Write Emails That Sound Like You
Teach any AI assistant your writing style with a few samples and simple tone instructions, then edit so every email still sounds like you.
How to Get Honest Feedback on Your Writing from AI
Get AI to point out real problems in your writing, judge it against your own checklist, and suggest fixes without replacing your voice.
Plan a Trip with AI: Build an Itinerary That Actually Works
Use any AI assistant to sketch a realistic travel plan, then check the hours, travel times and prices yourself before you book anything.