Talk to your agentsVercel ai sdk
Build chat UIs with Vercel AI Elements
Copy page
Use Vercel AI Elements to quickly assemble production-ready chat interfaces that connect to your Inkeep agent.
Overview
Vercel AI Elements is a set of prebuilt, headless-first UI primitives for building AI chat interfaces. Think of it as a shadcn/ui
-like library of UI components for conversational experiences.
The library works out of the box with Inkeep Agents via the /chat
API endpoint since it follows the streaming protocol used by AI Elements.
For fully custom useChat
hooks and lower-level control, see the useChat guide.
Using AI Elements
Install (one-liner)
This CLI adds selected components to your project under @/components/ai-elements/
and wires up any required shadcn/ui primitives.
Component quick reference
- Core chat:
Conversation
,Message
,PromptInput
,Response
,Actions
,Sources
- Reasoning & tools:
Reasoning
,Tool
,Task
,InlineCitation
,Context
- Workflow (React Flow):
Canvas
,Node
,Edge
,Connection
,Controls
,Panel
,Toolbar
- Coding artifacts:
CodeBlock
,Artifact
,WebPreview
,Image
- UX extras:
Suggestion
,Branch
,Loader
,OpenIn
See the AI Elements site for detailed props and examples.