How to Write AI Prompts

To write effective AI prompts: (1) Assign a role — "Act as a marketing copywriter"; (2) Give context — describe the audience, product, and goal; (3) State the task clearly — exactly what you want produced; (4) Specify the format — word count, bullet points, tone; (5) Add constraints — what to avoid. This structure takes 30 extra seconds and produces dramatically better results than a vague request.

Most people type a quick question into ChatGPT and get a generic answer. This guide shows you a better way — a simple structure that works for any task and any AI tool, with no technical knowledge required. By the end of this guide you will know how to assign a role, provide context, specify a format, and set constraints. These four steps take about 30 seconds longer than a casual request and consistently produce results that are 3-5 times more useful.

Last updated: July 2026

Want to put these prompts to work inside Claude Code?

Get practical Claude Code tips in your inbox — no hype, no spam.

The full guide to Claude Code, MCP, and hooks — free.

Ready-to-Use AI Prompts for How to Write Prompts

Before & After — Weak vs Strong Prompt

See the difference between a vague prompt and a well-structured one.

WEAK PROMPT: "Write me a bio." STRONG PROMPT: Act as a professional copywriter. Write a 150-word third-person professional biography for [Name], a [job title] at [company]. They have [X years] of experience in [field]. Their key accomplishments are [1-2 achievements]. The tone should be confident but approachable — suitable for a conference speaker page. Do not use the phrase "passionate about". End with one sentence about their interests outside work.

Step 1 — Assign a Role

The simplest upgrade: tell the AI who to be before asking your question.

Act as an experienced primary school teacher who specialises in making complex subjects understandable for 8-10 year olds. Explain how photosynthesis works. Use a simple analogy, keep it under 100 words, and end with one question a child could answer to check their understanding.

Step 2 — Add Context

Give the AI the background it needs to give a relevant answer.

I run a small Irish accounting firm with 3 staff. We serve sole traders and small businesses with up to 10 employees. Our clients are not financially sophisticated and often find accountancy jargon confusing. Write a one-paragraph explanation of what a P60 is and why it matters, written for our clients to read on our website. Plain English only. No jargon.

Step 3 — Specify the Format

Tell the AI exactly how you want the output structured.

List 10 ideas for reducing food waste at home. Format: A numbered list. Each item should have a bold heading (3-5 words) followed by one sentence of explanation. Do not include a preamble or conclusion — just the 10 items.

Step 4 — Set Constraints

Use constraints to prevent the most common AI failure modes.

Write a subject line for a cold sales email promoting a time-tracking app to freelance designers. Constraints: - Maximum 8 words - Do not use the word "free" or "boost" - Do not use an exclamation mark - Do not start with "Introducing" - The reader should feel curious, not sold to Give me 5 options.

How to Use These Prompts

1

Copy the Prompt

Click the "Copy Prompt" button to copy the prompt to your clipboard.

2

Paste in AI Tool

Paste the prompt into ChatGPT, Claude, Gemini, or your preferred AI tool.

3

Customize & Use

Fill in the bracketed sections with your specific information and get results!

Frequently Asked Questions

What is the most important part of an AI prompt?+

Specificity. Vague prompts produce generic outputs — the AI has to guess what you actually want. The single biggest improvement most people can make is to add concrete details: the audience, the format, the length, the tone, and what to avoid. Even adding one specific constraint like "under 200 words" or "suitable for LinkedIn" measurably improves results.

Do I need to write long prompts to get good results?+

Not necessarily. The best prompt is specific enough for the AI to produce exactly what you need — no longer. A 30-word prompt with clear role, task, and format beats a 300-word prompt full of vague instructions. That said, complex tasks like research reports or detailed analysis do benefit from more context. Start with the minimum and add detail only when the output is not specific enough.

How do I know if my prompt is good?+

Test it. A good prompt produces an output you can use with minimal editing on the first or second attempt. If you are consistently rewriting or regenerating, the prompt needs more specificity — usually more context, clearer format instructions, or explicit constraints. Keep a log of prompts that worked well and study what made them effective.

Can the same prompt work for ChatGPT and Claude?+

Core prompt structure works across all major AI tools. Role assignment, context, format specification, and constraints all improve results on ChatGPT, Claude, Gemini, and others. Minor differences: Claude tends to follow detailed constraint lists very precisely. ChatGPT responds especially well to role prompting. Gemini is strong for research and factual tasks. Start with one well-structured prompt and adjust based on the specific model's response patterns.

How do I improve if the AI gives a bad first response?+

Do not start over — build on the response. Tell the AI specifically what to change: "Good structure, but make the tone more casual and reduce the length by half." Or: "The first paragraph is too formal — rewrite it to sound like a friendly email." Iterating is faster than re-prompting from scratch, and the AI retains your original context. Treat it as an editing conversation, not a one-shot request.