How to Write AI Prompts That Actually Work
Five steps, shown side by side: a weak prompt, a strong prompt, and what each one gets you.
Based on the official prompting guides from OpenAI, Anthropic and Google.
The difference isn't a secret phrase. It's a clearer request.
You type "dinner ideas?" and get back a list that could be for anyone. The tool did what you asked. You just didn't tell it very much. These five steps come from the official prompting guides from OpenAI, Anthropic and Google [S1][S2][S3], and each one comes with a real-life prompt you can copy.
What you need
- Any chatbot: ChatGPT, Claude, Gemini or Grok
- One real task from your week
- Five minutes
Need to know
- Prompt: Your instructions to the AI. What you type to tell it what to do. [S1]
- Role: The part the AI plays. A sentence that says who it should act as. [S2][S3]
- Context window: The AI's working memory limit. It caps how much text or imagery it can take in at once. [S1]
- Few-shot: Teaching by showing sample answers. A few example inputs and outputs inside your prompt. [S1][S2]
- Iterating: Refine it, then run again. Google says prompt engineering "is iterative." [S3]
THE GOAL
Step 1: Say exactly what you want, not roughly what you mean
Name the task, who it's for and how long it should be. Would a new colleague with no background understand it? [S2]
Dinner ideas for this week?
Plan 5 weeknight dinners for this week for a family of four: two adults and two kids (8 and 12), one of them vegetarian, and no nuts. Each dinner takes 30 minutes or less, and groceries for all five come to $90 or less. Give me a table with the dinner, prep time and estimated cost, then one combined grocery list grouped by store section.
- The task
- Who it's for
- The limit
- The shape of the answer
THE CONTEXT
Step 2: Give it your situation, and the answer becomes yours
Paste the information the answer depends on. Supplying the facts beats hoping it already knows them. [S3]
Write a follow-up email about the meeting.
Turn my notes from today's vendor meeting into a follow-up email to Dana, their account manager. Keep it under 150 words, friendly but firm: the decisions as bullets, then one clear ask with a deadline. Notes: launch moved to Mar 14 (their delay, not ours) they want a 4% price increase, we said no until Q3 Raj owns QA testing they owe us the updated deck by Friday next check-in Tue 10 AM
- The task
- The shape of the answer
- Your situation
THE EXAMPLE
Step 3: Show one example and it copies the pattern
One example of what "good" looks like steers the format more reliably than a description. [S2][S3]
Write status updates for my projects.
Write a one-line Friday status update for each project below. Use exactly this format: "Website redesign · Done: homepage mockups · Next: client review Thu · Blocker: need the final logo" Projects: Hiring: 2 interviews done, offer goes out Mon, waiting on budget sign-off Q1 budget: draft sent, finance review Wed, no blockers
- The task
- The example
- Your situation
THE FORMAT
Step 4: Pick the shape: table, list, plan or code
Ask for a table, a list or a single word, and name what goes in it. Say what you want, not only what you don't. [S2]
Which job offer should I take?
Compare these two job offers for me. I have two kids in daycare, and time at home matters more to me than a small raise. Put them in a table with rows for base pay, bonus, commute, time off, 401(k) match and my yearly health premium. Add a last row with the total yearly value after health costs. Then give me your pick in three sentences, plus two questions to ask each company before I decide. Offer A: $92,000 base, 10% bonus target, 45-minute commute each way, 15 days PTO, 4% 401(k) match, $180/month health premium Offer B: $98,000 base, no bonus, fully remote, 20 days PTO, 3% 401(k) match, $310/month health premium
- The task
- Your situation
- The shape of the answer
THE CHECK
Step 5: Read it, change one thing, run it again
Rephrase, reorder, or split a big job into smaller prompts. [S3] Ask the model to check its answer against your criteria. [S2]
Three follow-ups to the Step 1 dinner plan:
- Rephrase one part
Swap Thursday for a slow-cooker meal I can start before work.
- Split it up
Let's go one piece at a time. Give me just the five dinner ideas first. Once I pick, make the grocery list.
- Ask it to check
Before you finish, check the plan against my rules: 30 minutes or less, no nuts, $90 total. List anything that breaks one.
ALL FIVE STEPS
Put it all together
Plan a long weekend in Chicago, Friday to Monday in June, for my wife and me. It's our 10th anniversary. We love food and architecture, skip tourist traps, won't rent a car, and our budget is $1,500 for food and activities. Our hotel is already booked downtown. Lay out each stop like this: "Sat 9:00 AM · breakfast spot · about $40 for two · 10-minute walk from the last stop." Give me one section per day, then a table of everything I should book ahead, with the date to book it by. Before you finish, check the total is under $1,500 and flag anything that needs a reservation or may be closed on a Monday.
- Goal
- Context
- Example
- Format
- Check
Other makers, same idea
Other makers use their own labels. Microsoft's Copilot guide calls its version GCSE: Goal, Context, Source, Expectations. [S4] SpaceXSI's Grok docs say Grok reasoning models reason before they answer, so you should state the task, constraints and output format directly. [S5]
A REAL RUN
One strong prompt, run for real
The prompts above are examples to copy. This one we actually ran, so you can see what a strong prompt gets back. It's the original Step 1 example from an earlier version of this guide.
Plan a 3-day San Diego trip in March for a family of four with kids aged 8 and 11. Our budget is $1,200, not counting flights or hotel. Give a day-by-day plan with morning, afternoon and evening, an estimated cost for each item, and a running total that stays under budget.
- The task
- Who it's for
- The limit
- The shape of the answer

WHAT DOESN'T WORK
Four prompt myths, and the facts
Four things people often believe about prompts, and what the official guides actually say.
Myth: "There's a secret magic phrase."
Fact: There isn't. It's a clearer request.
Myth: "It already knows my situation."
Fact: Supplying the facts beats hoping it already knows them. [S3]
Myth: "Describing the format is enough."
Fact: One example steers the format more reliably than a description. [S2][S3]
Myth: "Just list what you don't want."
Fact: Say what you want, not only what you don't. [S2]
Two more:
Myth: "A prompt that works in one AI works the same in every AI."
Fact: OpenAI says different model types, and even different snapshots of one model family, can give different results. [S1] SpaceXSI's docs say to spend comparable effort tuning a prompt for Grok if you tuned it for another model. [S5]
Myth: "Three examples that look alike are enough."
Fact: OpenAI says to show a diverse range of inputs, and Anthropic says to vary examples so the model doesn't pick up unintended patterns. [S1][S2]
TRY IT
Fix this prompt
Take a weak prompt and add the missing parts from Step 1: the task, who it's for, the limit and the shape. Then compare with one way to fix it.
- 1. The weak prompt: "Help me with my resume."
- 2. Ask yourself: Which part of the resume? For what job? How long? What should come back?
- One way to fix it: "Rewrite the summary at the top of my resume for a project manager job at a hospital. I have 6 years in construction scheduling and I'm switching to healthcare. Keep it to 3 lines in plain words, no buzzwords. Give me 3 versions to pick from. My current summary: [paste it here]"
Takeaway: if a new colleague would have to ask you a question first, the chatbot needs that answer in the prompt.
Check yourself (3 quick questions)
- 1. Your prompt is "Plan dinners." What's missing? → Who it's for, the limit and the shape of the answer. (Step 1)
- 2. You want five updates in the same layout. What's the fastest way? → Paste one finished example and say "use exactly this format." (Step 3)
- 3. The answer is close but not right. Now what? → Change one thing and run it again, or ask it to check against your list. (Step 5)
Two more questions
- 4. The AI keeps mixing your pasted notes with your instructions. What helps? → Label the notes so it can tell what's what, and put your question after them. (Step 2) [S1][S2][S3]
- 5. A prompt that worked well in one AI gives a different result in another. What now? → Tune it for that AI. Makers say prompting can differ by model. [S1][S5]
Wrap-up
The difference isn't a secret phrase. It's a clearer request. To see how different assistants handle the same prompt, try a side-by-side comparison.
- Now
Pick one task on your list and write the five parts.
- Then
Read the answer, change one thing, run it again.
- When it matters
Check important facts yourself. [S3]
Put it to work: make AI images
Sources (checked Nov 10, 2026)
- [S1] OpenAI, Prompt engineering guide: https://developers.openai.com/api/docs/guides/prompt-engineering
- [S2] Anthropic, Prompting best practices: https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
- [S3] Google, Gemini API prompt design strategies: https://ai.google.dev/gemini-api/docs/prompting-strategies
- [S4] Microsoft, "The Building Blocks of a Good Copilot Prompt," Quick Reference Guide (PDF): https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/mcaps/documents/fy26/QRG-Write-better-Copilot-prompts.pdf
- [S5] SpaceXSI (xAI) docs, "Best Practices Guide": https://docs.x.ai/developers/model-capabilities/text/best-practices
