Google Chat
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
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| clientId | Client Id | STRING | true | |
| clientSecret | Client Secret | STRING | true |
Connection Setup
Create OAuth 2.0 Application
Creation of OAuth 2.0 application is documented here.
Enable Google Chat API
- In the Google Cloud Console, select your project.
- Go to the APIs & Services.
- Click on ENABLE APIS AND SERVICES.
- Search for "google chat api" in the search bar.
- Click on Google Chat API.
- Click Enable.
Configure Chat Application
- In the Google Cloud Console
- Click on APIs & Services
- Click on Google Chat API
- Click on Configuration
- Add App name, Avatar URL and Description
- Enable "Join spaces and group conversations"
- Click on "Use a common HTTP endpoint URL for all triggers" and add some HTTPS URL, we won't use that feature.
- Click on "Enter email addresses to add individuals and group" and add your email address.
- Click on Save
- Done 🚀
Actions
Create Space
Name: createSpace
Creates space in Google Chat.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| displayName | Space Name | STRING | Name of the space to create. | true |
Example JSON Structure
{
"label" : "Create Space",
"name" : "createSpace",
"parameters" : {
"displayName" : ""
},
"type" : "googleChat/v1/createSpace"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| name | STRING | Name of the space that was created. |
| type | STRING | Type of the space. |
| displayName | STRING | Name of the space that will be displayed. |
| spaceThreadingState | STRING | The threading state in the Chat space. |
| spaceType | STRING | The type of space. |
| spaceHistoryState | STRING | The message history state for messages and threads in this space. |
| createTime | STRING | For spaces created in Chat, the time the space was created. |
| lastActiveTime | STRING | Timestamp of the last message in the space. |
| membershipCount | OBJECT Properties{} | The count of joined memberships grouped by member type. |
| accessSettings | OBJECT Properties{STRING(accessSettings)} | Specifies the access setting of the space. |
| customer | STRING | Customer that created the space. |
| spaceUri | STRING | The URI for a user to access the space. |
Output Example
{
"name" : "",
"type" : "",
"displayName" : "",
"spaceThreadingState" : "",
"spaceType" : "",
"spaceHistoryState" : "",
"createTime" : "",
"lastActiveTime" : "",
"membershipCount" : { },
"accessSettings" : {
"accessSettings" : ""
},
"customer" : "",
"spaceUri" : ""
}Send Space Message
Name: sendSpaceMessage
Sends a new message in selected space.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| spaceName | Space Name | STRING | Name of the space in which the message will be sent. | true |
| text | Message Text | STRING | Text of the message. | true |
Example JSON Structure
{
"label" : "Send Space Message",
"name" : "sendSpaceMessage",
"parameters" : {
"spaceName" : "",
"text" : ""
},
"type" : "googleChat/v1/sendSpaceMessage"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| name | STRING | Name of the message that was sent. |
| sender | OBJECT Properties{STRING(name), STRING(type)} | Sender of the message. |
| createTime | STRING | Time when the message was sent. |
| text | STRING | Text of the message. |
| thread | OBJECT Properties{STRING(name)} | |
| space | OBJECT Properties{STRING(name)} | |
| argumentText | STRING | |
| formattedText | STRING |
Output Example
{
"name" : "",
"sender" : {
"name" : "",
"type" : ""
},
"createTime" : "",
"text" : "",
"thread" : {
"name" : ""
},
"space" : {
"name" : ""
},
"argumentText" : "",
"formattedText" : ""
}What to do if your action is not listed here?
If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.
To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.
Additional Instructions
How to find Space Name
To retrieve the Space Name, use the Google Chat API spaces.list method.
Its endpoint is GET https://chat.googleapis.com/v1/spaces.
Troubleshooting
Access Blocked: Verification Process Not Completed
Documentation for how to add a test user can be found here
How is this guide?
Last updated on
Google Calendar
Google Calendar is a web-based application that allows users to schedule and organize events, appointments, and reminders, synchronizing across multiple devices.
Google Contacts
Google Contacts is a cloud-based address book service provided by Google, allowing users to store, manage, and synchronize their contact information across multiple devices and platforms.