How to Write Better AI Prompts: A Simple Formula That Works
Learn a simple 4-part prompt formula, see before-and-after examples and fix weak answers in minutes.
In this article
Most weak AI answers come from weak questions. The AI does not know your goal, your audience or the format you want. Fix that and answers improve at once.
The 4-part formula
- Role: who should the AI act as?
- Task: what exactly should it do?
- Context: what does it need to know about you and the situation?
- Format: how should the answer look (length, tone, structure)?
Act as a [role]. Your task is to [task]. Context: [who it is for, goal, any facts]. Answer in this format: [bullets / table / 200 words / simple English].
Before and after
Weak prompt: "Write about healthy eating."
Better prompt:
Act as a friendly dietitian. Write a one-page guide on healthy eating for busy office workers in India. Include 5 simple tips, a sample one-day vegetarian menu and 3 mistakes to avoid. Use simple English and short bullet points.
The second prompt gives the AI a role, an audience, a structure and a tone, so the result is much more useful.
6 habits that help every time
- Give an example. "Write in a style like this: [short sample]."
- Say what to avoid. "No jargon. No long introductions."
- Ask for questions first. "Ask me 3 questions before you start if anything is unclear."
- Break big tasks into steps. Outline first, then each section.
- Iterate. Say "make it shorter", "more specific" or "give 3 options".
- Set the length. "Under 150 words" works better than "short".
Fix a bad answer fast
If the answer misses the point, do not start over. Reply with exactly what is wrong.
This is too general. Make it specific to [my situation]. Replace the generic tips with concrete steps and one example for each.
Let a tool improve your prompt
Paste a rough prompt into our free Prompt Improver to add structure. If you work with long prompts, the AI Token Counter gives an estimate of their size.
Prompt templates for common tasks
Explain:
Explain [topic] to a beginner. Use a simple analogy, a real example and a 3-point summary.
Compare:
Compare [A] and [B] in a table with columns: best for, pros, cons, cost. Then give a recommendation for [my situation].
Plan:
Create a step-by-step plan to [goal] in [time]. List the first 3 actions I can take today.
Fill in the brackets with real details. You will notice the answers are much more useful.
Tools mentioned
All AI tools βA general-purpose AI assistant for writing, learning, coding and images.
A thoughtful AI assistant that is strong at writing, long documents and coding.
Google's AI assistant that works with Search, Gmail, Docs and more.
Free tools you can use now
Prompt Improver
Paste a rough prompt and turn it into a clearer, more structured prompt in one click.
AI Token Counter
Estimate how many tokens your text uses before you send it to an AI model.
Frequently asked questions
Do prompts work the same in ChatGPT, Claude and Gemini?
The formula works in all of them. Each tool has its own style, so small tweaks may help. Try the same prompt in two tools and compare.
Does a longer prompt always give a better answer?
No. A clear prompt beats a long one. Add details that change the answer and remove the rest.
What is prompt engineering?
It is simply the skill of giving AI clear instructions and examples so you get the result you want.
Get new AI tools and prompts in your inbox
One short email when something useful is added. No spam.
Keep reading
All articles βHow to Make a Presentation with AI in 15 Minutes
Create a clean slide deck fast: plan the story with AI, generate slides and polish them so they do not look like everyβ¦
How to Learn Coding with AI (Without Becoming Dependent on It)
Use AI as a patient tutor to learn programming faster: study plans, explaining code, debugging and practice projects.
How to Write Instagram Captions and Hashtags with AI
Create scroll-stopping captions, bios and hashtag sets in minutes with AI and free tools, without sounding robotic.
AI tools change quickly. Features, limits and prices mentioned here can differ from what you see today, so check the official website before you decide.