Skip to content
IndexRequest a UIAboutContact

Agent Steps Timeline

An AI agent's plan shown as steps that move from waiting to running to done, with a visible result card.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Build an agent task card 320px wide titled "Plan a weekend trip" with a Run button. Show four steps as a vertical list with a status icon on the left: Understand the request, Search options, Compare prices, Draft the itinerary. Pending steps show an empty circle in grey, the running step shows a 16px spinner (700ms linear) and a darker label, done steps show a filled dark circle with a check that scales from 0.6 to 1 over 200ms. Pressing Run starts the sequence: each step runs 900ms then completes, one after another; the Run button becomes Stop while running and stopping marks the current step "Stopped". After the last step a result card fades in (250ms) with the text "3 options found" and two small result rows. The list is a polite live region announcing "Step 2 of 4: Search options, running". Reset returns to idle. Under prefers-reduced-motion replace the spinner with an ellipsis and remove scaling.

About this pattern

Definition

Instead of one long wait, an agent shows its plan as a list of steps. Each step moves through pending, running and done, and the final result appears as a card when the last step completes.

Purpose & UX principles

  • Makes automated work understandable and builds trust: people see what the agent is doing and can stop it.
  • Status is conveyed by icon shape and text, not only colour or animation.
  • The list is a live region updated politely, so assistive technology users hear step changes without being flooded.

Interaction states

  • Idle, running (current step has a spinner), done (check mark), stopped, result visible.

Motion specification

  • Each step takes about 900ms; the spinner rotates at 700ms per turn; the check mark scales in over 200ms; the result card fades in over 250ms.
  • Reduced motion: no spinner rotation (a "…" marker instead), steps complete in sequence with no scaling.

Responsive behaviour

  • Steps stack vertically with one line each; long step names wrap.
  • Run and Reset buttons are 40px tall on touch.

Code

HTML
<div class="card"><div class="hd"><b>Plan a weekend trip</b><button id="run" type="button">Run</button></div><ol class="st" id="st" aria-live="polite"></ol><div class="res" id="res" hidden><b>3 options found</b><p>Lisbon · 2 nights · $412</p><p>Porto · 2 nights · $368</p></div></div>

Related patterns

Streaming Chat Response

↗
Streaming Chat ResponseAI & Conversational

Progress Indicator

↗
Progress IndicatorLoading & Progress

Skeleton Loading

↗
Skeleton LoadingLoading & Progress