# Band: Object Formula (A + B = C): Diagram element for AI agents

> Cause and result as a sum: two objects add up to a bigger result object, each with a tag.

Canonical page: https://agentframes.ai/elements/strata/formula/
Markdown: https://agentframes.ai/elements/strata/formula.md

## Overview

- Name: Band: Object Formula (A + B = C) (`formula`), an element: one HyperFrames block per size
- Part of: the [Strata](https://agentframes.ai/packs/strata.md) pack (22 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Cause and result as a sum: two objects add up to a bigger result object, each with a tag.
- Pack: [Strata](https://agentframes.ai/packs/strata.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Candy (cream page, five candy bands) (`candy`), Seaside (sand page, apricot to coral) (`seaside`), Night (midnight page, neon bands) (`night`); avoid none
- Typical duration: 7s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/strata/formula.mp4
- Poster: https://agentframes.ai/media/strata/formula.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Strata pack. Add a `formula` beat to plan.json on a `candy` canvas with slots `number`, `title`, `body`, `colour`, `prevColour`, `side`, `a`, `b` and `result` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `number` | number | number | {"type":"integer","minimum":1,"maximum":9} | 5 |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":28} | Small +\|steady |
| `body` | string | body | {"type":"string","minLength":0,"maxLength":80} |  |
| `colour` | enum | colour | {"type":"string","enum":["auto","peach","green","periwinkle","blue","pink","b1","b2","b3","b4","b5"]} | pink |
| `prevColour` | enum | prevColour | {"type":"string","enum":["auto","cream","peach","green","periwinkle","blue","pink","navy","gold","b1","b2","b3","b4","b5","page"]} | blue |
| `side` | enum | side | {"type":"string","enum":["auto","left","right"]} |  |
| `a` | string | a | JSON string. {"type":"object","properties":{"object":{"type":"string","enum":["timer","target","phone","mug","hourglass","chart","bulb","rocket","coins","piggy","wallet","card","apple","dumbbell","heart","bottle","moon","calendar","clipboard","laptop","envelope","megaphone","chat","trophy","star","magnet","cloud","gear","lock","battery","book","cap","pencil","plant","house","plane","globe","key","people","shield","flag"]},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["object","label"]} | {"object":"coins","label":"£5 a day"} |
| `b` | string | b | JSON string. {"type":"object","properties":{"object":{"type":"string","enum":["timer","target","phone","mug","hourglass","chart","bulb","rocket","coins","piggy","wallet","card","apple","dumbbell","heart","bottle","moon","calendar","clipboard","laptop","envelope","megaphone","chat","trophy","star","magnet","cloud","gear","lock","battery","book","cap","pencil","plant","house","plane","globe","key","people","shield","flag"]},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["object","label"]} | {"object":"calendar","label":"1 year"} |
| `result` | string | result | JSON string. {"type":"object","properties":{"object":{"type":"string","enum":["timer","target","phone","mug","hourglass","chart","bulb","rocket","coins","piggy","wallet","card","apple","dumbbell","heart","bottle","moon","calendar","clipboard","laptop","envelope","megaphone","chat","trophy","star","magnet","cloud","gear","lock","battery","book","cap","pencil","plant","house","plane","globe","key","people","shield","flag"]},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["object","label"]} | {"object":"piggy","label":"£1,825"} |

## What your agent can change

**Band: Object Formula (A + B = C)** (band device). Native 1920×1080, 7s at 30fps.

Cause and result as a sum: two objects add up to a bigger result object, each with a tag.

**Motion.** A builds, + pops; B builds, = pops; the result builds bigger with its tag in the headline colour.
**Why it moves.** consequence: the equals sign makes the outcome feel inevitable.

### Mount

Copy every manifest file path → target into your project (plus `af-strata-runtime`). Mount with a unique host id, `data-composition-id="af-strata-formula-16x9"`,
`data-composition-src="compositions/af-strata-formula-16x9.html"`, `data-duration="7"` and native `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings inside `data-variable-values`. Every slot is checked against `constraints.json` and measured
against the layout before anything draws; the block stops with a message naming the slot and the fix (it never truncates or
shrinks text). Use "|" in a title to choose line breaks. Band colours: peach, green, periwinkle, blue, pink (aliases b1-b5);
in the seaside and night colourways the same names give that colourway's bands 1-5.

- `number`: whole number. {"type":"integer","minimum":1,"maximum":9}
- `title` (required): string. {"type":"string","minLength":1,"maxLength":28}
- `body`: string. {"type":"string","minLength":0,"maxLength":80}
- `colour`: string. {"type":"string","enum":["auto","peach","green","periwinkle","blue","pink","b1","b2","b3","b4","b5"]}
- `prevColour`: string. {"type":"string","enum":["auto","cream","peach","green","periwinkle","blue","pink","navy","gold","b1","b2","b3","b4","b5","page"]}
- `side`: string. {"type":"string","enum":["auto","left","right"]}
- `a` (required): JSON string. {"type":"object","properties":{"object":{"type":"string","enum":["timer","target","phone","mug","hourglass","chart","bulb","rocket","coins","piggy","wallet","card","apple","dumbbell","heart","bottle","moon","calendar","clipboard","laptop","envelope","megaphone","chat","trophy","star","magnet","cloud","gear","lock","battery","book","cap","pencil","plant","house","plane","globe","key","people","shield","flag"]},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["object","label"]}
- `b` (required): JSON string. {"type":"object","properties":{"object":{"type":"string","enum":["timer","target","phone","mug","hourglass","chart","bulb","rocket","coins","piggy","wallet","card","apple","dumbbell","heart","bottle","moon","calendar","clipboard","laptop","envelope","megaphone","chat","trophy","star","magnet","cloud","gear","lock","battery","book","cap","pencil","plant","house","plane","globe","key","people","shield","flag"]},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["object","label"]}
- `result` (required): JSON string. {"type":"object","properties":{"object":{"type":"string","enum":["timer","target","phone","mug","hourglass","chart","bulb","rocket","coins","piggy","wallet","card","apple","dumbbell","heart","bottle","moon","calendar","clipboard","laptop","envelope","megaphone","chat","trophy","star","magnet","cloud","gear","lock","battery","book","cap","pencil","plant","house","plane","globe","key","people","shield","flag"]},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["object","label"]}

- `title` is the band headline (max 2 lines; "|" chooses the break). `body` is optional (one short line under the headline in 16:9, at the foot of the band in the other sizes); leave it empty to give the device more room.
- `number` defaults to sceneIndex + 1. `colour`: auto follows sceneIndex (band 1 = peach, 2 = green ...); `prevColour`: auto is the previous band (the page for the first). Set both explicitly if your film has other scenes between bands.

Style (role "style", defaults from brand.json): `colourway` (candy | seaside | night), `headingFont` (Montserrat | Archivo), `brandName`, `footer`, `sceneIndex` (zero-based band position) and `sceneTotal` (bands in the video; drives the progress strip).

### Timing

7s. Everything has landed by 4.2 s (60%), then the scene holds for reading and lifts out over the last 0.42 s.


### Example

```json
{
  "number": 5,
  "title": "Small +|steady",
  "body": "",
  "colour": "pink",
  "prevColour": "blue",
  "a": "{\"object\":\"coins\",\"label\":\"£5 a day\"}",
  "b": "{\"object\":\"calendar\",\"label\":\"1 year\"}",
  "result": "{\"object\":\"piggy\",\"label\":\"£1,825\"}"
}
```

## FAQ

### What can my AI agent change in Band: Object Formula (A + B = C)?

Your agent fills the `number`, `title`, `body`, `colour`, `prevColour`, `side`, `a`, `b` and `result` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Strata look.

### Which aspect ratios does Band: Object Formula (A + B = C) support?

Band: Object Formula (A + B = C) is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 7s.

### How do I get Band: Object Formula (A + B = C)?

Band: Object Formula (A + B = C) is included in the Strata pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Strata

- [Section: Numbered Colour Band](https://agentframes.ai/elements/strata/section.md): One numbered point of the infographic. Its band sweeps up over the previous colour with a slanted edge (the bands stack like strata), then the number and dash rule, the chunky headline, an isometric hero object and one line of copy build.
- [Quick Band: Number + Object (fast cut)](https://agentframes.ai/elements/strata/quick.md): The fast cut of the numbered band for rapid-fire lists: number, headline and the acting object, no body copy, 5 s.
- [Bonus Band: Gold + Sun Rays](https://agentframes.ai/elements/strata/bonus.md): The extra tip at the end of a list: a gold band labelled "Bonus" instead of a number, with sun rays turning into place behind the object.
- [Band: Don’t vs Do Cards](https://agentframes.ai/elements/strata/compare.md): A comparison in one band: a "don’t" card with a cross and a "do" card with a tick; the don’t card dims once the do card lands.

## Community

Coming soon.
