How to Write Effective AI Prompts (With Copyable Templates)

Updated · By Viviai

A good prompt tells the AI four things: what role to play, what task to do, what context matters, and what format you want. Most disappointing answers come from skipping one of these — not from the model being "unable to help."

This guide gives you a repeatable formula and templates you can copy and adapt.

The core formula: role + task + context + format

Compare these two:

The second prompt leaves almost no room for a generic answer.

Five habits that improve every prompt

  1. Be specific about length and audience. "Explain to a complete beginner" and "explain to an engineer" produce different answers.
  2. Name the format. Ask for a table, numbered steps, or bullet points.
  3. Provide source material. Paste the text you want used and say "answer only from this."
  4. Set constraints. Deadlines, tone, things to avoid, and required points all sharpen output.
  5. Iterate. Follow up with "shorter," "more formal," or "remove the jargon" instead of starting over.

Copyable templates

1. Explanation template

Act as a patient tutor. Explain [concept] to a complete beginner.
Use one everyday analogy, then give the technical definition.
End with three key points and a short FAQ. Avoid jargon.

2. Summarization template

Summarize the text below in five bullet points.
Separate facts from opinions, and note anything that looks uncertain.
Do not add information that is not in the text.
Text: [paste here]

3. Email template

Write a [tone] email of about [number] words to [audience].
Goal: [what you want the recipient to do].
Include these points: [list]. Avoid pushy language and absolute claims.

4. Comparison template

Compare [option A] and [option B] in a table.
Use these dimensions: price, strengths, weaknesses, best-for user.
Then recommend one for [specific situation] and explain the trade-off.
Stay neutral and note where evidence is missing.

5. Brainstorming template

Generate 10 ideas for [goal] aimed at [audience].
For each, give a one-line description and rank them by effort required.
Avoid generic suggestions and mark the three strongest.

6. Editing template

Edit the text below for clarity and natural tone.
Keep the meaning and my voice. Explain each change in a short list.
Text: [paste here]

Advanced moves

Common mistakes

Frequently asked questions

Is there a single perfect prompt? No. Models and products change, so a prompt that works today may need adjustment later. Reliable structure matters more than a magic phrase.

Should I use long or short prompts? As long as needed to carry the role, task, context, and format — no longer. Padding does not help.

Can I use the same prompt in different languages? You can translate the structure, but write it in the target language and respect local phrasing rather than converting word by word.

Key takeaways

Next, read our beginner guide to ChatGPT and our explainer on AI hallucination and how to verify answers.

Sources

  1. https://www.gartner.co.jp/ja/articles/ai-agents
  2. https://platform.openai.com/docs/guides/prompt-engineering

Learn by doing

Read a guide, then practice with bite-sized AI lessons you can take offline.

Start learning free