Skip to content

The 6-Part Prompt Framework for Accurate AI Output

Role, task, context, format, constraints and examples: a simple framework that turns any request into a prompt ChatGPT, Claude or Gemini can execute reliably.

PromptingBy Prompt ProfessorOct 16, 20267 min read
An architectural blueprint
Photo: Amsterdam City Archives on Unsplash
The short answer

You do not need all six parts every time — but checking all six before you hit send catches most of the gaps that cause weak answers.

Why a framework beats a list of prompts

Saved prompts break when your situation changes. A framework adapts: it reminds you what information the model needs, whatever the task. That is the difference between collecting prompts and knowing how to prompt.

The six parts

  1. Role — the expertise and standards to apply (“an experienced HR manager reviewing a policy for clarity”).
  2. Task — one clear verb and outcome (“rewrite”, “compare”, “plan”).
  3. Context — background, audience, what has been tried and why it matters.
  4. Format — the shape of the answer: table, bullets, sections, word count.
  5. Constraints — tone, reading level, must-include points, things to avoid.
  6. Examples — one or two samples of what good looks like.

A full example

6-part prompt
Role: You are a senior email marketer for small online shops.
Task: Write a 3-email welcome sequence.
Context: I sell handmade candles to women aged 25–45; new subscribers get a 10% code. Most buy as gifts.
Format: For each email: subject line, preview text, body under 120 words, one call to action.
Constraints: Warm, not pushy. No exclamation marks in subject lines. Mention gift wrapping in email 2.
Example tone: “Light something that smells like the weekend.”
AI Mastery Bundle cover
Recommended for this topic

AI Mastery Bundle

The next step after the basics: frameworks, precision prompting and a 1000+ prompt library.

$50 (was $100) · Look inside

When to use the short version

For quick questions, task plus context is often enough. Add format when you need to reuse the output, and constraints and examples when tone or accuracy matter.

Make it reusable

Put role, standing context and constraints into custom instructions, a Claude Project or a Gemini Skill. Then each new prompt only needs the task, specifics and format.

Our Prompt Builder walks through all six parts and assembles the prompt for you.

Put it into practice

Open the free Prompt Builder: build a complete prompt with the 6-part framework. This article is part of The Complete ChatGPT Guide (2026 Edition).

Sources & further reading

Product facts were checked against official sources on 16 October 2026. AI tools change quickly, so check the provider’s current documentation for anything you rely on. Our editorial policy.

Keep reading

Related articles

The weekly AI briefing

Stay ahead of every AI update in five minutes a week.

What changed in ChatGPT, Claude and Gemini, one prompt worth stealing and one tool worth trying.

One email a week. Unsubscribe any time.

We use analytics cookies to understand how visitors use our site. Functional cookies (session and page variant) are always set. See our Privacy Policy.