FabricFabricHarness
EcosystemChannels

Google Chat

Route authenticated Google Chat events into persistent agent threads.

fh add channel google-chat
.fabricharness/channels/google-chat.ts
import { createGoogleChatChannel } from '@fabric-harness/channels/google-chat';

export default createGoogleChatChannel({
  audience: process.env.GOOGLE_CHAT_AUDIENCE!,
  agent: 'assistant',
});

Set the Chat app HTTP endpoint to POST /channels/google-chat/webhook and use the same endpoint URL or Cloud project number as GOOGLE_CHAT_AUDIENCE. The adapter verifies the Google Chat issuer, audience, signature, expiry, and not-before claims. Space is the default tenant, the user is the actor, and space/thread is the persistent key.

Use replyInGoogleChat(ref, { accessToken, space, thread }) for governed asynchronous replies.

Use minimal Chat scopes and live-test service-account or delegated credentials in the target Workspace domain. See Google request verification.