---
title: Liveblocks
description: Bring your agent into Liveblocks comment threads, mentions, and reactions.
url: "https://eve.dev/integrations/chat-sdk-liveblocks"
docs_index: /llms.txt
type: channel
keywords:
  - chat sdk
  - liveblocks
  - comments
  - collaboration
  - threads
  - mentions
  - reactions
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

Channel integration for eve. Bring your agent into Liveblocks comment threads, mentions, and reactions.

## Install

Add this Chat SDK channel from eve's registry. This writes `agent/channels/liveblocks.ts` and installs Chat SDK and its adapter dependencies:

```bash
eve add channel/chat-sdk-liveblocks
```

## Quick start

Create `agent/channels/liveblocks.ts`:

```ts
// agent/channels/liveblocks.ts
import { createLiveblocksAdapter } from "@liveblocks/chat-sdk-adapter";
import { createMemoryState } from "@chat-adapter/state-memory";
import type { Message, Thread } from "chat";
import { chatSdkChannel, messageContentOf } from "eve/channels/chat-sdk";

export const { bot, channel, send } = chatSdkChannel({
  userName: "My Agent",
  adapters: {
    liveblocks: createLiveblocksAdapter({
      apiKey: process.env.LIVEBLOCKS_SECRET_KEY!,
      webhookSecret: process.env.LIVEBLOCKS_WEBHOOK_SECRET!,
      botUserId: "my-agent",
      botUserName: "My Agent",
      resolveUsers: async ({ userIds }) =>
        userIds.map((id) => (id === "my-agent" ? { name: "My Agent" } : undefined)),
    }),
  },
  state: createMemoryState(),
  // Hand every message to eve, even mid-reply, so eve can steer the running turn.
  concurrency: "concurrent",
});

bot.onNewMention(async (thread: Thread, message: Message) => {
  await thread.subscribe();
  await send(messageContentOf(message), { thread });
});

bot.onSubscribedMessage(async (thread: Thread, message: Message) => {
  await send(messageContentOf(message), { thread });
});

export default channel;
```

See the [Liveblocks adapter documentation](https://chat-sdk.dev/adapters/vendor-official/liveblocks) for supported events, capabilities, and credentials.

## Configure

Create a Liveblocks webhook for `commentCreated`, set `LIVEBLOCKS_SECRET_KEY` and `LIVEBLOCKS_WEBHOOK_SECRET`, and send events to `/eve/v1/liveblocks`. Keep `botUserId` and `resolveUsers` aligned with the bot's identity so the adapter can detect mentions. Replace the example resolver with your app's user lookup when you need names for other users. The adapter maps rooms to channels, comment threads to threads, and comments to messages. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.

[Read the full channel documentation](/docs/channels/chat-sdk)

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)