AI prompt structure: the order of the parts, and when to add headings

Short prompts: one order
| Part | What it says | Example |
|---|---|---|
| 1. Role | Who the model should act as | You are a patient maths tutor. |
| 2. Context | Who it is for and why | My daughter is 12 and finds fractions confusing. |
| 3. Task | The one thing to do | Explain how to add 1/3 and 1/4. |
| 4. Rules | Limits and must-haves | Use a pizza example; no jargon; under 120 words. |
| 5. Format | The shape of the answer | Three short steps, then one practice question. |
Long prompts: labelled sections
Once a prompt mixes instructions, examples and material, give each its own labelled section so the model can tell them apart. OpenAI’s guide uses four headings in a developer message:
- Identity: who the assistant is and its goal.
- Instructions: the rules, as a list.
- Examples: sample inputs and the answers you want.
- Context: documents or data for this request.
Anthropic’s guide does the same job with tags around each part, for example one tag for instructions and another for the document.
Where the question goes
- With a long document, put the document first and the question after it, as Anthropic’s guide advises.
- Put the parts you reuse at the start; OpenAI’s guide notes this helps caching.
- Keep examples apart from instructions, and make them varied, so the model copies their pattern rather than their content.
- One task per prompt; a second task gets its own prompt.
Image and video prompts have their own order
| Kind | Order |
|---|---|
| Image (Google’s Nano Banana guide) | Subject, action, location, composition, style |
| Video (Alibaba Cloud’s Wan guide) | Subject, scene, motion; then light, shot size, angle, lens and camera move; then style |
| Video (OpenAI’s Sora 2 guide) | A prose description, then Cinematography, Actions and Dialogue blocks |
Definitions and the parts of a prompt: What is an AI prompt.
One fixed layout for every shot
SceneMixer writes these for you from a script. Paste a scene or a whole episode and its storyboard step breaks it into segments, each with the shots, the action, the spoken lines and the seconds written out — in effect one video prompt per segment, which you can edit in plain words or copy out of the editor. The storyboard for episode 1 of your first drama is free.
Sources
- OpenAI API documentation, “Prompt engineering”
- Anthropic documentation, “Prompting best practices”
- Google Cloud Blog, “The ultimate Nano Banana prompting guide”, March 6, 2026
- Alibaba Cloud Model Studio, “Video generation prompt guide”
- OpenAI Cookbook, “Sora 2 Prompting Guide”
Facts about other companies’ tools on this page come from the pages above, read on November 30, 2026. They change their products and prices; check before you rely on a detail. SceneMixer is not affiliated with them. Figures for SceneMixer’s own tiers are read from its live price list each time this page is built.
FAQ
What is the structure of an AI prompt?
For short prompts: role, context, task, rules and format, in that order.
Should the question go first or last?
With a long document, Anthropic’s guide suggests the document first and the question after it.
When should a prompt have headings?
When it runs long or mixes instructions, examples and material.
What sections does OpenAI suggest?
Its prompt-engineering guide describes Identity, Instructions, Examples and Context sections in a developer message.
Do image prompts use the same structure?
No. Google’s Nano Banana guide orders them subject, action, location, composition and style.
How does SceneMixer structure video prompts?
SceneMixer’s storyboard writes each segment with its shots, action, spoken lines and seconds in the same layout.
Updated November 30, 2026