# The Window: Diagram element for AI agents

> The signature frame: the shop window at night. The LED ticker flickers on with the status; the panels light one by one on their cables (the exterior, then two rooms) like a window at dusk; the rider, room plates and photo count light; the price card clicks on last; then the ticker letters change dot by dot to the address. The agency line sits on the glass.

Canonical page: https://agentframes.ai/elements/lightbox/the-window/
Markdown: https://agentframes.ai/elements/lightbox/the-window.md

## Overview

- Name: The Window (`theWindow`), an element: one HyperFrames block per size
- Part of: the [Lightbox](https://agentframes.ai/packs/lightbox.md) pack (45 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: The signature frame: the shop window at night. The LED ticker flickers on with the status; the panels light one by one on their cables (the exterior, then two rooms) like a window at dusk; the rider, room plates and photo count light; the price card clicks on last; then the ticker letters change dot by dot to the address. The agency line sits on the glass.
- Pack: [Lightbox](https://agentframes.ai/packs/lightbox.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 Night window (navy glass, amber LED) (`night`), Daylight window (pale glass, red LED) (`daylight`), High street (the agency colour as the ground) (`high`); avoid none
- Typical duration: 7s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/lightbox/the-window.mp4
- Poster: https://agentframes.ai/media/lightbox/the-window.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Lightbox pack. Add a `theWindow` beat to plan.json on a `night` canvas with slots `status`, `status2`, `rider`, `photos`, `index`, `total`, `price`, `priceLabel`, `addr`, `sub` and `specs` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `status` | string | status | {"type":"string","minLength":1,"maxLength":16} | Just listed |
| `status2` | string | status2 | {"type":"string","minLength":0,"maxLength":16} | Linden Row |
| `rider` | string | rider | {"type":"string","minLength":0,"maxLength":18} | New this week |
| `photos` | string | photos | JSON string. {"type":"array","minItems":3,"maxItems":3,"items":{"type":"object","properties":{"src":{"type":"string","minLength":0,"maxLength":200},"label":{"type":"string","minLength":0,"maxLength":14},"focus":{"type":"string","minLength":0,"maxLength":20}},"required":["src"]}} | [{"src":"assets/af-lightbox/media/demo/exterior.jpg"},{"src":"assets/af-lightbox/media/demo/sitting.jpg","label":"Sitting room"},{"src":"assets/af-lightbox/media/demo/kitchen.jpg","label":"Kitchen"}] |
| `index` | number | index | {"type":"integer","minimum":0,"maximum":60} | 1 |
| `total` | number | total | {"type":"integer","minimum":0,"maximum":60} | 18 |
| `price` | string | price | {"type":"string","minLength":1,"maxLength":12} | £685,000 |
| `priceLabel` | string | priceLabel | {"type":"string","minLength":0,"maxLength":18} | Guide price |
| `addr` | string | addr | {"type":"string","minLength":0,"maxLength":24} | Linden Row |
| `sub` | string | sub | {"type":"string","minLength":0,"maxLength":32} | Bramley · Victorian semi |
| `specs` | string | specs | JSON string. {"type":"array","minItems":0,"maxItems":5,"items":{"type":"object","properties":{"v":{"type":"string","minLength":1,"maxLength":8},"u":{"type":"string","minLength":0,"maxLength":6}},"required":["v"]}} | [{"v":"4","u":"bed"},{"v":"2","u":"bath"},{"v":"142","u":"m²"},{"v":"EPC","u":"C"},{"v":"Freehold"}] |

## What your agent can change

**The Window (signature)**. Native 1920×1080, 7s at 30fps.

The signature frame: the shop window at night. The LED ticker flickers on with the status; the panels light one by one on their cables (the exterior, then two rooms) like a window at dusk; the rider, room plates and photo count light; the price card clicks on last; then the ticker letters change dot by dot to the address. The agency line sits on the glass.

**Motion.** Each panel drops a little and flickers on (fluorescent catch, 3+ frames per step) 0.35–0.45 s apart; the rider wipes; the price card flickers on at 2.5 s; the ticker changes letter by letter at 3.3 s.
**Why it moves.** attention + character: each photo gets its turn to light, like a window coming on at dusk, and the price is the last light on.

### Mount

Copy every manifest file into your project (plus `af-lightbox-runtime`). Mount with a unique host id, `data-composition-id="af-lightbox-the-window-16x9"`,
`data-composition-src="compositions/af-lightbox-the-window-16x9.html"`, `data-duration="7"` and `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. 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).

- `status` (required): {"type":"string","minLength":1,"maxLength":16}
- `status2`: {"type":"string","minLength":0,"maxLength":16}
- `rider`: {"type":"string","minLength":0,"maxLength":18}
- `photos` (required): {"type":"array","minItems":3,"maxItems":3,"items":{"type":"object","properties":{"src":{"type":"string","minLength":0,"maxLength":200},"label":{"type":"string","minLength":0,"maxLength":14},"focus":{"type":"string","minLength":0,"maxLength":20}},"required":["src"]}}
- `index`: {"type":"integer","minimum":0,"maximum":60}
- `total`: {"type":"integer","minimum":0,"maximum":60}
- `price` (required): {"type":"string","minLength":1,"maxLength":12}
- `priceLabel`: {"type":"string","minLength":0,"maxLength":18}
- `addr`: {"type":"string","minLength":0,"maxLength":24}
- `sub`: {"type":"string","minLength":0,"maxLength":32}
- `specs`: {"type":"array","minItems":0,"maxItems":5,"items":{"type":"object","properties":{"v":{"type":"string","minLength":1,"maxLength":8},"u":{"type":"string","minLength":0,"maxLength":6}},"required":["v"]}}

- `status` and `status2` are LED messages (16 characters); the second replaces the first letter by letter.
- Text is typeset exactly as written and never shrunk: a slot that does not fit stops the block with a message.

Style: `colourway` (night, daylight, high), `brandColour` and `accent` (optional hex), `agency`, `footer`, `exit` (lift or cut).

### Timing

7s. Everything has landed by 4.2s (60%), then the scene holds still for reading and the graphics lift away over the last 0.4 s, leaving the photo or your footage.

### Example

```json
{
  "status": "Just listed",
  "status2": "Linden Row",
  "rider": "New this week",
  "photos": "[{\"src\":\"assets/af-lightbox/media/demo/exterior.jpg\"},{\"src\":\"assets/af-lightbox/media/demo/sitting.jpg\",\"label\":\"Sitting room\"},{\"src\":\"assets/af-lightbox/media/demo/kitchen.jpg\",\"label\":\"Kitchen\"}]",
  "index": 1,
  "total": 18,
  "price": "£685,000",
  "priceLabel": "Guide price",
  "addr": "Linden Row",
  "sub": "Bramley · Victorian semi",
  "specs": "[{\"v\":\"4\",\"u\":\"bed\"},{\"v\":\"2\",\"u\":\"bath\"},{\"v\":\"142\",\"u\":\"m²\"},{\"v\":\"EPC\",\"u\":\"C\"},{\"v\":\"Freehold\"}]"
}
```

## FAQ

### What can my AI agent change in The Window?

Your agent fills the `status`, `status2`, `rider`, `photos`, `index`, `total`, `price`, `priceLabel`, `addr`, `sub` and `specs` 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 Lightbox look.

### Which aspect ratios does The Window support?

The Window is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 7s.

### How do I get The Window?

The Window is included in the Lightbox 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 Lightbox

- [Lit Plan (floor plan)](https://agentframes.ai/elements/lightbox/lit-plan.md): The floor plan on a lit acrylic panel, drawn from the room rectangles (metres): walls draw in ink, names and areas fade in, the highlight room lights amber; the total area runs on a small LED strip.
- [Street Panel (area)](https://agentframes.ai/elements/lightbox/street-panel.md): Place and neighbourhood: a lit street map (roads, a park, the river) on an acrylic panel; the home pin drops in the agency colour, then each nearby place pops a numbered marker and its LED row lights with the walk time.
- [Walking Distances](https://agentframes.ai/elements/lightbox/walking-distances.md): Walking times as LED rows (place · minutes · mode) lighting in turn, with a lit street panel beside them in 16:9.
- [The Commute](https://agentframes.ai/elements/lightbox/the-commute.md): One journey time in huge LED digits ("23 MIN") with the destination and mode on a lit plate under it.

## Community

Coming soon.
