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:

  1. Add the instructions generated from the component library to the agent's system prompt.
  2. Render the streamed OpenUI Lang response in the chat UI.
Architecture diagram showing an existing chat UI sending a request to its backend, which calls model providers directly. The model returns OpenUI Lang, which the renderer displays 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

Starting without an existing chat UI? Use Agent Interface for a complete React chat experience.

On this page