How to Write Better AI Prompts With a Simple Framework
How to write better AI prompts with a six-part framework - role, task, material, format, constraints and checks - with before and after examples you can reuse.
· 6 min read

On this page
The way to write better AI prompts is to give the model what a capable colleague would need: who the work is for, the exact task, the material to use, the format you want, any constraints, and how to flag uncertainty. You do not need special tricks or magic phrases. Most weak output comes from missing context, and adding it fixes most problems.
This framework underpins everything in our guide to using AI for documents and research.
Why prompts fail
When a model gives you something generic, it is usually because it had to guess. "Write a summary of this report" leaves it to decide the length, the reader, the focus and the format. It makes safe, average choices, and you get safe, average output.
Think of the model as a very fast, well-read new hire on their first day. They can write well and know a lot in general, but they know nothing about your company, your client, your boss's preferences or why this task matters. Everything you would tell that person, you need to tell the model.
The six-part framework
| Part | Question it answers | Example |
|---|---|---|
| Role and audience | Who is this for? | "For our CFO, who reads on her phone between meetings" |
| Task | What exactly should be done? | "Summarize the risks in this proposal" |
| Material | What should it work from? | "Use only the attached proposal and my notes below" |
| Format | What should the output look like? | "Five bullets, under 120 words, most important first" |
| Constraints | What to avoid or include? | "No jargon. Include the total cost. Do not recommend a vendor" |
| Checks | How should it handle uncertainty? | "Quote the section for each risk. Say if anything is unclear" |
You will not need all six for every prompt. A quick rewrite might need only task and format. But when output disappoints, run through the list and see which part was missing.
Role and audience
Naming the reader changes vocabulary, depth and length. "For a new customer with no technical background" and "for our engineering lead" produce very different explanations of the same feature. You can also give the model a role ("act as an experienced editor"), but the reader usually matters more than the role.
Task
Use a specific verb: summarize, compare, extract, rewrite, draft, critique, list. "Help me with this report" is not a task. "List the three weakest arguments in this report and suggest how to strengthen each" is.
Material
Attach the file or paste the text, and point to what matters. "Focus on sections 3 and 4." If the model should use only what you gave it, say so. That single instruction reduces made-up details more than anything else.
Format
Say the length, the structure and the shape. Table, bullets, numbered steps, headings, a single paragraph. If you need a file, say so: on Palvoro the chat can produce a PDF or Word document directly.
Constraints
Tone, words to avoid, things that must be included, things it must not do. "Do not add a conclusion." "Keep the client's name out of it." "Use American spelling."
Checks
Ask the model to show its work in ways you can verify: quote sources, give page numbers, list assumptions, say "not found" when something is missing. This turns a confident-sounding answer into one you can check quickly.
Before and after examples
Summarizing
- Before: "Summarize this."
- After: "Summarize the attached report for a manager deciding whether to renew the contract. Sections: key results, costs, problems, recommendation. Under 250 words. Give the page number for each figure."
Our guide on how to summarize a PDF with AI uses this pattern in detail.
Writing
- Before: "Write an email to the client about the delay."
- After: "Draft a reply to the client email below. The delay is because we are waiting on their data. I want them to send it today so we can deliver Wednesday. Friendly and direct, under 100 words, no stock opening line."
There are more patterns like this in how to write emails with AI.
Analysis
- Before: "Analyze this spreadsheet."
- After: "Describe the attached sheet first: columns, date range, anything inconsistent. Then tell me which three products declined most between Q1 and Q2, with the percentage change and the formula I can use to check it."
Iterating: the second prompt matters most
Very few good results come from a single prompt. The fastest way to great output is a decent first prompt followed by specific feedback.
- Read the output and name what is wrong. "Too long." "Missed the pricing section." "Too formal."
- Give that feedback directly. "Cut it to half the length and add the pricing details from page 6."
- Keep what works. "Keep the structure, just change the tone of the opening."
- Ask it to ask you. For complex tasks: "Before you start, ask me up to five questions about anything unclear."
Corrections in the same chat build on the context already there, so they are usually more efficient than starting over.
Techniques that help on harder tasks
- Break big jobs into steps. Outline, then draft, then revise. Each step is easier to review.
- Give examples. Paste one or two samples of what good looks like. Models are very good at matching a pattern.
- Ask for options. "Three versions" lets you choose and combine rather than accept the first try.
- Separate facts from interpretation. "Label what the document states and what you are inferring."
- Use extended thinking for multi-step problems. On Palvoro this is optional per prompt on most models. It helps with reconciling figures, planning or spotting contradictions, and is not needed for simple rewrites.
- Turn on web search for current facts. Anything that could have changed recently should be grounded in sources you can open.
Testing prompts across models
The same prompt can give noticeably different results on different models. Some write more naturally, some follow format instructions more strictly, some are more careful with long documents. When a prompt matters, such as one you will reuse every week, test it.
Double Chat on Palvoro sends one prompt to two models side by side, for example Claude Sonnet 5.5 and GPT-6.2 Sol, or a cheaper model such as Gemini 3.8 Flash against a stronger one. If the cheaper model gives output you would sign off on, use it for that task. Text is billed on input plus output words at each model's words-per-credit rate, so the choice makes a real difference over time. Gemini 3.8 Flash, for example, gives 6 words per credit.
Building a personal prompt library
Once a prompt works, save it. Keep a short document of your best prompts for recurring tasks, with brackets where details change. A tuned prompt for weekly reports, meeting minutes or client replies saves the setup every time and gives consistent results. For a ready-made starting set, see our 40 ChatGPT prompts for work, which follow this framework and work across models.
To practice the framework on your own documents, create a free account and use the 150 free credits. The main guide to AI for documents shows where these prompts fit across reading, writing, editing and research.
FAQ
What makes a good AI prompt?
A clear task, the reader it is for, the material to use, the format you want and any constraints. For important work, add an instruction to quote sources or flag uncertainty.
Do I need prompt engineering tricks?
Rarely. Specific context and clear instructions matter far more than special phrases. Iterating with direct feedback beats trying to write one perfect prompt.
How long should a prompt be?
As long as it needs to be to remove guesswork. A one-line rewrite request is fine, while a report or analysis prompt might be a short paragraph plus attached material.
Why does the same prompt give different results?
Models generate text with some variation, and different models have different tendencies. For prompts you reuse, test them on two models and keep the clearer instructions.
More on documents and research
- Complete guideA Practical Guide to AI for Documents, Spreadsheets and Research
- 40 ChatGPT Prompts for Work That Save Real Time
- How to Analyze Excel With AI and Trust the Numbers
- How to Edit a Word Document With AI
- How to Review a Contract With AI and What It Misses
- How to Summarize a PDF With AI Without Missing What Matters
- How to Use an AI Report Writer and Export to PDF or Word