โ 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:
- Speed: drafts, summaries, ideas, or code in seconds instead of starting from scratch.
- Specificity without fluff: detailed instructions and constraints that stop the AI from returning generic, surface-level answers.
- Usable formatting: output ready to paste, edit, or ship โ lists, tables, code blocks, structured sections.
- Room to iterate: the first response is a rough draft. You adjust the tone, layout, or details in follow-up turns instead of expecting perfection in one shot.
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.
- 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.
- Task / Ask: the exact action you want, stated with a clear verb. Write, summarize, compare, brainstorm, debug โ one job, named plainly.
- 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.
- 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
Summarize anything
Build a website
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:
- Site goal: one sentence โ what should a visitor DO? Book, buy, call, sign up.
- Target visitor: who exactly, and what do they care about?
- Pages & features: list them โ booking form, prices, gallery, testimonials, contact.
- Visual mood: colors, style words, or example sites you like. Design tokens beat adjectives.
- Real content: your actual text, prices, and photos โ or say what you'll supply later.
- Follow-ups: iterate in turns โ "make the hero shorter," "add a testimonials section" โ instead of expecting perfection in one shot.
Sources & further reading
- Atlassian โ The ultimate guide to writing AI prompts
- University of Kansas โ Prompting AI chatbots
- MIT Sloan EdTech โ Effective prompts
- Sheridan College โ Writing effective AI prompts
- Nielsen Norman Group โ Careful prompts
- Yoast โ Prompting guide for AI website builders
- Wix โ Good AI prompts for building websites
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