Search Plus UI Blocks

Find a block, a category or a site

Agent run with tool-call stepsagent-trace-steps

Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/agent-trace-steps.json

AI · 8 variants

← → to step through · + on a thumbnail to compare side by side (up to 3)

/preview/agent-trace-steps
Open ↗

Default content

{
  "brand": "wisplight",
  "eyebrow": "Wisplight agents · Brindlebay Coffee",
  "run": {
    "title": "Wholesale accounts at risk this month",
    "prompt": "Which wholesale cafés look likely to stop ordering this month? Check order history, open complaints and anything the sales team flagged, then tell me who to call first.",
    "user": {
      "name": "Hana Okoro",
      "avatar": {
        "src": "https://images.unsplash.com/photo-1508002366005-75a695ee2d17?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
        "alt": "Hana Okoro"
      }
    },
    "started": "Today, 09:12",
    "model": "Depth",
    "trigger": "Run by hand"
  },
  "summary": [
    {
      "label": "Time",
      "value": "41.6 s"
    },
    {
      "label": "Tool calls",
      "value": "7"
    },
    {
      "label": "Tokens",
      "value": "38.4k"
    },
    {
      "label": "Cost",
      "value": "$0.17"
    }
  ],
  "steps": [
    {
      "id": "plan",
      "tool": "plan",
      "title": "Break the question into checks",
      "status": "done",
      "startMs": 0,
      "durationMs": 2100,
      "input": "{ \"goal\": \"rank wholesale accounts by churn risk\" }",
      "inputLanguage": "json",
      "output": "1. Pull 90 days of wholesale orders\n2. Compare each account's order gap with its usual cadence\n3. Look for open complaints\n4. Read the sales team's account notes\n5. Rank and write up",
      "outputLanguage": "text"
    },
    {
      "id": "orders-1",
      "tool": "query_orders",
      "title": "Pull 90 days of wholesale orders",
      "status": "failed",
      "startMs": 2200,
      "durationMs": 8000,
      "input": "{\n  \"sql\": \"select account, ordered_at, kg from orders where channel = 'wholesale' and ordered_at > now() - interval '90 days'\"\n}",
      "inputLanguage": "json",
      "output": "Error: statement timeout after 8000 ms",
      "outputLanguage": "text",
      "note": "Timed out on the full table. Retried with an index-friendly filter."
    },
    {
      "id": "orders-2",
      "tool": "query_orders",
      "title": "Retry with a date-partitioned query",
      "status": "done",
      "startMs": 10400,
      "durationMs": 3600,
      "input": "{\n  \"sql\": \"select account, ordered_at, kg from orders_2026_q3 where channel = 'wholesale'\",\n  \"limit\": 5000\n}",
      "inputLanguage": "json",
      "output": "1,912 rows · 64 accounts · 18,406 kg",
      "outputLanguage": "text"
    },
    {
      "id": "cadence",
      "tool": "run_python",
      "title": "Compare each account's last order with its usual gap",
      "status": "done",
      "startMs": 14100,
      "durationMs": 5200,
      "input": "gap = days_since_last_order / median_days_between_orders\nat_risk = accounts[gap > 1.8]",
      "inputLanguage": "python",
      "output": "9 accounts past 1.8× their usual gap\nHighest: Copperleaf Café 3.1×, The Larder 2.6×, Pine & Pour 2.2×",
      "outputLanguage": "text"
    },
    {
      "id": "complaints",
      "tool": "search_inbox",
      "title": "Find open complaints from those nine accounts",
      "status": "done",
      "startMs": 19400,
      "durationMs": 6300,
      "input": "{ \"mailbox\": \"wholesale@\", \"from\": \"9 at-risk accounts\", \"status\": \"open\" }",
      "inputLanguage": "json",
      "output": "3 open threads\n· Copperleaf: grinder service overdue (21 days)\n· The Larder: invoice dispute, £340\n· Pine & Pour: asked about a decaf option",
      "outputLanguage": "text"
    },
    {
      "id": "notes",
      "tool": "read_sheet",
      "title": "Read the sales team's account notes",
      "status": "done",
      "startMs": 25800,
      "durationMs": 4100,
      "input": "{ \"file\": \"Wholesale accounts 2026\", \"tab\": \"Notes\", \"rows\": \"at-risk\" }",
      "inputLanguage": "json",
      "output": "Copperleaf: new owner since August, hasn't met us\nThe Larder: trialling a rival roaster (per barista)",
      "outputLanguage": "text"
    },
    {
      "id": "web",
      "tool": "web_search",
      "title": "Check for closures or moves",
      "status": "skipped",
      "startMs": 30000,
      "durationMs": 0,
      "input": "{ \"query\": \"Copperleaf Café Bristol closing\" }",
      "inputLanguage": "json",
      "output": "Skipped: web search is off for this workspace.",
      "outputLanguage": "text"
    }
  ],
  "answer": {
    "text": "Call these three first, in this order:\n\n- **Copperleaf Café**: 3.1× past its usual order gap, a grinder service 21 days overdue [1][2], and a new owner we haven't met [3]. Book the service visit and ask to meet them.\n- **The Larder**: 2.6× past its gap with a £340 invoice dispute open [2], and a barista mentioned they're trialling another roaster [3]. Settle the invoice before the call.\n- **Pine & Pour**: 2.2× past its gap and asked about decaf twice [2]. Send samples of the Swiss Water decaf.\n\nThe other six at-risk accounts are only slightly late (1.8–2.0×) with no complaints; a check-in email should do.",
    "atMs": 30400
  },
  "sources": [
    {
      "title": "Wholesale orders, Q3",
      "kind": "database",
      "location": "Orders DB › orders_2026_q3",
      "href": "#source-orders"
    },
    {
      "title": "Open threads in wholesale@",
      "kind": "mail",
      "location": "Shared inbox › 3 threads",
      "href": "#source-inbox"
    },
    {
      "title": "Wholesale accounts 2026",
      "kind": "sheet",
      "location": "Drive › Sales › Notes tab",
      "href": "#source-notes"
    }
  ],
  "labels": {
    "steps": "Steps",
    "answer": "Answer",
    "sources": "Sources",
    "input": "Input",
    "output": "Output",
    "expandAll": "Expand all",
    "collapseAll": "Collapse all",
    "replay": "Replay run",
    "copy": "Copy",
    "copied": "Copied",
    "status": {
      "done": "Done",
      "failed": "Failed",
      "skipped": "Skipped",
      "running": "Running",
      "waiting": "Waiting"
    },
    "seconds": "{n} s",
    "ms": "{n} ms",
    "writing": "Writing the answer…",
    "details": {
      "heading": "Run details",
      "model": "Model",
      "trigger": "Trigger",
      "started": "Started"
    }
  }
}