@@ -140,6 +140,50 @@ An empty chat offers up to five, picked from where you are: a promoted one
140140(product-controlled), * Investigate* for the failure on screen, a watch for
141141the thing in front of you, an explain-this-page one, and a docs one.
142142
143+ ## The demo script — four acts, ~ 15 minutes
144+
145+ Run ` -- --degrade ` first so prod starts unhealthy. One terminal stays open for
146+ the act-four commands.
147+
148+ ** Act 1 — hello (30 seconds)**
149+ 1 . Any page → chat button → * "Where am I? What is this page showing?"* — it
150+ knows where you are, no clarification needed.
151+ 2 . * "Take me to the email-sends queue"* — it drives the dashboard for you.
152+
153+ ** Act 2 — something's wrong (the centerpiece)**
154+ 3 . * "Is anything wrong right now?"* → the terminal-style report card: crit,
155+ pinned concurrency, sparklines, "not your code", a * Next steps* row of real
156+ buttons.
157+ 4 . Click ** [ Watch recovery] ** → your request appears in the chat → the agent
158+ confirms: checks every 5 minutes, fires once, gives up after N hours — and
159+ offers an email alert. Say * "yes"* and the channel appears on the Alerts
160+ page.
161+ 5 . While the watch ticks — ** Investigate** : open the failing
162+ ` send-order-receipt ` error → * Investigate* → a live card: hypotheses tested
163+ in front of you, a concluded verdict citing runs, spans, and the deploy
164+ (a 429 rate limit).
165+ 6 . Bonus, same chat: * "Show me the failing code"* — file: line at the deployed
166+ commit.
167+
168+ ** Act 3 — data and knowledge (the interlude)**
169+ 7 . * "How many runs failed yesterday, by task? Chart it"* — TRQL + a live chart.
170+ 8 . * "Did the last deploy cause this?"* — run → commit → deploy correlation.
171+ 9 . * "How do retries work?"* — a docs answer with source buttons.
172+
173+ ** Act 4 — the finale: it comes back on its own**
174+ 10 . In the terminal: ` pnpm --filter webapp run db:seed:agent-examples -- --recover ` .
175+ Close the panel and wander the dashboard.
176+ 11 . Within ~ 5 minutes, unprompted: a persistent "Watch update" toast, a dot on
177+ the chat button, the chat on top of History highlighted — inside, the green
178+ ** "Watch update — all clear"** banner — and the email in Mailpit
179+ (localhost:8025) with the same headline and one-click unsubscribe.
180+ 12 . Curtain: * "What alerts do I have?"* → the list; * "turn it off"* →
181+ unsubscribed right from the chat.
182+
183+ Safety nets: History ships seeded example conversations (browsable without
184+ spending a token), and every card state lives in the gallery at
185+ ` /storybook/agent-ui ` . ` -- --degrade ` resets the stage for a repeat run.
186+
143187## Try these
144188
145189| Where | Say / click | You'll see |
0 commit comments