Google Chat Integrations

Create Googlechat Integration

Create Google Chat integration

post
/v1/integration/googlechat/create

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Request Body * Required

Request Body Schema: application/json

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

blueprintIdstring

The ID of the blueprint

botIdstring

The ID of the bot this configuration is using

serviceAccountKeystring

The Google service account JSON key for sending messages via the Chat REST API

projectNumberstring

The Google Cloud project number used to verify incoming event JWT audience claims

contactCollectionboolean

Whether to collect contacts

sessionDurationnumber

The session duration for the Google Chat integration

autoRespondstring

Configure automatic response behavior. Use '@all' to respond to all messages, '@agent <instructions>' for agent-powered decisions, or custom instructions for lightweight LLM filtering. Null/empty defaults to DMs and direct messages only.

allowFromstring

Restrict which Google Chat users can interact with this integration. Accepts user resource names (users/USER_ID) or * to allow all. One per line.

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.integration.googlechat.create(

{
"name":"string",
"description":"string",
"meta":"object",
"blueprintId":"string",
"botId":"string",
"serviceAccountKey":"string",
"projectNumber":"string",
"contactCollection":"boolean",
"sessionDuration":"number",
"autoRespond":"string",
"allowFrom":"string"
}
)
{
"id":"string"
}
The Google Chat integration was created successfully