Files
github-actions[bot] 6ef8816a55 Version Packages (#100)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-26 15:07:23 -08:00
..
2026-02-25 08:05:30 -08:00
2026-02-26 15:07:23 -08:00
2026-02-26 15:07:23 -08:00
2026-02-20 13:25:09 -08:00
2026-02-20 13:25:09 -08:00
2025-12-21 20:48:14 -08:00
2026-02-20 13:25:09 -08:00

@chat-adapter/gchat

npm version npm downloads

Google Chat adapter for Chat SDK. Supports service account authentication with optional Pub/Sub for receiving all messages.

Installation

npm install chat @chat-adapter/gchat

Usage

import { Chat } from "chat";
import { createGoogleChatAdapter } from "@chat-adapter/gchat";

const bot = new Chat({
  userName: "mybot",
  adapters: {
    gchat: createGoogleChatAdapter({
      credentials: JSON.parse(process.env.GOOGLE_CHAT_CREDENTIALS!),
    }),
  },
});

bot.onNewMention(async (thread, message) => {
  await thread.post("Hello from Google Chat!");
});

Documentation

Full setup instructions, configuration reference, and features at chat-sdk.dev/docs/adapters/gchat.

License

MIT