# This or That Poll: Stat & chart element for AI agents

> This or that poll: two photo wells cut in, then the vote bar splits between them as two blocks and both percentages count up; a deep question tag breaks out of the top

Canonical page: https://agentframes.ai/elements/lookbook/this-or-that/
Markdown: https://agentframes.ai/elements/lookbook/this-or-that.md

## Overview

- Name: This or That Poll (`thisOrThat`), an element: one HyperFrames block per size
- Part of: the [Lookbook](https://agentframes.ai/packs/lookbook.md) pack (43 of 46). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: This or that poll: two photo wells cut in, then the vote bar splits between them as two blocks and both percentages count up; a deep question tag breaks out of the top
- Pack: [Lookbook](https://agentframes.ai/packs/lookbook.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: 1:1 (native), 4:5 (stage-fit), 9:16 (stage-fit), 16:9 (stage-fit)
- Canvases: works on white mat (`w`), photo well grey (`g`); avoid none
- Typical duration: 4s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/lookbook/this-or-that.mp4
- Poster: https://agentframes.ai/media/lookbook/this-or-that.jpg
- Native 1:1 preview (watermarked): https://agentframes.ai/media/lookbook/this-or-that-native.mp4
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Lookbook pack. Add a `thisOrThat` beat to plan.json on a `w` canvas with slots `photoA`, `photoB`, `posA`, `posB`, `question`, `a`, `b` and `pa` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `photoA` | string | Photo A | Plain text. |  |
| `photoB` | string | Photo B | Plain text. |  |
| `posA` | string | Pos A | Plain text. | 50% 22% |
| `posB` | string | Pos B | Plain text. | 50% 22% |
| `question` | string | Question | Plain text. | this or that? |
| `a` | string | A | Plain text. | the suit |
| `b` | string | B | Plain text. | the overshirt |
| `pa` | number | Pa | Plain text. | 62 |

## What your agent can change

### Surface

This or that poll: two photo wells cut in, then the vote bar splits between them as two blocks and both percentages count up; a deep question tag breaks out of the top. Category: `stat`. Canvases: ok `w, g`. Typical 4s; settles at 2.4s.

### Editable (fill through plan.json `slots`)

- `photoA` (string). Plain text.
- `photoB` (string). Plain text.
- `posA` (string). Plain text.
- `posB` (string). Plain text.
- `question` (string). Plain text.
- `a` (string). Plain text.
- `b` (string). Plain text.
- `pa` (number) **EXAMPLE DATA: replace or get client sign-off**. Plain text.

Optional style/layout overrides: `way`. Use them only to fix fit, never to change the brand.

### Protected

Do not change the motion, timing, easing, bounce, the palette roles (colours come from frame.md → tokens.css), fonts, or the element's internal layout. Keep copy close to the default length (±25%) so it fits.

### Safe editing

Set values in the beat's `slots` in plan.json, run `tools/validate.mjs`, rebuild, and check `qa/contact.jpg`. Never hand-edit the generated index.html or this element's code for a single video.

## FAQ

### What can my AI agent change in This or That Poll?

Your agent fills the `photoA`, `photoB`, `posA`, `posB`, `question`, `a`, `b` and `pa` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Lookbook look.

### Which aspect ratios does This or That Poll support?

This or That Poll is designed natively for 1:1 and stage-fits into 4:5, 9:16 and 16:9. A typical beat lasts 4s.

### How do I get This or That Poll?

This or That Poll is included in the Lookbook pack, which is part of the AgentFrames All-access subscription along with 45 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 Lookbook

- [Bar Chart](https://agentframes.ai/elements/lookbook/bar-chart.md): Creator stat + bars: oversized Playfair percentage counts up on a gradient block with stripes; colour-block bars cut in to their values (wears, ratings, minutes); a deep tag breaks out of the top
- [Number Counter](https://agentframes.ai/elements/lookbook/number-counter.md): Milestone counter: an oversized Playfair number counts up on a gradient block, the label and a thank-you line sit on the light block below, a deep tag breaks out with the weekly gain
- [Rate It](https://agentframes.ai/elements/lookbook/rate-it.md): Honest review card: photo well on the left, item name and verdict on a light block, five dots fill to the rating and a deep score tag breaks out counting up
- [Rating Meter](https://agentframes.ai/elements/lookbook/rating-meter.md): Score out of ten: ten block cells fill one by one to the score, the item title in Playfair above, a deep tag breaks out with the score counting up

## Community

Coming soon.
