Angular feature examples
Browse examples, source, API docs, and support state for all 41 Angular features.
The catalog covers all 41 supported Angular features. Forty entries include a runnable example. Every entry links to its source and the closest API documentation.
Shared setup#
Install @copilotkit/angular and the matching @angular/cdk major. Register the provider in your application config:
import { ApplicationConfig } from "@angular/core";
import { provideCopilotKit } from "@copilotkit/angular";
export const appConfig: ApplicationConfig = {
providers: [provideCopilotKit({ runtimeUrl: "/api/copilotkit" })],
};The source link opens the standalone Angular component used for that feature.
A2UI Error Recovery
a2ui-recoveryVisible A2UI validate-retry recovery loop: an invalid render heals to a valid one, an always-invalid render shows a graceful recovery-exhausted fallback
Agent Config Object
agent-configForwarded props / config objects
Attachments
multimodalFile upload and agent processing
Authentication
authFramework-native authentication
Background Agents
background-agentsA long-running deep-research tool dispatched as a background task, surfaced inline as a live "working" activity card
Beautiful Chat
beautiful-chatCanonical polished starter chat (same as /examples/integrations/langgraph-python)
Browser Use
browser-useThe agent drives a real local headless browser to fetch pages and renders the results inline in chat
Chat Customization: CSS
chat-customization-cssCustomizing chat components via CSS
Chat Customization: Slots
chat-slotsCustomizing chat components via the slot system
Declarative UI: Dynamic A2UI
declarative-gen-uiCanonical A2UI BYOC — custom catalog wired via a2ui.catalog
Declarative UI: Fixed A2UI
a2ui-fixed-schemaA2UI rendering against a known, fixed client-side schema
Frontend tools: async
frontend-tools-asyncRegister an async browser tool whose result returns to the agent.
Frontend Tools: In-app Actions
frontend-toolsFrontend tool execution triggered by the agent
Generative UI: agent state
gen-ui-agentRead live agent state with injectAgentStore and render it in the chat transcript.
Generative UI: component rendering
gen-ui-tool-basedRender typed tool results with registerFrontendTool and a standalone Angular component.
Generative UI: Rendering multiple tools
tool-rendering-reasoning-chainSequential tool calls with reasoning tokens rendered side-by-side
Generative UI: Tool Rendering (Custom default)
tool-rendering-custom-catchallSingle branded wildcard renderer that paints every tool call — one card handles them all
Generative UI: Tool Rendering (Default)
tool-rendering-default-catchallOut-of-the-box rendering: backend tools surfaced via CopilotKit's built-in default catch-all renderer; no frontend customization
Generative UI: Tool Rendering (Specific)
tool-renderingCustom per-tool renderers for the tools you care about, plus a wildcard catch-all for the rest
Headless UI: Complete
headless-completeFull headless UI with messages, tools, gen UI
Headless UI: Simple
headless-simpleSimple headless UI getting started
Human in the loop: headless interrupts
interrupt-headlessResolve an agent interrupt with injectInterrupt from application UI outside the chat.
Human in the loop: in app
hitl-in-appRender approval UI outside chat and resolve the pending tool with the user's decision.
Human in the loop: in chat
hitl-in-chatPause a tool call for user input with registerHumanInTheLoop and render the decision inside chat.
Human in the loop: interrupts
gen-ui-interruptHandle an agent interrupt with injectInterrupt and render the response controls inside chat.
MCP Apps
mcp-appsMCP server integration with UI display
Observational Memory
observational-memoryConversation context is compressed and activated out of band; the background work surfaces inline as activity cards
Open Generative UI: Custom
open-gen-ui-advancedAgent-authored UI that can invoke frontend sandbox functions from inside the iframe
Open Generative UI: Default
open-gen-uiAgent-generated UI from arbitrary component libraries
Prebuilt chat
agentic-chatAdd a full chat surface with the standalone CopilotChat component.
Prebuilt popup
prebuilt-popupAdd a floating, accessible chat dialog with CopilotPopup.
Reasoning: custom
reasoning-customReplace the reasoning-message slot with a standalone Angular component.
Reasoning: Default
reasoning-defaultBuilt-in CopilotChatReasoningMessage rendering with no slot override
Shared state: agent context
readonly-state-agent-contextShare read-only application state with the agent through connectAgentContext.
Sub-Agents
subagentsMultiple agents with visible task delegation
Thread ID: frontend tool round trip
threadid-frontend-tool-roundtripKeep an explicit thread ID across an async frontend-tool call and resumed agent run.
Voice
voiceReal-time voice interaction