AI Copilots - Default components
The default components included in AI Copilots are a great way to start building AI into your application. With these components you can render advanced AI chats, that understand your application state, modify it with actions, and render custom in-chat components.
- Fully styled AI chat components, with an optional dark mode.
- Pass in knowledge, add actions, and render custom components.
- Customize through CSS variables and class names.
- Localize and modify strings with overrides.
AiChat
The AiChat component renders an AI chat, with a chat history and a
composer for adding new messages.

Usage
Get started by importing the component, and passing in a unique chat ID.
This will render an AI chat on the page, with a chat history, and a composer for adding new messages. Each chat is stored permanently, and can be accessed again later.
AiTool
When
registering a tool,
the AiTool component can be used to
show tool progress and results
within AI chats. It shows the tool’s name, its stage (e.g. a spinner when
executing, a checkmark when successful, etc.), and optionally an icon and custom
content inside it.
Usage
AiTool.Confirmation
Inside of tools, the AiTool.Confirmation component is a sub-component of
AiTool that renders confirm/deny buttons as part of a
human-in-the-loop tool action.
“Confirm” and Cancel” buttons are displayed to the user.
Usage
Customization
It’s possible to style and localize the default components:
- Import dark mode styles.
- Modify the style with CSS variables and class names.
- Use overrides to change default text used in the components.
Learn more under styling and customization: