ByteChef LogoByteChef
Components

Google Chat

Google Chat is an intelligent and secure communication and collaboration tool, built for teams.

Google Chat is an intelligent and secure communication and collaboration tool, built for teams.

Categories: Communication

Type: googleChat/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Actions

Create Message

Name: createMessage

Creates a new message in selected space.

Properties

NameLabelTypeDescriptionRequired
SPACESpaceSTRINGSpace in which the message will be created.true
textMessage TextSTRINGText of the message.true

Example JSON Structure

{
  "label" : "Create Message",
  "name" : "createMessage",
  "parameters" : {
    "SPACE" : "",
    "text" : ""
  },
  "type" : "googleChat/v1/createMessage"
}

Output

Type: OBJECT

Properties

NameTypeDescription
nameSTRINGName of the message that was created.
senderOBJECT
Properties {STRING(name), STRING(type)}
Sender of the message.
createTimeSTRINGTime when the message was created.
textSTRINGText of the message.
threadOBJECT
Properties {STRING(name)}
spaceOBJECT
Properties {STRING(name)}
argumentTextSTRING
formattedTextSTRING

Output Example

{
  "name" : "",
  "sender" : {
    "name" : "",
    "type" : ""
  },
  "createTime" : "",
  "text" : "",
  "thread" : {
    "name" : ""
  },
  "space" : {
    "name" : ""
  },
  "argumentText" : "",
  "formattedText" : ""
}

Create Space

Name: createSpace

Creates space in Google Chat.

Properties

NameLabelTypeDescriptionRequired
displayNameSpace NameSTRINGName of the space to create.true

Example JSON Structure

{
  "label" : "Create Space",
  "name" : "createSpace",
  "parameters" : {
    "displayName" : ""
  },
  "type" : "googleChat/v1/createSpace"
}

Output

Type: OBJECT

Properties

NameTypeDescription
nameSTRINGName of the space that was created.
typeSTRINGType of the space.
displayNameSTRINGName of the space that will be displayed.
spaceThreadingStateSTRING
spaceTypeSTRING
spaceHistoryStateSTRING
createTimeSTRING
lastActiveTimeSTRING
membershipCountOBJECT
Properties {}
accessSettingsOBJECT
Properties {STRING(accessSettings)}
spaceUriSTRING

Output Example

{
  "name" : "",
  "type" : "",
  "displayName" : "",
  "spaceThreadingState" : "",
  "spaceType" : "",
  "spaceHistoryState" : "",
  "createTime" : "",
  "lastActiveTime" : "",
  "membershipCount" : { },
  "accessSettings" : {
    "accessSettings" : ""
  },
  "spaceUri" : ""
}

Additional instructions


After enabling Chat API in Google API Console make sure you also follow these steps: https://developers.google.com/workspace/chat/configure-chat-api

On this page