# Application AI Assistant: Action Approval Card

Approval gate for a proposed assistant bulk change showing sample before and after field values with approve and reject buttons.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/action-approval-card
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [AI Assistant](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/action-approval-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-ai-assistant-action-approval-card
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/ai-assistant/action-approval-card`

## About this block

Action Approval Card is the human gate that stops an
assistant before it writes to your data. The card names the
proposed action, update the close date on 14 open
opportunities, quotes the assistant's one line rationale,
then previews three sample field changes as ruled rows with
the record, the field, and a struck-through before value
arrowing to the new one. A link opens the remaining rows,
Approve and run and Reject buttons sit below, and an expiry
note gives the request 24 hours. The footer holds the line:
the assistant never writes without an approval, and every
approved run is logged with the exact records touched and
can be reverted for 30 days.

Changes is one array and the before-and-after row makes each
edit legible at a glance. Showing a sample of the real diff
rather than a count is what lets an approver catch a bad rule
before it runs across every record.

## When to use

Reach for this block whenever an assistant proposes a bulk
or destructive write, surfaced inline in the thread or in an
approvals inbox. Wire Approve and run to a job that echoes
back the same diff it previewed, and keep the reject path one
click away.

A natural flow around it on an Application Pro page:

**Before**

- [Agent run trace](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)

**After**

- [Activity feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity)
- [Notifications panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/notifications)

## What you can display

One strong use is the bulk record update gate. Other
approval shapes:

- **Workflow step approval.** An automation pausing for sign
  off with the payload it will send.
- **Spend authorization.** A proposed purchase with the line
  items and a budget line.
- **Access request.** A role change previewed as before and
  after permissions with an approver.

> Tip: always preview a real sample of the diff, not just a
> count, so approvers can catch a mistake before it runs.

## More in Application AI Assistant

- [Agent Run Trace](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/agent-run-trace)
- [Ai Usage Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/ai-usage-card)
- [Assistant Chat Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-chat-panel)
- [Assistant Empty State](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-empty-state)
- [Citations Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/citations-panel)
- [Context Sources Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/context-sources-panel)
- [Conversation History List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/conversation-history-list)
- [Feedback Thumbs Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/feedback-thumbs-row)
- [Guardrails Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/guardrails-panel)
- [Inline Suggestion Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/inline-suggestion-card)
- [Memory Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/memory-panel)
- [Model Picker Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/model-picker-card)
- [Prompt Composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-composer)
- [Prompt Library Grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-library-grid)
- [Response Compare](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/response-compare)
- [Scheduled Agents List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/scheduled-agents-list)
- [Thread Summary Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/thread-summary-card)
