React library for assembling ChatGPT-style chat with streaming, tools, attachments, and pluggable backends via the Vercel AI SDK, LangGraph, and other adapters.
Overview
assistant-ui supplies TypeScript and React components and runtimes so teams can embed polished conversational interfaces in web apps. Composable pieces such as Thread, Message, Composer, ThreadList, and ActionBar let you shape layout and styling, including starter themes copied in via CLI scaffolding for Next.js or existing projects.
The runtime owns threads, streaming, retries, markdown, code highlighting, attachments, voice dictation, keyboard shortcuts, and accessibility behaviors. Generative UI renders tool calls and structured JSON as React components, supports inline human approvals, and can expose safe frontend actions to models. APIs are strongly typed across runtimes, tools, message parts, and adapters.
Backend integration packages cover the Vercel AI SDK, LangGraph and LangChain, AG-UI and A2A protocols, Google ADK, OpenCode, custom data-stream servers, and optional Assistant Cloud for managed thread history, telemetry, and file storage. Many model providers work through the AI SDK, and custom HTTP backends can be wired through adapter hooks.
Shipping targets include React with documented paths for Vue, React Native, and Ink. Optional Assistant Cloud hosts persistence when you want threaded history without building storage yourself.
Key features
- Composable chat UI primitives
- Streaming and auto-scroll UX
- Tool calls and generative UI
- Human-in-the-loop approvals
- Multiple backend runtime adapters
- CLI scaffold for Next.js setup
- Voice dictation and attachments
- Optional managed cloud persistence
Use cases
- Embedding AI chat in React apps
- LangGraph agents with rich UI
- Custom tool approval workflows
- Sales or support copilot interfaces