# Routine Timeline: Diagram element for AI agents

> Up to five steps along a hairline (cleanse, tone, serum, moisturise, SPF): each a shade dab pressed on its cue with the time in spaced caps and the step in italic Bodoni.

Canonical page: https://agentframes.ai/elements/swatch/routine-timeline/
Markdown: https://agentframes.ai/elements/swatch/routine-timeline.md

## Overview

- Name: Routine Timeline (`routineTimeline`), an element: one HyperFrames block per size
- Part of: the [Swatch](https://agentframes.ai/packs/swatch.md) pack (47 of 54). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Up to five steps along a hairline (cleanse, tone, serum, moisturise, SPF): each a shade dab pressed on its cue with the time in spaced caps and the step in italic Bodoni.
- Pack: [Swatch](https://agentframes.ai/packs/swatch.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 none; avoid none
- Typical duration: 5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/swatch/routine-timeline.mp4
- Poster: https://agentframes.ai/media/swatch/routine-timeline.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Swatch pack. Add a `routineTimeline` beat to plan.json on a `k` canvas with slots `chip`, `title`, `steps` and `cues` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `chip` | string | chip | {"type":"string","minLength":0,"maxLength":20} |  |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":32} | The *5-minute* morning |
| `steps` | string | steps | JSON string. {"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","properties":{"time":{"type":"string","minLength":1,"maxLength":8},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["time","label"]}} | [{"time":"0:00","label":"Cleanse"},{"time":"0:45","label":"Tone"},{"time":"1:30","label":"Serum"},{"time":"3:00","label":"Moisturise"},{"time":"4:30","label":"SPF"}] |
| `cues` | string | cues | JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":30},"maxItems":14} | [] |

## What your agent can change

**Routine Timeline**. Native 1920×1080, 5s at 30fps. A cutaway on the milk ground.

Up to five steps along a hairline (cleanse, tone, serum, moisturise, SPF): each a shade dab pressed on its cue with the time in spaced caps and the step in italic Bodoni.

**Motion.** The hairline draws (0.9 s); dabs press on and labels fade up on their cues.
**Why it moves.** clarity: the routine in order, paced to how it is told.

### Mount

Copy every manifest file into your project (plus `af-swatch-runtime`). Mount with a unique host id, `data-composition-id="af-swatch-routine-timeline-16x9"`,
`data-composition-src="compositions/af-swatch-routine-timeline-16x9.html"`, `data-duration` and `data-variable-values`. A longer `data-duration` than 5s
extends the hold (the exit moves to the end of the mount). Use the variant whose size matches your project: 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).

- `chip`: {"type":"string","minLength":0,"maxLength":20}
- `title` (required): {"type":"string","minLength":1,"maxLength":32}
- `steps` (required): {"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","properties":{"time":{"type":"string","minLength":1,"maxLength":8},"label":{"type":"string","minLength":1,"maxLength":14}},"required":["time","label"]}}
- `cues`: {"type":"array","items":{"type":"number","minimum":0,"maximum":30},"maxItems":14}

- `cues`: one block-relative time per step (from your transcript); leave it empty to space them 0.18 s apart.
- 16:9 runs the line across; the other sizes run it down.

### Brand and layout

Brand variables (defaults from `brand.json`): `colourway`, `accent`, `creator`, `handle`, `channel`, `tagline`, `monogram`, `ctaFollow`, `ctaLink`, `ctaCode`. Layout: `capTop` (caption top, px), `zoneTop`
(card zone top, px), `exit` (wipe or hold).

### Example

```json
{
  "chip": "",
  "title": "The *5-minute* morning",
  "steps": "[{\"time\":\"0:00\",\"label\":\"Cleanse\"},{\"time\":\"0:45\",\"label\":\"Tone\"},{\"time\":\"1:30\",\"label\":\"Serum\"},{\"time\":\"3:00\",\"label\":\"Moisturise\"},{\"time\":\"4:30\",\"label\":\"SPF\"}]",
  "cues": "[]"
}
```

## FAQ

### What can my AI agent change in Routine Timeline?

Your agent fills the `chip`, `title`, `steps` and `cues` 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 Swatch look.

### Which aspect ratios does Routine Timeline support?

Routine Timeline is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 5s.

### How do I get Routine Timeline?

Routine Timeline is included in the Swatch pack, which is part of the AgentFrames All-access subscription along with 53 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 Swatch

- [Top Five (numbered)](https://agentframes.ai/elements/swatch/top-five.md): Up to five items numbered in italic Bodoni on a tall cream smear, the title on top, each row landing on its cue.
- [Versus (AM vs PM)](https://agentframes.ai/elements/swatch/versus.md): Two smear cards (cream and blush) with an italic name and up to four lines each, an italic "vs" between them.
- [Routine Steps (numbered smears)](https://agentframes.ai/elements/swatch/routine-steps.md): Up to four numbered steps, each on its own cream smear that swipes in on its cue: side by side in 16:9, stacked in the other sizes.
- [Ranking](https://agentframes.ai/elements/swatch/ranking.md): Up to five ranked smears, the winner on cherry gloss at the top, each narrower below; they land from the bottom up.

## Community

Coming soon.
