Search Plus UI Blocks

Find a block, a category or a site

Agent run paused for approvalagent-approval-gate

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

AI · 8 variants

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

/preview/agent-approval-gate
Open ↗

Default content

{
  "brand": "wisplight",
  "workspace": {
    "name": "Mosswell Outdoor",
    "brand": "mosswell"
  },
  "run": {
    "title": "Refund Tuesday's double charges",
    "prompt": "Checkout charged some customers twice during Tuesday's outage. Find everyone it happened to, refund the second charge, and send each of them a short apology from support.",
    "user": {
      "name": "Ines Albrecht",
      "avatar": {
        "src": "https://images.unsplash.com/photo-1508214751196-bcfd4ca60f91?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
        "alt": "Ines Albrecht"
      }
    },
    "started": "Today, 14:52",
    "model": "Depth"
  },
  "done": [
    {
      "id": "plan",
      "tool": "plan",
      "title": "Work out what to check",
      "output": "Find duplicate charges · rule out refunds already made · draft the apology",
      "time": "1.8 s"
    },
    {
      "id": "payments",
      "tool": "query_payments",
      "title": "Find orders charged twice, Tue 14:02–14:47",
      "output": "12 orders · 24 card charges · £1,240.60 taken twice",
      "time": "4.2 s"
    },
    {
      "id": "refunds",
      "tool": "list_refunds",
      "title": "Check none of them was refunded already",
      "output": "0 of 12 refunded · 2 customers wrote in to support",
      "time": "2.6 s"
    },
    {
      "id": "draft",
      "tool": "draft_email",
      "title": "Draft the apology in Mosswell's support voice",
      "output": "96 words · signed by Ines · no discount code (per your notes)",
      "time": "6.1 s"
    }
  ],
  "gate": {
    "tool": "issue_refunds",
    "title": "Refund the second charge on 12 orders",
    "policy": "Mosswell asks for a person's approval before an agent moves money or emails more than 25 people.",
    "risks": [
      "Sends money back to customers' cards",
      "A refund can't be pulled back once it's issued",
      "Emails each customer in the list"
    ],
    "currency": "GBP",
    "items": [
      {
        "id": "o-48112",
        "reference": "#48112",
        "name": "Theo Marchetti",
        "detail": "Ridgeline 40L pack",
        "amount": 142
      },
      {
        "id": "o-48115",
        "reference": "#48115",
        "name": "Amara Nwosu",
        "detail": "Merino base layer ×2",
        "amount": 86.4
      },
      {
        "id": "o-48117",
        "reference": "#48117",
        "name": "Jonas Lindqvist",
        "detail": "Trail runners, size 44",
        "amount": 118.5
      },
      {
        "id": "o-48121",
        "reference": "#48121",
        "name": "Priya Raman",
        "detail": "Bivvy bag",
        "amount": 64.9
      },
      {
        "id": "o-48124",
        "reference": "#48124",
        "name": "Callum Doyle",
        "detail": "Stormshell jacket",
        "amount": 210.3
      },
      {
        "id": "o-48126",
        "reference": "#48126",
        "name": "Mei Tanaka",
        "detail": "Camp stove and gas",
        "amount": 92
      },
      {
        "id": "o-48130",
        "reference": "#48130",
        "name": "Rafael Ortega",
        "detail": "Insulated bottle ×3",
        "amount": 75.6
      },
      {
        "id": "o-48133",
        "reference": "#48133",
        "name": "Sofia Petrova",
        "detail": "Down gilet",
        "amount": 133.2
      },
      {
        "id": "o-48137",
        "reference": "#48137",
        "name": "Kwame Mensah",
        "detail": "Headtorch and batteries",
        "amount": 48.9
      },
      {
        "id": "o-48140",
        "reference": "#48140",
        "name": "Lucie Bernard",
        "detail": "Walking poles",
        "amount": 99.8
      },
      {
        "id": "o-48142",
        "reference": "#48142",
        "name": "Omar Haddad",
        "detail": "Two-person tent footprint",
        "amount": 104
      },
      {
        "id": "o-48146",
        "reference": "#48146",
        "name": "Hannah Brennan",
        "detail": "Wool socks ×4",
        "amount": 65
      }
    ],
    "message": {
      "subject": "We charged you twice on Tuesday, and it's refunded",
      "body": "Hi {first_name},\n\nDuring a checkout problem on Tuesday afternoon your card was charged twice for order {order}. That was our mistake, not yours.\n\nWe've refunded the second charge of {amount} today. Most banks show it within 3–5 working days; you don't need to do anything.\n\nSorry for the worry. If anything looks wrong on your statement, reply here and it comes straight to me.\n\nInes\nMosswell support"
    },
    "payload": {
      "reason": "duplicate_charge",
      "notify_customer": true,
      "idempotency_key": "run_7Q2K-refunds"
    },
    "approvedOutput": "{count} refunds issued · {total} returned · 0 failed"
  },
  "after": [
    {
      "id": "email",
      "tool": "send_email",
      "title": "Send each customer the apology",
      "output": "{count} sent from support@ · 0 bounced"
    },
    {
      "id": "notes",
      "tool": "add_order_note",
      "title": "Note the refund on every order",
      "output": "{count} orders noted with the refund ID"
    },
    {
      "id": "post",
      "tool": "post_message",
      "title": "Tell #support it's handled",
      "output": "Posted in #support with the order list"
    }
  ],
  "outcome": {
    "approved": "Done. **{count} customers** got their second charge back, **{total}** in all, and each has the apology from you.\n\n- Both customers who wrote in now have a reply in their thread.\n- I noted the refund ID on every order, so support can answer questions without looking it up.",
    "rejected": "Stopped. **Nothing was refunded** and no emails went out.\n\nThe list of 12 orders and the draft are saved on this run, so you or a teammate can pick it up later."
  },
  "labels": {
    "status": {
      "waiting": "Waiting for approval",
      "running": "Running",
      "completed": "Completed",
      "stopped": "Stopped"
    },
    "task": "Task",
    "steps": "Steps",
    "queued": "Queued",
    "notRun": "Not run",
    "needsApproval": "Needs your approval",
    "risk": "Why it stopped",
    "tabs": {
      "items": "Refunds",
      "message": "Customer email",
      "payload": "Payload"
    },
    "selected": "{count} of {all} selected",
    "total": "Total",
    "subject": "Subject",
    "body": "Message",
    "previewFor": "Preview for {name}",
    "changes": "Your changes to the draft",
    "edited": "Edited",
    "approve": "Approve and run",
    "edit": "Edit",
    "doneEditing": "Done editing",
    "reject": "Reject",
    "rejectReason": "Tell the agent why (optional)",
    "rejectPlaceholder": "e.g. Finance wants to check these first",
    "confirmReject": "Reject and stop",
    "cancel": "Cancel",
    "nothingSelected": "Pick at least one order to approve.",
    "runAgain": "Reset run",
    "answer": "Result",
    "details": {
      "heading": "Run",
      "model": "Model",
      "started": "Started",
      "requestedBy": "Requested by"
    },
    "activity": {
      "heading": "Activity",
      "paused": "Paused before issue_refunds",
      "edited": "{name} edited the refund",
      "approved": "{name} approved {count} refunds",
      "rejected": "{name} rejected the refund",
      "finished": "Run finished"
    },
    "now": "Just now",
    "pausedAt": "14:53"
  }
}