How to Write AI Prompts: 7 Tips for More Accurate Answers

Ask AI the same question and one person gets a usable answer while another gets vague advice. These tips distill the official guides from Google, Anthropic and OpenAI.
Key Takeaways
- A prompt is the question or instruction you give an AI, and the clearer and more specific it is, the closer the answer usually is to what you need.
- Google's Gemini help documentation suggests a good prompt can include four parts: persona, task, context and format.
- Anthropic's prompting guide says examples are one of the most reliable ways to steer an AI's format and tone, and recommends 3 to 5 of them.
- Google recommends treating your exchange with AI as a conversation, using follow-up prompts to review and refine the results.
- Generative AI guidelines issued by Taiwan's Executive Yuan in October 2023 bar officials from giving generative AI confidential official or personal information.
Ask an AI the same question and one person gets an answer they can use right away, while another gets a pile of vague suggestions. The difference is often the prompt. You do not need to memorize magic words; the key is to say everything you have in mind.
This guide pulls together the common ground in the official prompting guides from Google, Anthropic and OpenAI, turns it into 7 tips anyone can use, and ends with a ready-to-use template and a safety reminder.
What is a prompt?
A prompt is the question or instruction you type into an AI. The AI can only work from the words you give it, so the clearer and more complete your prompt, the closer the answer usually comes to what you need.
The principle is the same whether you use ChatGPT, Gemini or Claude. Anthropic's official guide offers an easy analogy: think of the AI as a brilliant but new employee who lacks context on your norms and workflows. The more precisely you explain what you want, the better the result.
Anthropic also suggests a simple test: show your prompt to a colleague who knows little about the task. If they would be confused, the AI probably will be too. If you are still choosing a tool, start with our 2026 AI chatbot comparison.
Why does AI so often miss the point?
Usually the prompt is too short and lacks context. The AI does not know who you are, where the answer will be used or how long it should be, so it gives the most generic reply. Add those details and the answer becomes far more specific.
For example, if you only type "write a self-introduction," the AI cannot tell whether it is for a job interview, a club or a blind date, or whether it should last 30 seconds or 3 minutes. The table below compares two ways of asking for the same thing:
| Vague prompt | Clear prompt |
|---|---|
| Write a self-introduction for me | I am applying for a marketing assistant job. Write a 1-minute interview self-introduction that highlights my experience running campus events, in a natural, modest tone |
| Recommend places to visit in Taipei | I am spending half a Saturday in Taipei with a 5-year-old. List 3 places reachable by MRT with an indoor backup option, and explain why each one suits us |
| Make this letter better | Below is a delayed-delivery notice to a client. Make it more polite, keep it under 150 words and keep the original dates |

7 Prompt Writing Tips for More Accurate AI Answers
1. State the task clearly and start with a verb
Google's Gemini help documentation recommends telling the AI exactly what you need it to do, such as summarize, write, change the tone or create, and using a verb. "Summarize into key points," "rewrite as" and "list" are much clearer than "something about this topic."
2. Add background and purpose
Google recommends providing as much relevant background as possible. Anthropic also notes that explaining the reason behind an instruction, for example "this text will be read aloud by a text-to-speech engine, so do not use ellipses," helps the AI understand your goal and give a more targeted answer. Who the readers are, where the text will be used and any constraints are all worth including.
3. Give the AI a role
Telling the AI "you are a junior high school science teacher" or "you are an HR manager with 10 years of experience" keeps the wording and perspective of the answer more consistent. Anthropic's guide says even a single sentence of role-setting makes a difference, and Google lists persona as one of the four parts of a good prompt.
4. Provide examples for the AI to follow
Anthropic's guide says examples are one of the most reliable ways to steer an AI's format, tone and structure, and recommends 3 to 5 examples for best results. OpenAI's prompting guide also suggests showing a diverse range of possible inputs along with the desired outputs. For instance, if you want product descriptions in a fixed format, paste two or three versions you like first.

5. Specify the format and length
Google advises being specific about the structure you want, so spell it out: "use a table," "list 5 points" or "under 200 words." Anthropic adds that telling the AI what to do works better than telling it what not to do: instead of "do not use bullet points," write "please answer in flowing paragraphs."
6. Separate your material from your instructions
When you ask the AI to work on an article or meeting notes, mark off the material with symbols, for example "Here are the meeting notes:" followed by a "###" divider, or wrap it in "<notes>…</notes>". OpenAI's guide recommends Markdown headings or XML tags to separate different kinds of content; Anthropic also recommends wrapping each type of content in XML tags and putting long documents near the top of the prompt with your question at the end.
7. Follow up step by step and let the AI check itself
It is normal not to be satisfied with the first answer. Google recommends treating the exchange as a conversation, using follow-up prompts to review and refine. You can also split a complex task: ask the AI for a first draft, then have it review the draft against criteria you list, and finally revise it. This is the self-correction pattern described in Anthropic's guide.
Is there an all-purpose prompt template?
Try the four-part formula of persona, task, context and format: say who the AI should be and what it should do, add background and purpose, then specify the format. You do not have to fill in all four every time.
Google's documentation also notes that you do not need all four parts; using a few of them already helps. Here is an example you can adapt:
You are an experienced English teacher (persona). Please compile 10 business words that often appear on the TOEIC test (task). I am an office worker with 20 minutes to study vocabulary on my daily commute (context). Put the word, part of speech, Chinese meaning and one example sentence in a table (format).
You can then practice the words with our English vocabulary typing practice tool, and find more study ideas in practical ways to learn English with AI.

What information should you never enter into AI?
Never enter passwords, national ID numbers, medical records, customer data or company secrets. Once submitted, you cannot easily control how the content is used, so delete names and numbers before asking if you must.
Taiwan's National Science and Technology Council presented draft generative AI guidelines for the Executive Yuan and its agencies to the Executive Yuan Council on August 31, 2023, and the Executive Yuan formally issued them on October 3, 2023. They require the official handling a matter to make an objective, professional final judgment on AI-generated information, ban the use of generative AI for confidential documents, and prohibit giving generative AI any information that is confidential, personal or not cleared for release by the agency. The guidelines were written for government agencies, but they are a good reminder for everyone.
And however good your prompt is, AI can still get things wrong. For important numbers, dates and rules, double-check them with these 5 ways to fact-check AI hallucinations.
Frequently Asked Questions
Is a longer prompt always better?
Not necessarily. What matters is complete information, not word count. Google recommends writing in natural, full sentences that make the task, context and format clear, while content unrelated to the task can lead the AI to focus on the wrong thing.
Are prompts written in English more accurate?
All three official guides focus on being clear, specific and giving context rather than on which language you use. Describing your needs clearly in your own language is fine, and if you want an English result, simply state the output language in your prompt.
Why does the same prompt give a different answer each time?
AI text generation involves randomness, and OpenAI's guide notes that generated content is non-deterministic. For more consistent results, make the format more explicit, add examples or ask the AI to follow fixed steps.
If I am unhappy with an answer, should I start a new chat or keep asking?
If the answer is roughly on track, just follow up and point out what to change. If the AI misunderstood from the start, or the chat has become long and messy, starting a new chat and stating your needs clearly in one go is usually more efficient.
Sources: Google Docs Editors Help – Learn about prompts for Gemini, Anthropic – Prompting best practices, OpenAI – Prompt engineering, National Science and Technology Council (Taiwan) – Press release on the draft generative AI guidelines for the Executive Yuan and its agencies (2023, in Chinese)