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.
The AiChat
component renders an AI chat, with a chat history, a composer
for adding new messages, and a toolbar for adding AI actions.
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.
The AiTool
component renders
tools called in 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.
It’s possible to style and localize the default components:
Learn more under styling and customization.
We use cookies to collect data to improve your experience on our site. Read our Privacy Policy to learn more.