# Discount Code Coupon: Label & callout element for AI agents

> Discount code: the code bounces in on a big coupon pill with a dashed inner edge, a badge slaps the saving on, the pill presses like a button and arrows point at it

Canonical page: https://agentframes.ai/elements/sunburst/discount-code/
Markdown: https://agentframes.ai/elements/sunburst/discount-code.md

## Overview

- Name: Discount Code Coupon (`discountCode`), an element: one HyperFrames block per size
- Part of: the [Sunburst](https://agentframes.ai/packs/sunburst.md) pack (12 of 43). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: Discount code: the code bounces in on a big coupon pill with a dashed inner edge, a badge slaps the saving on, the pill presses like a button and arrows point at it
- Pack: [Sunburst](https://agentframes.ai/packs/sunburst.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 slate field (`s`), coral field (`r`), mustard field (`m`), paper (`p`); avoid blue field (`b`), swirl burst (coral on paper) (`x`), ray burst (blue on paper) (`z`)
- Typical duration: 3.8s
- Speaker-safe: yes (can sit beside a speaker)
- Preview video (watermarked): https://agentframes.ai/media/sunburst/discount-code.mp4
- Poster: https://agentframes.ai/media/sunburst/discount-code.jpg
- Native 1:1 preview (watermarked): https://agentframes.ai/media/sunburst/discount-code-native.mp4
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Sunburst pack. Add a `discountCode` beat to plan.json on a `s` canvas with slots `photo`, `intro`, `code`, `saving`, `note`, `pillColor`, `badgeColor` and `accent` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `photo` | string | Photo | Plain text. |  |
| `intro` | string | Intro | Plain text. | my code at second chapter |
| `code` | string | Code | Plain text. | juno15 |
| `saving` | string | Saving | Plain text. | 15%\|off |
| `note` | string | Note | Plain text. | link in bio |
| `pillColor` | string | Pill Color | Plain text. | blue |
| `badgeColor` | string | Badge Color | Plain text. | mustard |
| `accent` | string | Accent | Plain text. | coral |

## What your agent can change

### Surface

Discount code: the code bounces in on a big coupon pill with a dashed inner edge, a badge slaps the saving on, the pill presses like a button and arrows point at it. Category: `label`. Canvases: ok `s, r, m, p`; avoid `b, x, z` (the element vanishes on these). Typical 3.8s; settles at 1.6s. Safe to sit beside a speaker cut-out.

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

- `photo` (string). Plain text.
- `intro` (string) **EXAMPLE DATA: replace or get client sign-off**. Plain text.
- `code` (string) **EXAMPLE DATA: replace or get client sign-off**. Plain text.
- `saving` (string) **EXAMPLE DATA: replace or get client sign-off**. Plain text.
- `note` (string). Plain text.
- `pillColor` (string). Plain text.
- `badgeColor` (string). Plain text.
- `accent` (string). Plain text.

Optional style/layout overrides: `backdrop`, `photoPos`, `y`. 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 Discount Code Coupon?

Your agent fills the `photo`, `intro`, `code`, `saving`, `note`, `pillColor`, `badgeColor` and `accent` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Sunburst look.

### Which aspect ratios does Discount Code Coupon support?

Discount Code Coupon is designed natively for 1:1 and stage-fits into 4:5, 9:16 and 16:9. A typical beat lasts 3.8s.

### How do I get Discount Code Coupon?

Discount Code Coupon is included in the Sunburst pack, which is part of the AgentFrames All-access subscription along with 42 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 Sunburst

- [Ad Disclosure Tag](https://agentframes.ai/elements/sunburst/ad-disclosure.md): Paid-partnership tag: a small 'ad' badge slaps on top left and a white label slides out naming the partner; it stays for the whole segment
- [Milestone Confetti](https://agentframes.ai/elements/sunburst/dot-confetti.md): Milestone pop: a badge slaps the number on, palette dots burst out from behind it as confetti and drift down, and a thank-you label pops up
- [Reaction Sticker](https://agentframes.ai/elements/sunburst/reaction-sticker.md): Reaction sticker: an outlined mini sunburst spins up, a big scalloped badge slaps the reaction on ('NO WAY!') and wobbles, triangles hop either side
- [Animated Word](https://agentframes.ai/elements/sunburst/animated-word.md): One word, one badge per letter: scalloped badges in cycling colours slap in as a wave, each carrying a Spicy Rice letter, then bob out of phase; a label names the word

## Community

Coming soon.
