Collaboration features - AI Collaboration
Bring realtime multiplayer to your AI agents with Feeds and Presence. Connect any workflow and use Liveblocks APIs to update your application state with realtime UI updates, comment responses, AI presence, and more. It’s also possible to create and update feeds when an AI assistant is mentioned in a comment, or trigger a feed from a custom UI component.
Any workflows are compatible, such as n8n, LangChain, Crew AI, or custom setups. Feeds is ideal for multi-agent orchestration, automation, and complex pipelines.
Overview
Feeds are realtime message lists that update live in your React app, inside rooms. It often makes sense to create feeds from your back end, and then render the results on the front end. Here's how to create a feed and send a message to it in Node.js.
In React, you can render the list of messages in a feed using
useFeedMessages. This
list updates in realtime for all connected users.
You can also add new feed messages from the front end, for example in a chat application.
Feeds can be read and edited from React, JavaScript, Node.js, Python, with n8n nodes, and via REST API. API references.
Presence
Presence represents connected users shown through UI, such as avatar stacks,
cursors, or cell selections. When AI workflows are running you can choose to
show an agent’s presence in your application, alongside humans. To create
presence use
liveblocks.setPresence.
You can render the presence of an AI agents and humans using our default
AvatarStack and
Cursors components.
To create custom presence UI, add
useOthers, which returns a
realtime list of every connected user, both human and AI. Here’s a way to render
cursors for each user.
Note that presence and info are contain custom values we set on the back
end.
AI comments
One way to use feeds is to render AI comments in your application, using custom thread components. We have an example of this set up using Workflow SDK and webhooks to trigger the back end code.
n8n nodes
n8n is a workflow automation platform that allows you to build agents visually. A set of Liveblocks nodes are available which you can use directly in your workflow. Each Liveblocks REST API endpoint has a corresponding n8n node, allowing you to add messages to feeds, show presence, update multiplayer state, and more.
Learn more about Liveblocks n8n nodes