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

Quick answer: A good AI prompt structure puts the parts that stay the same first and the request itself after them. For a short prompt, one order works: the role, the context, the task, the rules, then the format you want back. For a long prompt, split it into labelled sections: OpenAI’s prompt-engineering guide describes Identity, Instructions, Examples and Context; Anthropic’s guide suggests tags around each part, with long documents at the top and the question after them. SceneMixer writes each storyboard segment’s video prompt in one fixed layout.
Still from “Starfall Command”, an AI short drama generated end-to-end by SceneMixer (7 characters, 1 episode)
SampleStarfall CommandDigital HD1 episodeProduced end-to-end by SceneMixer from the scriptWatch the episodes

Short prompts: one order

PartWhat it saysExample
1. RoleWho the model should act asYou are a patient maths tutor.
2. ContextWho it is for and whyMy daughter is 12 and finds fractions confusing.
3. TaskThe one thing to doExplain how to add 1/3 and 1/4.
4. RulesLimits and must-havesUse a pizza example; no jargon; under 120 words.
5. FormatThe shape of the answerThree 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

KindOrder
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

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.

Every segment in the same layout

SceneMixer writes the storyboard from your script.

Start a project

Updated November 30, 2026