Actions11
Message → Create
AI-generatedOverview
This node integrates with the Google Chat API to create messages within a specified Google Chat space. It supports sending messages either through a structured UI input or by passing a raw JSON object. This functionality is useful for automating communication in Google Chat spaces, such as sending notifications, alerts, or updates programmatically.
Use Case Examples
- Automatically post a notification message to a specific Google Chat space when a new task is created in a project management tool.
- Send formatted messages with rich content to a Google Chat space using JSON input for advanced message layouts.
Properties
| Name | Meaning |
|---|---|
| Space Name | The identifier of the Google Chat space where the message will be created, in the format 'spaces/*'. |
| JSON Parameters | Determines whether the message content is provided as a JSON object/string or through the UI fields. |
| Message | The message content to send, either as text (when JSON Parameters is false) or as a JSON object/string (when JSON Parameters is true). |
| Additional Fields | Optional parameters such as threadKey to group messages into threads and requestId to ensure idempotency of message creation. |
Output
JSON
name- The unique identifier of the created message.text- The text content of the created message.thread- Information about the thread the message belongs to, if any.createTime- Timestamp when the message was created.
Dependencies
- Google API credentials for authentication to access Google Chat API
Troubleshooting
- If the message JSON is invalid, the node throws an error 'Message (JSON) must be a valid json'. Ensure the JSON is correctly formatted.
- If the message text is empty when JSON Parameters is false, the node throws 'Message Text must be provided.' Provide valid text content.
- Errors related to authentication or permissions may occur if the Google API credentials are missing or invalid. Verify credentials setup.
Links
- Google Chat API - Create Message - Official Google Chat API documentation for creating messages in spaces.