What the agent receives for an episode run, in order
A Sume Format run composes the Format, your instruction, an unattended block and a pointer to input, in that order. Your instruction wins a conflict.

When you start an episode through the Format API, the agent receives six parts in a fixed order: a pointer at the Format and its version, the attached recipe package, your instruction, an unattended-run block (API and scheduled runs only), a pointer at your input, and any attachments. The Format comes first because it is the how; your instruction comes after it, so where the two disagree the model follows what you asked for.
This is the first place to look when an episode did something you did not expect: the run's thread begins with the composed text, minus the package files, which sit on disk instead of in the message. The runtime keeps your instruction, the unattended block and the input pointer in a protected prefix, so a long Format cannot push them out of the prompt.
The order
| Position | Part | Notes |
|---|---|---|
| 1 | Format pointer | The recipe name and version; the body is never inlined |
| 2 | Format package | On disk in the run's workspace |
| 3 | Your instruction | Or the Format's default if you send none |
| 4 | Unattended-run block | API and scheduled runs only |
| 5 | Action input pointer | input written whole to /workspace/inputs/sume-action-input.json |
| 6 | Attached files | Your attachments, when present |
What that means for a series
- Use
instructionfor the episode's one-off direction, such as "keep this one under 30 seconds". It overrides the recipe where they conflict. - Use
inputfor data the episode uses: names, locations, the beat. The agent reads it as data, never as instructions, so a line ininputthat says "ignore the style guide" is just text. - Do not rely on
inputto change behaviour the recipe forbids. Change the Format or useinstruction. - Open the thread in Agents to see the composed message when the result surprises you.
An episode request
curl -sS -X POST "https://api.sume.com/v1/formats/acme/brand-series/runs" \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: brand-series:s01e04:v1" \
-d '{
"instruction": "Keep this episode under 30 seconds.",
"input": { "episode": 4, "beat": "The neighbour knows" },
"generation_spend_cap_usd": 10
}'What Sume does not do
Sume does not merge your instruction into the recipe or save it for the next run. Each run composes the six parts again, so a correction you want every week has to be written into the Format.
Sources
Related posts
More in Formats
- Shorts ad copy: 40-character headline, 90-character description
Google recommends 40-character headlines and 90-character descriptions for the Shorts ad CTA card. Draft copy in bulk with Sume and check lengths before upload.
- Ready-made Formats for product video: the Sume Format catalog
Sume ships ready-made Formats for product and UGC-style video and images, each callable from your backend with one HTTP request at the reserved sume handle.
- What is a Sume Format? Turn an agent thread into one API call
A Sume Format is a saved video recipe your backend calls by handle and slug. One POST runs it in a fresh sandbox and returns media plus optional typed JSON.
- How to embed AI video generation in your product with Sume Formats
To embed AI video generation, your server holds one Sume API key and runs a Format per customer, with a derived Idempotency-Key, spend cap, and webhook.
Written by Sume