# Poll Result: Stat & chart element for AI agents

> A poll: the question in Bodoni, two or three options as smears that swipe out to their share, the winner in cherry gloss.

Canonical page: https://agentframes.ai/elements/swatch/poll/
Markdown: https://agentframes.ai/elements/swatch/poll.md

## Overview

- Name: Poll Result (`poll`), an element: one HyperFrames block per size
- Part of: the [Swatch](https://agentframes.ai/packs/swatch.md) pack (27 of 54). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: A poll: the question in Bodoni, two or three options as smears that swipe out to their share, the winner in cherry gloss.
- 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: yes (can sit beside a speaker)
- Preview video (watermarked): https://agentframes.ai/media/swatch/poll.mp4
- Poster: https://agentframes.ai/media/swatch/poll.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Swatch pack. Add a `poll` beat to plan.json on a `k` canvas with slots `question`, `options` and `backdrop` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `question` | string | question | {"type":"string","minLength":1,"maxLength":28} | SPF: *chemical* or mineral? |
| `options` | string | options | JSON string. {"type":"array","minItems":2,"maxItems":3,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":16},"pct":{"type":"number","minimum":0,"maximum":100}},"required":["label","pct"]}} | [{"label":"Mineral","pct":54},{"label":"Chemical","pct":33},{"label":"Both","pct":13}] |
| `backdrop` | string | backdrop | {"type":"string","minLength":0,"maxLength":200} | assets/af-swatch/media/speaker-16x9.jpg |

## What your agent can change

**Poll Result**. Native 1920×1080, 5s at 30fps. Sits over the creator's full-bleed footage (transparent outside its own parts).

A poll: the question in Bodoni, two or three options as smears that swipe out to their share, the winner in cherry gloss.

**Motion.** The question fades up; each option smear swipes out 0.14 s apart.
**Why it moves.** attention: the length of each stroke is the result.

### Mount

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

- `question` (required): {"type":"string","minLength":1,"maxLength":28}
- `options` (required): {"type":"array","minItems":2,"maxItems":3,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":16},"pct":{"type":"number","minimum":0,"maximum":100}},"required":["label","pct"]}}
- `backdrop`: {"type":"string","minLength":0,"maxLength":200}

- `pct` values must add up to 100.
- 16:9 uses the empty third beside the face; 9:16 the band under the chin (clear of the right-hand platform buttons); 4:5 and 1:1 the lower zone. Move it with `zoneTop`.
- `backdrop` is a still of the speaker so the block reads on its own; set it to "" over your live footage.

### 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
{
  "question": "SPF: *chemical* or mineral?",
  "options": "[{\"label\":\"Mineral\",\"pct\":54},{\"label\":\"Chemical\",\"pct\":33},{\"label\":\"Both\",\"pct\":13}]",
  "backdrop": "assets/af-swatch/media/speaker-16x9.jpg"
}
```

## FAQ

### What can my AI agent change in Poll Result?

Your agent fills the `question`, `options` and `backdrop` 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 Poll Result support?

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

### How do I get Poll Result?

Poll Result 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

- [List Strip](https://agentframes.ai/elements/swatch/list-strip.md): A numbered list (2-4 items, "01 layering acids") on a white smear strip: items arrive on their cues, the active item gets a blush smear swiped behind it and three shade dabs press on. 9:16 puts it between the title and the head; 16:9 stacks it in the left column; 4:5 and 1:1 put it in the band above the head. An optional title sits above it.
- [Stat (beside the face)](https://agentframes.ai/elements/swatch/stat.md): One figure in big italic Bodoni that counts up on a cream smear, its label in spaced caps, an optional italic note under it.
- [Before / After](https://agentframes.ai/elements/swatch/before-after.md): Two smear cards side by side: before (cream) and after (cherry gloss), each with a spaced-caps label and a big italic value, plus an italic note.
- [Rate It /10](https://agentframes.ai/elements/swatch/rate-it.md): A score out of ten: ten shade dabs press on in an arc up to the score (the last in cherry), the score in italic Bodoni and the product name beside it.

## Community

Coming soon.
