Prompt Details
Model
(claude-5-5-sonnet)
Token size
631
Example input
[BUSINESS_TYPE]: Online store selling home organization products
[DASHBOARD_USER]: The store owner, who checks it every morning
[KEY_METRICS]: Revenue, orders, conversion rate, average order value, refund rate
[DECISIONS_TO_SUPPORT]: Which products to promote and when to adjust ad spending
[PLATFORM: desktop web, tablet, or mobile]: desktop web
Example output
## 1. Dashboard Purpose
This dashboard answers one question for the store owner each morning: "Is the store performing better or worse than normal, and what should I do about it today?"
The three decisions it supports most directly:
1. Which products to promote today (products with strong orders and revenue, a healthy conversion rate and a low refund rate).
2. When to increase, hold or cut ad spending (based on how conversion rate, order volume and average order value move for each traffic source).
3. Which products to stop promoting or investigate (products whose refund rate is rising or whose conversion rate is falling).
## 2. KPI Hierarchy
| Metric | Definition | Why It Matters | Best Visual | Comparison | Priority |
|---|---|---|---|---|---|
| Revenue | Total value of paid orders in the selected period, after discounts and before refunds, excluding shipping and tax | The headline measure of how the store is doing; the first number the owner checks | Large number tile with a small line sparkline of the last 30 days | vs. same weekday last week, vs. the 28-day average, and vs. monthly target | Hero |
| Orders | Count of paid orders placed in the selected period (cancelled and fully refunded orders still count; they are reflected in Refund Rate) | Shows demand volume independent of basket size; a drop with steady revenue points to a basket-size change | Large number tile with sparkline | vs. same weekday last week and vs. the 28-day average | Hero |
| Conversion Rate | Orders divided by sessions in the selected period, shown as a percentage | Shows whether traffic, including paid traffic, is turning into buyers; the main signal for ad spending decisions | Large number tile with sparkline and a bar chart by traffic source below it | vs. same weekday last week and vs. the 28-day average | Hero |
| Average Order Value (AOV) | Revenue divided by Orders in the selected period | Shows basket size; helps judge whether bundles and higher-priced items are worth promoting | Medium number tile with sparkline | vs. the previous period and vs. the 28-day average | Supporting |
| Refund Rate | Refunded order value divided by Revenue for orders placed in the selected period, shown as a percentage | Reveals product quality or expectation problems; stops the owner from promoting products that return too often | Medium number tile with a ranked horizontal bar chart of products | vs. the previous period and vs. a 90-day baseline (refunds arrive late, so recent days are marked provisional) | Supporting |
| Revenue by Product | Revenue, Orders, Conversion Rate and Refund Rate for each product, ranked | Turns the headline numbers into a "promote this" shortlist | Sortable table with in-cell bars | vs. the previous period, shown as a percentage change | Detail |
| Metrics by Traffic Source | Revenue, Orders, Conversion Rate and AOV for each traffic source and ad campaign | Turns the headline numbers into an "adjust ad spending" shortlist | Sortable table with in-cell bars | vs. the previous period, shown as a percentage change | Detail |
Notes on the table: the last two rows are breakdowns of the five requested metrics by product and by traffic source. They introduce no new metrics. All five metrics from the brief are present: Revenue, Orders, Conversion Rate, AOV and Refund Rate.
## 3. Layout Map
Target: desktop web, minimum width 1280 px, 12-column grid, 24 px gutters, page content width up to 1440 px. The page fits the three Hero tiles and the main trend without scrolling on a 1080 px high screen; the product and source tables sit below the fold.
**Row 0: Top bar (full width, 12 columns, 56 px high)**
- Left: store name and "Last updated" timestamp.
- Centre: date range selector (default "Yesterday").
- Right: filter dropdowns (Traffic Source, Product Category, Device) and a "Reset filters" link.
**Row 1: Hero tiles (3 tiles, 4 columns each)**
- Left: Revenue tile.
- Centre: Orders tile.
- Right: Conversion Rate tile.
- Each tile shows the value in 40 px type, the comparison arrow and percentage change, a 30-day sparkline and a target or baseline marker.
**Row 2: Supporting tiles and trend (12 columns)**
- Left (3 columns, stacked): AOV tile above Refund Rate tile.
- Right (9 columns): Daily trend chart. A line chart of Revenue (left axis) with Orders as columns (right axis) for the selected range, with the previous period as a dashed line. A toggle switches the line between Revenue, Conversion Rate and AOV.
**Row 3: Decision panels (2 panels, 6 columns each)**
- Left: "Products to promote". Ranked bar chart of the top 10 products by Revenue, each bar annotated with its Conversion Rate and Refund Rate, with a status icon (see section 4).
- Right: "Ad spending signals". Grouped bar chart of Conversion Rate by traffic source and campaign for the current period against the previous period, with AOV shown as a label on each group.
**Row 4: Detail tables (12 columns, below the fold)**
- Left (7 columns): Product performance table (Revenue, Orders, Conversion Rate, AOV, Refund Rate, change vs. previous period).
- Right (5 columns): Traffic source and campaign table (Revenue, Orders, Conversion Rate, AOV, change vs. previous period).
**Row 5: Footer (full width)**
- Metric definitions link, data source note and export (CSV) button.
## 4. Chart Choices and Visual Rules
Chart reasons:
- **Hero number tiles with sparklines:** a single number answers "how are we doing?" in one second, and the sparkline shows direction without a full chart.
- **Daily trend (line plus columns):** a line shows the continuous movement of revenue over time, while columns show order volume per day, so the owner can see if a revenue dip comes from fewer orders or smaller baskets.
- **Ranked horizontal bars for products:** bar length is the easiest way to compare many items on one measure, and horizontal bars leave room for long product names.
- **Grouped bars for traffic sources:** placing current and previous periods side by side shows at a glance which source improved or declined, which is the question behind an ad spending change.
- **Sortable tables with in-cell bars:** the owner needs exact numbers and the ability to re-sort by any metric when choosing what to promote.
Color and status rules:
- **Good:** green (for example #1E7B4F). Shown with an up-arrow icon and the label "On track" or "Up" where higher is better. For Refund Rate, a fall is good and is shown with a down-arrow in green.
- **Warning:** amber (for example #B7791F). Shown with a triangle icon and the label "Watch".
- **Bad:** red (for example #B3261E). Shown with a filled-circle exclamation icon and the label "Action needed".
- **Neutral or no comparison:** grey with a dash icon and the label "No change".
- **Non-color meaning:** every status always carries an icon shape and a text label next to the color, and the percentage change is always printed as a number with a plus or minus sign. In charts, the previous period uses a dashed line or a hatched bar, and the current period uses a solid line or a solid bar. Table rows with a bad status also show the text "Action needed" so they can be understood in greyscale.
- **Contrast and type:** text and status colors meet WCAG AA contrast (at least 4.5:1) on the background. Minimum chart label size is 12 px. Light and dark themes both supported.
- **Rest of the palette:** one brand blue for current data and one light grey for the previous period. No more than two data colors per chart, so status colors keep their meaning.
- **Provisional data:** the most recent days of Refund Rate are drawn with a hatched pattern and an "Incomplete" label, because refunds arrive late.
## 5. Filters and Drill-Downs
**Default time range:** Yesterday (the last complete day), compared with the same weekday last week. Quick options: Today so far, Last 7 days, Last 28 days, Month to date, Custom range. The trend chart always shows at least the last 28 days for context.
**Filters:**
- Date range (with comparison toggle: previous period, same period last year, or none).
- Traffic Source (for example Paid Social, Paid Search, Organic, Email, Direct).
- Ad Campaign (available when a paid source is selected).
- Product Category (for example Closet, Kitchen, Bathroom, Garage, Entryway).
- Product (searchable list).
- Device (desktop, mobile, tablet).
- New vs. returning customers.
All filters apply to every tile, chart and table at once, and the active filters are shown as removable chips under the top bar.
**Drill-down paths from each Hero metric:**
- **Revenue:** click the tile, then see Revenue by day and by hour for the selected range, then Revenue by product category, then Revenue by product, then a list of individual orders for that product.
- **Orders:** click the tile, then see Orders by day and by hour, then Orders by traffic source and campaign, then Orders by product, then the individual order list with order value and refund status.
- **Conversion Rate:** click the tile, then see Conversion Rate by traffic source and campaign, then by device and by landing product page, then the day-by-day trend for the chosen source against the 28-day average.
- **Supporting tiles:** AOV drills to AOV by product category and by source; Refund Rate drills to Refund Rate by product and then to the list of refunded orders.
- Every detail view keeps the active filters, shows a breadcrumb (Dashboard > Revenue > Category > Product) and has a "Back to dashboard" link.
## 6. Alerts and Empty States
**Alert rules (shown as a banner under the top bar and in the morning email digest):**
1. **Conversion Rate drop on a paid source:** if the Conversion Rate of any paid traffic source (with at least 200 sessions) is more than 20% below its own 28-day average for 2 days in a row, show a red alert: "Conversion Rate for [source] is down [X]% vs. its 28-day average. Review ad spending before increasing it."
2. **Revenue below normal:** if yesterday's Revenue is more than 25% below the average of the same weekday over the last 4 weeks, show an amber alert; if it is more than 40% below, show a red alert: "Yesterday's Revenue was [X]% below a typical [weekday]."
3. **Refund Rate spike on a product:** if a product with at least 10 orders in the last 30 days has a Refund Rate above 8%, or above double its 90-day baseline, show a red alert: "[Product] has a Refund Rate of [X]%. Consider pausing promotion."
Additional behavior: alerts are listed newest first, can be dismissed for 24 hours, and each links straight to the relevant drill-down.
**Wording for states:**
- **Loading:** "Loading yesterday's numbers..." with grey skeleton placeholders in the shape of each tile and chart. Tiles that load first appear first; no spinner covers the whole page.
- **No data:** "No orders in this period. Try a longer date range or clear your filters." with a "Clear filters" button. For a metric with no sessions: "Conversion Rate is unavailable because there were no store visits in this period."
- **Error:** "We couldn't load your latest numbers. Your data is safe. Try again, or check back in a few minutes." with a "Try again" button and, below it, "Showing data from [last successful update time]" if cached data exists.
## 7. Developer Handoff Checklist
**Data fields required:**
- Orders: order_id, order_datetime, order_status, customer_id, is_new_customer, device_type, traffic_source, campaign_id, campaign_name, currency, discount_total, order_total (excluding shipping and tax).
- Order items: order_id, product_id, product_name, product_category, quantity, line_total.
- Refunds: refund_id, order_id, product_id, refund_datetime, refund_amount.
- Sessions: session_id, session_datetime, traffic_source, campaign_id, device_type, landing_product_id, is_new_visitor.
- Targets: month, revenue_target.
- Time zone and currency settings for the store.
**Refresh frequency:**
| Metric | Refresh frequency |
|---|---|
| Revenue | Every 15 minutes |
| Orders | Every 15 minutes |
| Conversion Rate | Every hour (sessions data is delayed) |
| Average Order Value | Every 15 minutes (with Revenue and Orders) |
| Refund Rate | Every hour, with a full recalculation once a day at 03:00 store time to include late refunds |
| Product and traffic source tables | Every hour |
The page shows a "Last updated" time and refreshes quietly in the background without moving what the owner is reading.
**Calculations that need agreement before building:**
1. Whether Revenue is measured before or after discounts, and whether refunds are subtracted from Revenue or only shown in Refund Rate (the specification assumes before refunds).
2. How a session is defined and whether bot and internal traffic are excluded, since this changes Conversion Rate.
3. Whether Refund Rate is calculated by order date (refunds attributed to the original order) or by refund date, and whether it uses order value or order count (the specification assumes original order date and order value).
4. How traffic source and campaign are attributed (last click or first click, and the attribution window).
5. Whether a partly refunded order counts fully in Orders (the specification assumes yes).
6. Which time zone defines "yesterday" and the weekday comparisons.
7. The exact thresholds for the three alerts, to be confirmed by the owner after two weeks of live data.
Assumptions:
- The store runs on a single e-commerce platform that provides order, product, refund and session data, and the owner's ad platform campaigns are identified by a campaign tag on traffic.
- Ad spend itself is not one of the five key metrics, so it is not shown as a tile; the owner compares the Conversion Rate, Orders and AOV signals here with spend figures inside the ad platform. Adding ad spend later would be a separate decision.
- The owner reviews the dashboard once each morning on a desktop browser with a screen at least 1280 px wide, so mobile and tablet layouts are out of scope.
- The store has one currency and one time zone.
- Product categories are the typical ones for home organization (closet, kitchen, bathroom, garage, entryway).
- A monthly Revenue target exists or will be set by the owner; if not, the target marker is hidden and only the baseline comparisons are shown.
- Alert thresholds (20%, 25%, 40%, 8%, 200 sessions, 10 orders) are starting values chosen for a small to mid-size store and will be tuned with real data.
- Colors given are examples that meet the stated contrast rule; the final palette follows the store's brand.
- Access is limited to the store owner and any staff the owner invites; no other user roles are needed at launch.
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-5-SONNET
Turn a list of metrics into a complete dashboard specification. Enter your business type, who will use the dashboard, your key metrics, the decisions it must support and the platform. Claude returns a KPI hierarchy table, a row-by-row layout map, chart choices with reasons, filters and drill-downs, alert and empty states, and a developer handoff checklist. Built with XML structure and a self-check step. Ideal for founders, analysts and designers.
...more
Added 1 week ago
