For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A top down agent tree laid out by dagre, with a header model picker and a Run test that tallies passed, failed and skipped steps
When to use
- An editable node canvas for automation workflows or AI agent steps, with a side inspector per step
- A run view for a scheduled data pipeline: task states, retries and a human approval gate
- A driver map that ties initiatives to the input metrics and north star they are meant to move
When not to use
- A left to right automation with step owners, undo history and a minimap: use the Automation Builder block
- Watching a live AI run and answering its approval prompts as they arrive: use the Approval Run Console block
- An overview page of KPI tiles, charts and work lists with no editable node graph: use the Dashboard blocks
- A first run setup sequence that walks a new user through screens one at a time: use the Onboarding blocks
- Operating live AI agent runs: tool permissions, approvals and evaluation reports: use the Agents blocks
Agent notes
- Replace
SEEDandAGENTin data.tsx;INITIAL_EDGESis derived from each entry'sparentandbranchLabel, andlayoutTreeplaces every node runTestreplays theRECORDED_RUNfixture down theAGENT.testPathbranch and calls no service; a step with no fixture failsModelSelectretitles the firstclaudeapp step, andMODEL_OPTIONShardcodes each model's token and cost figures- Graph edits stay in local
useNodesStateanduseEdgesState; no block persistsnodesoredges, so wire your own load and save - Each block fills
h-svhunder its own header bar; swap it for a parent owned height when you mount it inside an app shell - Requires
@xyflow/react; flow-canvas.tsx imports its stylesheet andFLOW_THEMEmaps its colors onto your theme tokens
Third-party API docs
- React Flow v12: API reference, docs, llms.txt
- Dagre v3: API reference, docs
- Sonner v2: API reference, docs
https://web.dev.reui.io/blocks/application/flow/flow-2.mdget_block("flow-2")npx shadcn@latest add @reui/flow-2Shadcn Components in the AI Agent Builder Block
Dependencies
- @dagrejs/dagre
- @xyflow/react
- cn
- sonner
Shadcn AI Agent Builder Block
AI agent flow tree with auto layout, named branch paths and add step buttons on every connector. Part of the ReUI Shadcn Application Flow blocks collection.
LLM agent editor: cards show the app called and a last test run strip with tokens or latency, a docked inspector edits each step, copy as JSON. React Flow, ReUI IconTile, Badge, shadcn Item, Select, AlertDialog. For agent builder, AI workflow.
It is composed from Alert Dialog, Avatar, Badge, Breadcrumb, Button, Card, Dropdown Menu, Field, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the AI Agent Builder Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Application Flow blocks to assemble a full screen instead of a single section.
All Shadcn Application Flow Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Automation Builder Automation workflow canvas with step cards showing owner, duration and last run status
- Pipeline Run Monitor Data pipeline run canvas with dependency-ordered replay and a human approval gate
- Growth Impact Map Growth impact map linking initiatives to a north star metric, with correlation scored metric links
Related Shadcn Application Block Categories
- App Shell (35) App shell layouts with sidebar, rail, or top bar navigation for dashboards, settings panels, and multi-page apps.
- Auth (20) Login, register, forgot password, and two-factor authentication page layouts.
- Card (43) Card components for content display, data summaries, and interactive elements.
- Dashboard (8) Dashboard components and layouts that combine stats, charts, and tables into a complete overview screen.
- Dialog (14) Dialog components for modal windows, alerts, confirmations, and content overlays.
- Empty State (14) Empty state screens and no-data placeholders with recovery actions, onboarding prompts, and contextual guidance.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the AI Agent Builder block?
Use it for a top down agent tree laid out by dagre, with a header model picker and a Run test that tallies passed, failed and skipped steps.
The Flow category fits:
- An editable node canvas for automation workflows or AI agent steps, with a side inspector per step
- A run view for a scheduled data pipeline: task states, retries and a human approval gate
- A driver map that ties initiatives to the input metrics and north star they are meant to move
For a left to right automation with step owners, undo history and a minimap, use the Automation Builder block. For watching a live AI run and answering its approval prompts as they arrive, use the Approval Run Console block. For an overview page of KPI tiles, charts and work lists with no editable node graph, use the Dashboard blocks. For a first run setup sequence that walks a new user through screens one at a time, use the Onboarding blocks. For operating live AI agent runs: tool permissions, approvals and evaluation reports, use the Agents blocks.
What is the AI Agent Builder block built with?
Can I restyle the AI Agent Builder block?
How should I use Shadcn flow blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.