# AI Workflow Versioning

Draft vs published lifecycle management for agent and LLM flows.

- id: `ai-workflow-versioning`
- Page: https://agentic-ui-kit.com/components/ai-workflow-versioning
- Live preview: https://agentic-ui-kit.com/live/component/ai-workflow-versioning

## Install

```bash
agentic-ui add ai-workflow-versioning
npx shadcn@4.17.0 add @agentic-ui/ai-workflow-versioning
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york)
- **Capabilities:** draft-vs-published, version-history, rollback-restore, diff-viewer, release-notes, audit-trail, environment-target, publish-validation
- **Intents:** audit-trail, track-status, compare-over-time, orchestrate-agents
- **Suits domains:** ai-workspace, ai-agents, devtools, operations, saas
- **Interaction:** version-switching, rollback-confirmation, diff-inspection, publish-workflow, keyboard-navigation
- **Screen role:** management
- **Density:** medium
- **Dark mode:** yes
- **Use it for:** draft vs published lifecycle management for agent and LLM flows, version history with an audit of changes to nodes and prompt parameters, safe rollback of production workflows with restore to draft
- **Avoid when:** workflows with no persistence or draft states (purely ephemeral flows), direct visualization of node graphs (use ai-workflow-canvas)
- **Preserve when adapting:** versioning-lifecycle, rollback-safety-model, draft-published-separation
- **Replace when adapting:** node-types, domain-metadata, validation-rules
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 9.2/10
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** badge, button, card, input, label, textarea
- **Registry dependencies:** lib-primitives
