Liveblocks AI Copilots allows you to add a variety of AI experiences to your application, such as AI chat interfaces and toolbars, that can interact with your application and modify its state. For example, if your product contains a dashboard, you could ask AI to create a new project for you, or question it about certain statistics on the page.
One-off prompts are a way to add assorted AI features to your app, specifcally features that don’t require a chat, such as an AI button on a page. Actions and context are supported, allowing AI to interact with your application, and understand its state. An example use case for a one-off prompt is a button that uses AI to fill in a form.
When building a chat interface, it’s important to save the chat history so that the user can continue the conversation from where they left off. All chats and messages are stored automatically by Liveblocks, and each user has their own set of chats. No database is required, and messages are streamed into the chat in realtime using WebSockets.
Each page of your application can have multiple different chats, and it’s easy to switch between them, much like in ChatGPT. Each chat has a unique name, and can be given custom metadata, for example a custom title, description, tags, or anything you like.
It’s possible to go back to previous messages and start editing from there, allowing users to start again from a certain point in the chat.
When the page refreshes, each user’s previous chats will load for them, and can be continued. If a user has your app open in multiple browser tabs, each tab will correctly display chats, and update in real-time.
Actions are a way to allow AI to modify your application state and interact with your front end. You can use them to extend the capabilities of AI Copilots beyond simple text-based interactions. For example, you may have actions that create new documents in your app, automatically fill in form data, search the web for data, or anything else you like.
Actions are defined in your code, and are executed when the AI requests to use them.
Through actions, you can integrate AI Copilots into our other products, such as Comments, Notifications, and Sync Datastore. For example, you can allow AI to add comments to your application, send notifications to other users, or add shapes to a collaborative drawing app.
It’s simple to add context to your AI, so that is understands the current document or page.
Liveblocks AI Copilots includes a set of styled UI components that can be used to add an AI chat interface to your application. Messages are streamed in realtime.
We also provide a number of hooks, such as useChats
and useMessages
, that
allow you to create your own custom chat components.
Inside your chat, you can register custom React components that the AI can choose to render as a response. For example, if your app contains playlists, AI can choose to render a custom playlist component instead of a message. If you have multiple components, AI can choose which one to render.
These components can be fully interactive, for example a playlist component could have a play button that the AI can use to play a song.
Using our Text Editor integration for Tiptap, we provide an AI toolbar that can be added to your collaborative text editor. This toolbar allows you to select text, and ask AI to make changes for you, for example fixing typos, and creating new paragraphs.
Learn more about this React component under
AiToolbar
The Liveblocks dashboard allows you to create, configure, and manage your AI copilots, each of which can be used in different parts of your application. You can select your AI provider (e.g. OpenAI, Anthropic), specify a system prompt, and pass in your secret key to get it working.
You can also fine-tune how each copilot interacts with users by adjusting each model’s settings, which are passed through directly to the AI provider. These can influence its creativity, consistency, and the safety of generated content. Each copilot can be configured independently, and tested live in the dashboard.
In our dashboard, you can create, configure, and manage copilots powered by different AI providers, each with different settings. The following providers are supported out-of-the-box:
Reasoning models are supported by our built-in components, allowing models to show their thought processes.
Upload files into the chat, which AI can modify, or use for extra context. These files can be images, PDFs, text documents, or any file type your AI provider can understand. Files are automatically stored by Liveblocks.
Retrieval-Augmented Generation (RAG) is a technique that allows AI to retrieve information from a knowledge base and use it to generate responses. In future, AI Copilots will use this to support:
MCP is a protocol for running AI agents on a server, allowing you to make various back ends calls to different services. In future, AI Copilots will support this.
We will be investigating additional providers, such as LangGraph, Crew AI, Bedrock, and Vertex AI. If there is a specific provider you’d like us to support, please re-submit the request access form and let us know more information in the text box.
We use cookies to collect data to improve your experience on our site. Read our Privacy Policy to learn more.