---
title: Google Chat
description: Google Chat spaces and DMs via the Chat SDK.
url: "https://eve.dev/integrations/chat-sdk-gchat"
docs_index: /llms.txt
type: channel
keywords:
  - chat sdk
  - google chat
  - spaces
  - bot
---

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

Channel integration for eve. Google Chat spaces and DMs via the Chat SDK.

## Install

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

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

## Quick start

Create `agent/channels/gchat.ts`. Register Chat SDK handlers on `bot`, call `send` to hand each turn to eve, and export the channel:

```ts
// agent/channels/gchat.ts
import { createGoogleChatAdapter } from "@chat-adapter/gchat";
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: {
    gchat: createGoogleChatAdapter({
      endpointUrl: process.env.GOOGLE_CHAT_ENDPOINT_URL!,
      botUserId: process.env.GOOGLE_CHAT_BOT_USER_ID!,
    }),
  },
  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;
```

Credentials come from the `createGoogleChatAdapter` config or the adapter's environment variables; see the [Google Chat adapter docs](https://chat-sdk.dev/adapters/official/gchat).

## Configure

Set `GOOGLE_CHAT_ENDPOINT_URL` to the exact deployed `/eve/v1/gchat` URL and choose **HTTP endpoint URL** as the Chat app's authentication audience. Set `GOOGLE_CHAT_BOT_USER_ID` to the app's canonical `users/...` identity. Configure service-account credentials or Application Default Credentials as described in the [Google Chat adapter docs](https://chat-sdk.dev/adapters/official/gchat). The adapter owns provider auth, verification, and delivery, while eve owns session dispatch, streaming, typing, and human-in-the-loop. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for routes, streaming, and state options.

[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)