Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components136

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeProLens rangeNewPro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

SunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmer

Blocks122

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardNewProEnvironment variablesProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarNewPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components107

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProTypewriter terminalPro

Stretch refreshProMorph loaderProSkeleton morphProBlack holeProSlide to confirmNewProCharge sessionPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksAgent builder

Agent builder

Pro

A card for setting up an AI agent: an inline editable name, a model picker, instructions, tool toggles with real app marks, and knowledge files with upload progress. A Configure / Test switch opens a compact chat that answers with the tools you turned on, and Publish ships the setup with a saved or unsaved state.

Live block · sample data

When to use

  • Letting customers configure their own AI agent inside your product, like Intercom Fin, Zapier agents or an OpenAI GPT builder.
  • Internal admin screens where ops teams tune instructions, tools and knowledge for a support or billing agent.
  • A product tour or landing section that shows how an agent is set up and tested in one place.

When not to use

  • Running or monitoring an agent in production: use agent-status or agent-routines.
  • Approving actions an agent wants to take: use agent-approvals.
  • A full chat product: use ai-chat. The Test view here is a compact preview, not a conversation app.
  • Only choosing a model: use model-picker.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Drop it into the settings screen of a support, sales or ops agent. Pass defaultConfig (or a controlled config with onConfigChange) and publishedConfig from your server, so unsaved changes are measured against what is live. Wire onPublish(config, signal) to save the setup, onUpload(file, report, signal) to upload knowledge files with progress, and onSend(message, config, signal) to answer test messages with the unsaved setup. onSend returns { text, calls }, and each call's tool id must match an AgentTool id (or "knowledge") so its chip gets the right mark. models and tools take your own lists with 16px SVG marks. Leave any callback out and that part is simulated.

example.tsx
1import { AgentBuilder, sampleAgentConfig } from "@/components/arc/blocks/agent-builder/agent-builder";2 3export function SupportAgentSettings() {4  return (5    <AgentBuilder6      defaultConfig={sampleAgentConfig}7      onPublish={async (config, signal) => {8        const response = await fetch("/api/agents/billing", { method: "PUT", body: JSON.stringify(config), signal });9        if (!response.ok) throw new Error("Server rejected the config");10      }}11      onSend={async (message, config, signal) => {12        const response = await fetch("/api/agents/billing/test", { method: "POST", body: JSON.stringify({ message, config }), signal });13        return response.json(); // { text, calls: [{ tool: "stripe", label: "Searched customers", result: "2 charges" }] }14      }}15    />16  );17}
Built fromButtonSegmented controlSwitchText shimmerRadix dropdown menu (radio items)

API reference

2 parts. The first is the root.

AgentBuilder

Configure an AI agent in one card: an inline editable name over its workspace and version, a model picker, instructions with a character count, tools as toggle rows, and knowledge files with upload progress. A Configure / Test switch swaps the body for a compact chat that answers with the configured model and tools, and Publish ships the config with an unsaved, publishing, failed and published state. With no props it plays the Lumen billing assistant sample with simulated uploads, replies and publishing.

PropTypeDefaultDescription
configAgentConfig–Controlled config: { name, tint, modelId, instructions, tools, files }. tint (1 to 4) colors the agent's mark beside its replies in Test. Pair with onConfigChange.
defaultConfigAgentConfigsampleAgentConfigStarting config when uncontrolled. Passing it turns off the sample's auto upload.
onConfigChange(config: AgentConfig) => void–Called with the next config on every edit, toggle, model change and file update.
publishedConfigAgentConfig–The config that is live now. Unsaved changes are measured against it, so reverting an edit clears the unsaved state. Defaults to the starting config.
modelsAgentModel[]defaultModelsModels in the picker: { id, name, note?, mark? }. Defaults to Claude Sonnet 5.5, Claude Opus 5.5, Claude Haiku 5.5, GPT-6.1 Sol and Gemini 4 Argon with their marks.
toolsAgentTool[]defaultToolsTools the agent can be given: { id, name, description, mark? }. Defaults to Gmail, Slack, Linear, Notion, Google Calendar and Stripe.
onPublish(config: AgentConfig, signal: AbortSignal) => Promise<void>–Saves and ships the config. Resolve to bump the version and show the published state; reject to show "Couldn't publish". Simulated when left out.
onUpload(file: File, report: (progress: number) => void, signal: AbortSignal) => Promise<void>–Uploads one knowledge file. Call report with 0 to 1 as bytes go out; reject with an Error to mark the row failed with its message and a retry button. The signal aborts when the row is removed. Simulated when left out (files over 20 MB fail).
onSend(message: string, config: AgentConfig, signal: AbortSignal) => Promise<TestReply>–Answers a Test message. Return { text, calls?: { tool, label, result? }[] }; calls render as tool chips with the tool's mark before the reply streams. Defaults to simulateReply, which follows the enabled tools.
versionnumber12Published version shown under the name. Counts up after each successful publish.
workspacestring"Lumen support"Short line under the name, such as the workspace or team.
maxInstructionsnumber2000Instruction length limit. The count turns to the warning color past 90%.
acceptstring".pdf,.md,.txt,.csv,.docx,.html"Accepted file types for the knowledge file picker.
mode"configure" | "test"–Controlled view. Pair with onModeChange.
defaultMode"configure" | "test""configure"Starting view when uncontrolled.
onModeChange(mode: AgentBuilderMode) => void–Called when the Configure / Test switch changes.
classNamestring–Extra class on the card.

simulateReply

The built in reply function used when onSend is left out. Matches billing, bug and booking requests and changes its answer and tool calls to the tools that are on, so it is useful for demos and tests.

PropTypeDefaultDescription
messageRequiredstring–The test message.
configRequiredAgentConfig–The current config. Disabled tools are never called.

Keyboard interactions

Tab
Moves through the name, view switch, model picker, instructions, each tool switch, file actions and Publish. The hidden view is inert and skipped.
Arrow keys
Move between Configure and Test on the view switch, and between models in the open picker.
EnterorSpace
Opens the model picker, chooses a model, toggles a tool, and presses buttons.
Escape
Closes the model picker and returns focus to it. In the name, restores the name from before editing.
Enter (in the name)
Finishes editing the name.
Enter (in Test)
Sends the message. While a reply runs, the send button becomes Stop.

Accessibility

  • The card is a labelled section; the name field, instructions and every tool switch have labels, and the tool row text is part of the switch label so the whole row is clickable.
  • The model picker is a Radix menu with radio items, so the selected model is announced as checked.
  • Upload progress uses role="progressbar" with a value; failed uploads show an icon and the error message, never color alone.
  • Status changes (published, upload done or failed, reply ready) go to a polite live region, and simulated actions say so: "Simulated, nothing was deployed".
  • The inactive view is inert and aria-hidden, so screen readers and the Tab key only reach what is visible.

Motion

  • Configure and Test crossfade in the same box (100ms out, 160ms in); Test overlays Configure, so the card never changes size.
  • Text swaps (model name, version, footer status, reply meta) are a single crossfade with a 2px rise. No blur or scramble.
  • Test replies: a short Thinking shimmer, tool chips that shimmer while running and reveal their result in place, then fast chunked streaming of three to six words every 34ms, each chunk only fading in.
  • Added and removed files animate their measured height with a bounce free spring; switches and the segmented control use the shared bounce free presets.
  • Reduced motion drops the rises, height animation and streaming (replies appear whole) but keeps every state and status change.

Responsive behavior

  • Fills its container up to 640px. Below 480px the padding drops to 16px and the model picker narrows; the agent name, tool descriptions and file names truncate with an ellipsis. The Configure / Test switch stays beside the name down to 300px of card width, then takes its own row.
  • Holds up at 360px without horizontal scroll; the Test view scrolls its own thread and keeps the composer pinned.
  • Tool rows and buttons are at least 28px tall targets inside 52px rows for touch.

Performance

  • Plain DOM and CSS; motion only animates opacity, small transforms and the height of added or removed file rows.
  • The sample upload starts only once the card is on screen. Text shimmers pause off screen.
  • Streaming appends one chunk every 34ms; each chunk is its own span so earlier text never re-renders its animation.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use it for the settings screen of a support, sales or ops agent: one card that holds the whole config with a built in test loop.
  • Wire onPublish to persist the config and onSend to call your agent runtime with the unsaved config, so people can test before they publish.
  • Pass publishedConfig from the server so the unsaved state compares against what is live; files still uploading or failed do not count as changes.
  • Tool ids in TestReply.calls must match AgentTool ids (or "knowledge" for a file lookup) so the chips get the right mark.
  • Keep marks 16px square SVGs; mono marks should use currentColor so they follow the theme.
/components/blocks/agent-builder/markdown

The full library index for assistants is at /llms.txt.

Related

Model pickerProBlockA model picker in one quiet pill: open it to choose from featured models with a one line note each, set the reasoning effort, or browse every other model by provider, and the pill swaps to your choice in place.Agent routinesProBlockScheduled agents in one card: each routine reads as a sentence with its schedule, next run countdown, connectors and destination, and opens smoothly to edit or run it now.Agent approvalsProBlockOne approval card for agents: the waiting tool call reads like a permission prompt with the tool's mark, the agent's reason and its arguments, and you approve, deny or allow it from now on.AI chatProBlockA full-screen AI chat where answers stream in as markdown with folding reasoning, tool chips and cited sources. People can switch chats and models, edit or retry a message into versions, rate replies and stop a reply mid-stream.Tool callProComponentA tool call row for agent transcripts: the tool's mark and the call in plain words, a live state while it runs, and the input and output a click away, with approval and retry when needed.Agent statusProComponentA compact live status pill for a running AI agent: the agent's mark in a live ring, the current activity and an elapsed timer, opening into the steps so far.
PreviousEval suiteNextAI insight card
Arc · 122 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown
Billing assistantLumen support·v12
ModelAnswers every conversation
357 / 2,000
Tools5 of 6 on
Knowledge
  • Refund policy 2026.pdf248 KB·PDF
  • Plans and pricing, October 2026.md36 KB·MD
  • Support macros.csv0%
Claude Sonnet 5.5·5 tools·2 files

Try Billing assistant

Replies use the model and tools you configured. Nothing is sent.

All changes published