Staaarter

AI Agent Profile Card

A static profile card for an AI assistant or agent: avatar with initials fallback, name, role, description, capability badges, a small 3-message sample conversation preview, a stats row (conversations handled, rating), and Chat now / View details action links.

By Staaarter Team
Chat
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials, badge, button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/ai-agent-profile-card.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/chat/chat9.tsx instead.

Usage

The file also exports chat9Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Chat9, chat9Demo } from "@/components/blocks/chat/chat9";

export default function Page() {
  return <Chat9 {...chat9Demo} />;
}

Props

PropTypeDefaultDescription
namestringnoneAgent's display name.
rolestringnoneShort role label shown under the name.
descriptionstringnoneOne or two sentence description of what the agent does.
avatar{ src: string; alt: string }undefinedOptional avatar image; falls back to initials when omitted.
capabilitiesstring[]noneCapability badges rendered under the description.
sampleConversationAgentConversationMessage[]none2-3 static messages shown as a sample chat preview.
statsAgentStat[]noneStat tiles shown in the row above the action buttons.
chatHrefstring"#"Link target for the "Chat now" button.
detailsHrefstring"#"Link target for the "View details" button.
classNamestringnoneExtra classes for the outer section element.

Types

export interface AgentConversationMessage {
  id: string;
  from: "user" | "agent";
  text: string;
}

export interface AgentStat {
  label: string;
  value: string;
}

Behavior notes

  • Fully static Server Component: the sample conversation is a hardcoded preview, not a live or interactive chat.
  • "Chat now" and "View details" are plain links (render={<Link .../>}) with placeholder hrefs, nothing is submitted or called.
  • The avatar defaults to an initials fallback rather than a stock photo since it represents an AI persona, not a real person.