# Google Chat — Pipedream Connect

> Simplify 1:1 messaging and group collaboration

- API slug: `google_chat` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Communication
- Website: https://workspace.google.com/products/chat/
- Managed OAuth scopes: `email` · `profile` · `https://www.googleapis.com/auth/chat.memberships.app` · `https://www.googleapis.com/auth/chat.messages.reactions` · `https://www.googleapis.com/auth/chat.messages.create` · `https://www.googleapis.com/auth/chat.messages.reactions.create` · `https://www.googleapis.com/auth/chat.spaces`
- This page (HTML): https://pipedream.com/apps/google-chat
- Tools: 7 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: google_chat`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "google_chat",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Message:
const result = await mcp.callTool({
  name: "google_chat-create-message",
  arguments: {
    spaceId: "Space ID",
    text: "Message Text",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Google Chat endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://www.googleapis.com/oauth2/v1/userinfo

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vb2F1dGgyL3YxL3VzZXJpbmZv?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_chat-create-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_chat: { authProvisionId: "apn_xxxxxxx" },
    spaceId: "Space ID",
    text: "Message Text",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (7)

### `google_chat-create-message` — Create Message (Write)

Create a message to post a text or an attachment. See the documentation

Full schema: https://pipedream.com/apps/google-chat/actions/create-message.md

### `google_chat-get-member` — Get Member (Read-only)

Returns details about a membership. See the documentation

Full schema: https://pipedream.com/apps/google-chat/actions/get-member.md

### `google_chat-get-message` — Get Message (Read-only)

Returns details about a message. See the documentation

Full schema: https://pipedream.com/apps/google-chat/actions/get-message.md

### `google_chat-get-space` — Get Space (Read-only)

Returns details about a space. See the documentation

Full schema: https://pipedream.com/apps/google-chat/actions/get-space.md

### `google_chat-list-members` — List Members (Read-only)

Lists memberships in a space. See the documentation

Full schema: https://pipedream.com/apps/google-chat/actions/list-members.md

### `google_chat-list-messages` — List Messages (Read-only)

Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. See the documentation

Full schema: https://pipedream.com/apps/google-chat/actions/list-messages.md

### `google_chat-list-spaces` — List Spaces (Read-only)

Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. See the documentation

Full schema: https://pipedream.com/apps/google-chat/actions/list-spaces.md

## Triggers (3)

### `google_chat-new-command-used` — New Command Used (Polling)

Emit new event when a new command is used in a space. See the documentation

Full schema: https://pipedream.com/apps/google-chat/triggers/new-command-used.md

### `google_chat-new-mention-received` — New Mention Received (Polling)

Emit new event when a new mention is received in a space. See the documentation

Full schema: https://pipedream.com/apps/google-chat/triggers/new-mention-received.md

### `google_chat-new-message-in-space` — New Message in Space (Polling)

Emit new event when a new message is posted in a space. See the documentation

Full schema: https://pipedream.com/apps/google-chat/triggers/new-message-in-space.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
