The short answer: a good AI prompt has four parts. Say who the AI should act as (role), what you want it to do (task), what it needs to know (context) and how the answer should look (format). Add those four parts and a vague, generic answer turns into one you can actually use, usually on the first try.
If an AI answer feels generic, the problem is usually the question. AI assistants like ChatGPT, Gemini and Claude don’t know who you are, what you need or how you want the answer to look, unless you tell them. They fill the gaps with the most average answer they can think of. The four parts below close those gaps.
Why short prompts give weak answers
Most people type an AI prompt the way they type a search: a few words, then Enter. Google has seen this in its own data. Its Prompting Guide 101 says the prompts that work best average around 21 words with relevant context, yet the prompts people try are usually less than nine words.
That gap matters. A search engine finds pages that already exist. An AI writes something new for you, so the more it knows about your situation, the better it can fit the answer to you. Google’s guide recommends the same four areas this article covers: persona, task, context and format.
The four parts
| Part | What it means | Example |
|---|---|---|
| Role | Who should the AI act as? | “You are a friendly career coach.” |
| Task | What exactly do you want? | “Help me prepare for a job interview.” |
| Context | What does it need to know? | “It’s for a junior marketing role. I’m nervous about salary questions.” |
| Format | How should the answer look? | “Give me 5 likely questions with a short sample answer for each.” |
1. Role: who should the AI be?
Giving the AI a role sets the tone, the level of detail and the kind of advice you get. “You are a patient teacher” gets you simple explanations. “You are a strict editor” gets you honest, direct feedback. Pick the person you would ask if you could ask anyone.
2. Task: what do you want done?
The task is the most important part, so start it with a clear action word: write, explain, plan, compare, summarize, list, check. “Help me with my email” is a topic. “Rewrite this email so it sounds friendly but firm” is a task.
3. Context: what does it need to know?
Context is everything the AI can’t guess: who the answer is for, what you’ve already tried, what you’re worried about, and any limits on time, money or length. One or two sentences is usually enough. This is the part people skip most, and it makes the biggest difference.
4. Format: how should the answer look?
Tell the AI the shape you want: a short list, a table, three options, an email under 100 words, a step-by-step plan. Without this, you often get a long block of text you have to cut down yourself.
Before and after
Before:
Help me with my interview.
After:
You are a friendly career coach. Help me prepare for a job interview for a junior marketing role. I’m nervous about salary questions. Give me 5 likely questions with a short sample answer for each, and one tip for the salary question.
The first prompt gets you a general list of interview tips you’ve probably read before. The second gets you questions for your exact role, answers you can practice, and help with the one part that worries you. It takes 20 more seconds to write and saves you several rounds of back and forth.
Practice the 4-part prompt
Step 3 of AI Essentials has a Build a Better Prompt game.
How to write a 4-part prompt, step by step
- Start with the task. Write one sentence that begins with an action word. This is the heart of the prompt.
- Add the context. Ask yourself: what would a smart helper who has never met me need to know? Add one or two sentences.
- Choose the format. Picture the answer you want to see, then describe it: a list, a table, how many options, a word limit.
- Put the role in front. Add “You are a…” at the start so the tone fits.
- Read it once before you send it. If a stranger couldn’t do the job from your prompt, the AI can’t either.
You don’t need all four parts every time. A quick question like “What’s a polite way to say no to a meeting?” works fine on its own. Use the full recipe when the answer matters or when your first try came back generic.
More examples to copy
Swap the words in [brackets] for your own details.
Planning
You are a practical travel planner. Plan a 2-day trip to [city] for a family with two young kids. We like parks and simple food. Give a day-by-day plan in a short list.
Learning
You are a patient teacher. Explain how interest on a credit card works. I’m new to this. Use one everyday example and keep it under 150 words.
Work email
You are a calm, professional colleague. Write a reply to a client who is upset that their order is late. The new delivery date is [date] and we can offer free shipping on their next order. Keep it under 120 words, friendly and not defensive.
Meeting notes
You are an organized project assistant. Summarize these meeting notes for team members who missed the meeting. Give 3 key decisions, then a table of next steps with who owns each one and the due date. [paste notes]
Everyday life
You are a home cook who likes quick meals. Suggest 3 dinners I can make in under 30 minutes with chicken, rice and whatever vegetables are cheap this week. I don’t have an oven. List the ingredients and the steps for each.
Common mistakes to avoid
- No action word. “Marketing ideas” leaves the AI guessing. “List 10 low-cost marketing ideas for a small bakery” doesn’t.
- Too many tasks at once. Asking for a plan, an email, a budget and a slogan in one prompt gets you four rushed answers. Ask for one at a time.
- Hiding the most important detail. If something really matters (a word limit, a deadline, who will read it), say it clearly instead of tucking it in at the end.
- Sharing private information. Context helps, but leave out passwords, ID numbers and other people’s personal details. Our guide on what not to share with AI explains what to keep out.
- Trusting the first answer blindly. A better prompt gives better answers, not perfect ones. Check facts, numbers and names. Here’s how to spot when AI gets it wrong.
Keep the conversation going
Your first prompt doesn’t have to be perfect. If the answer isn’t quite right, reply with what to change: “Shorter,” “More casual,” or “Give me three more options.” You can also ask the AI for help: “What else do you need to know to give me a better answer?” Good AI users treat it like a conversation, not a search box.
Frequently asked questions
What are the four parts of a good AI prompt?
Role, task, context and format. Say who the AI should act as, what you want it to do, what it needs to know and how the answer should look. Google’s prompting guide for Gemini uses the same four parts and calls the role a “persona.”
How long should an AI prompt be?
Long enough to include the details that matter. For most everyday tasks that’s one to four sentences, often around 20 to 40 words. Longer is fine when you paste in text for the AI to work on, like notes or an email.
Does the 4-part prompt work with ChatGPT, Gemini and Claude?
Yes. The recipe isn’t tied to one tool. Every AI assistant gives better answers when it knows the role, the task, the context and the format you want.
Do I need to use all four parts every time?
No. Simple questions work fine without them. Use all four when the answer matters, when you need something specific or when your first answer came back too general.
What if the answer is still not right?
Reply and say what to change, one thing at a time. If it keeps missing, start a new chat with a clearer prompt and add the detail it kept getting wrong.
Want to go further?
Practice the 4-part prompt in AI Essentials, our free, beginner-friendly class that ends with a certificate. Prompt Like a Pro: Get Better Answers from AI is coming soon. Join the waitlist from our class list to hear when it opens.
