📝 Guide

How to write AI prompts

Most weak AI answers come from vague prompts. This simple formula fixes that - here's how to write prompts that get great results every time.

To write a good AI prompt, give it four things: a role (who the AI should act as), a task (exactly what you want), context (the background it needs), and an output format (the shape of the answer). Be specific about these and the quality jumps.

The role-task-context-format formula

Strong prompts almost always include four parts:

Before and after

❌ Weakhelp me write a product description
✅ StrongYou are an e-commerce copywriter. Write a 60-word product description for [product], aimed at [audience]. Lead with the main benefit, friendly tone, end with a reason to buy now.

Step by step

  1. Start with the role and task in one sentence.
  2. Add the context the AI can't guess.
  3. State the exact output format.
  4. Run it, then refine: “shorter”, “more formal”, “add examples”.
  5. Save the prompt once it works.

Common mistakes

Prefer to skip the manual work? A one-click prompt enhancer adds this structure for you.

Write better prompts in one click

PromptChief turns rough prompts into clear, structured ones and saves your best across ChatGPT, Claude, Gemini and 24 more AI tools. Free browser extension, no account needed.

Add PromptChief free →

Frequently asked questions

How do I write a good AI prompt?

Give the AI four things: a role (who to act as), a clear task (exactly what you want), context (the background it needs), and an output format (the shape of the answer). Being specific about these four is the biggest lever on quality.

What is the best prompt formula?

A reliable formula is role + task + context + output format. For example: 'You are a [role]. [Task]. Context: [details]. Output: [format].' Add few-shot examples or step-by-step reasoning for harder tasks.

How long should a prompt be?

As long as it needs to be clear - no longer. Short prompts work for simple asks; complex tasks need more context and constraints. Cut anything that doesn't help the AI understand what you want.

How do I get better answers from ChatGPT?

Improve the prompt, not just the question. Add a role, state the task and constraints, specify the output format, and iterate on the result. Clearer input is the fastest way to better ChatGPT answers.