Let your agent generate interactive React components on the fly.
Register a frontend tool with useFrontendTool and the
agent calls it to render components.
For long-running tasks, the agent orchestrates multi-step workflows and renders progress UI.
Use A2UI, Hashbrown, JSON Render, or other declarative renderers for schema-driven UI generation.
Let your agent generate interactive React components on the fly.
Register a frontend tool with useFrontendTool and the
agent calls it to render components. The agent determines when to
invoke the tool based on the user's request.
When the agent calls this tool, CopilotKit renders the component you defined. The user sees an interactive chart appear in the chat.
For long-running tasks, the agent orchestrates multi-step workflows and renders progress UI along the way.
Use A2UI, Hashbrown, JSON Render, or other declarative renderers for schema-driven UI generation. The agent sends a schema, your renderer turns it into components.
Let your agent generate interactive React components on the fly.
Register a frontend tool with useFrontendTool and the
agent calls it to render components.
When the agent calls this tool, CopilotKit renders the component you defined. The user sees an interactive chart appear in the chat.
For long-running tasks, the agent orchestrates multi-step workflows and renders progress UI along the way.
Use A2UI, Hashbrown, JSON Render, or other declarative renderers. The agent sends a schema, your renderer turns it into components.
This approach gives you the most flexibility while keeping a structured contract between agent and UI.