Nathan Hodgson
Library
PromptsBeginner1 min readUpdated

Open AI's Perfect Prompt Framework

OpenAI's recommended framework for writing effective prompts.

The core elements of a prompt that actually works - based on how the best AI practitioners structure their inputs. Not a rigid template, but a mental checklist.

The 5 Elements

1. Role

Tell the AI who it is. Not 'you are an expert' (vague) - be specific. 'You are a direct response copywriter who specialises in email marketing for SaaS companies.' The role sets the entire frame for how it responds.

2. Task

State exactly what you want produced. One clear deliverable. 'Write a 200-word email subject line and body for our product launch.' Not 'help me with my email.'

3. Context

Give it the information it needs that it couldn't otherwise know. Audience, background, constraints, what's already been tried. The AI can't read your mind - fill in the gap.

4. Format

Specify how the output should look. Length, structure, tone, what to include and exclude. 'No bullet points. Conversational tone. Under 150 words. End with a question.' Without this, you get the AI's default, which may not match what you need.

5. Examples

One good example beats five paragraphs of instructions. 'Write in this style: [paste example]' is one of the most effective things you can add to a prompt.

The Prompt Template

Prompt
You are [specific role].

Your task: [clear deliverable].

Context: [background information, audience, constraints].

Format: [length, structure, tone, inclusions/exclusions].

Example of the style I want: [paste example if you have one].

The Most Common Mistake

Treating the AI like a search engine - a vague input expecting a specific output. The quality of what you get back is directly proportional to the quality of what you put in. Spend 60 seconds on the prompt and save 10 minutes on edits.