A card component for displaying workflow automations with rotated tool icons, execution stats, and action buttons.
Search for a command to run...
A card component for displaying workflow automations with rotated tool icons, execution stats, and action buttons.
The automation interface. Visualizes agentic workflows and their status.
npx shadcn@latest add https://ui.heygaia.io/r/workflow-card.jsonimport { WorkflowCard } from "@/components/ui/workflow-card";
export default function Example() {
return (
<WorkflowCard
title="Email Summary Workflow"
description="Summarize your daily emails automatically"
steps={[
{ id: "1", title: "Fetch emails", toolCategory: "email" },
{ id: "2", title: "Summarize", toolCategory: "documents" },
]}
totalExecutions={1250}
isActivated={true}
onAction={() => console.log("Run workflow")}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | - | Workflow title |
| description | string | - | Workflow description |
| steps | WorkflowStep[] | - | Array of workflow steps |
| totalExecutions | number | 0 | Total execution count |
| isActivated | boolean | false | Activation status (user variant) |
| triggerLabel | string | - | Trigger description |
| variant | "user" | "explore" | "suggestion" | "explore" | Card variant |
| actionLabel | string | - | Custom action button label |
| isLoading | boolean | false | Show loading spinner |
| onAction | () => void | - | Action button handler |
| onClick | () => void | - | Card click handler |
| Property | Type | Description |
|---|---|---|
| id | string | Step identifier |
| title | string | Step title |
| description | string | Optional description |
| toolCategory | string | Category for icon/color |
productivity - Emeralddocuments - Orangedevelopment - Cyanmemory - Indigocreative - Pinkgoal_tracking - Emeraldnotifications - Yellowemail - Bluecalendar - Purplesearch - Tealgeneral - Gray