Overview
Add OpenUI Lang to an existing agent framework or chat UI.
Add Generative UI to an agent built with any chat framework. Keep the existing conversation experience and render agent responses with OpenUI Lang.
OpenUI works with all agent frameworks and chat UIs. Instead of returning plain text or Markdown, the agent returns OpenUI Lang. The chat application passes that response to the OpenUI Lang renderer, which turns it into an interactive interface.
Every integration has two parts:
- Add the instructions generated from the component library to the agent's system prompt.
- Render the streamed OpenUI Lang response in the chat UI.
The backend can route model requests through the Gateway to correct invalid OpenUI Lang and fall back to another provider when a model provider is unavailable.
Set up the backend
Choose a chat UI
assistant-ui
Keep assistant-ui in charge of the conversation and tool lifecycle while OpenUI renders its generated interfaces.
CopilotKit
Add OpenUI rendering to an application whose agent experience is built with CopilotKit.
Custom Chat UI
Connect an existing message list and composer directly to the OpenUI Lang renderer.
Starting without an existing chat UI? Use Agent Interface for a complete React chat experience.