โ† Back to the prompt library

What Is an AI Prompt? The 4-Part Anatomy (+ Before & After)

A prompt is the instruction you give an AI. Because the AI can't read your mind, the quality of your directions decides the quality of the answer.

What is a prompt, exactly?

A prompt is the natural-language instruction, question, or brief you give an AI bot to tell it what to do. You type it, the AI reads it, and it produces something based on what you asked โ€” a draft, a summary, an idea, a piece of code, an image. The AI cannot infer missing background context, so clear directions are what separate a useful answer from a generic one.

That is the whole skill. Not a secret trick, not a magic phrase โ€” just telling the machine, precisely, what you want.

What people actually want from a prompt

Talk to regular AI users and the same four wishes come up:

The 4-part anatomy of a strong prompt

Most effective prompts cover four elements. Miss one and the answer gets vaguer; cover all four and the AI has almost nothing left to guess.

  1. Role / Persona: who the AI should act as โ€” an editor, a designer, a developer, a patient tutor. The role sets the voice, the vocabulary, and the standard.
  2. Task / Ask: the exact action you want, stated with a clear verb. Write, summarize, compare, brainstorm, debug โ€” one job, named plainly.
  3. Context & Constraints: background details, target audience, rules, what to include or avoid, and length or style limits. This is the part most people skip, and the part that matters most.
  4. Format & Examples: how the answer should be structured โ€” bullet list, table, code block, sections โ€” optionally paired with a sample of what good looks like.

Role + task + context + format. That's the formula behind every prompt in this library.

Before and after

Same request, three ways. Watch what the four parts do.

โœ— Before: "Write an email about our sale."

โœ“ After: "Act as a copywriter for a family bakery. Write a 120-word email to regular customers announcing a Saturday croissant special: buy 2, get 1 free. Warm tone, one call to action, subject line included."

โœ— Before: "Build me a website for my business."

โœ“ After: "Act as a web designer. Build a one-page site for a dog grooming business in Tulsa: hero section with a booking button, services with prices, a photo gallery, testimonials, and a contact form. Calm colors, mobile-first. List anything you need from me before you start."

โœ— Before: "Summarize this article."

โœ“ After: "Act as an editor. Summarize this 2,000-word article in 5 bullet points for a busy manager: one line per point, no jargon, end with the single decision it asks for. Article: [paste article]"

Copy-paste templates

Three templates that use the full anatomy. Fill in the [BRACKETS] and go.

Write anything

Act as a [role]. Write a [format] about [topic] for [audience]. Tone: [tone]. Length: [length]. Include [must-include] and avoid [avoid]. End with [ending].

Summarize anything

Summarize the text below in [number] bullet points for [audience]. Keep every fact and number exactly as written. Flag anything uncertain. Text: [paste text]

Build a website

Act as a web designer. Build a [number of pages] site for [business], a [type of business] in [city]. Goal: [what a visitor should do]. Visitors: [audience]. Pages and features: [list]. Style: [colors and mood]. Mobile-first. List anything you need from me before you start.

Building a website with AI? Use this checklist

Website prompts fail when the AI has to invent your business. Give it these six things up front:

Sources & further reading

Don't write from scratch. Pick a ready-made prompt, fill in your details, and run it with free built-in AI.

Browse the 100-prompt library โ†’ Try the Prompt Builder โ†’

Related: How to Write Better ChatGPT Prompts ยท Side Hustle Starter Pack ยท Best Free AI Prompt Libraries