Actions11
Message → Update
AI-generatedOverview
This node interacts with the Google Chat API to perform various operations on Google Chat resources. Specifically, the 'Update' operation for the 'Message' resource allows users to update an existing message in Google Chat. Users can update the message by providing either a structured UI input or a raw JSON object representing the message. This is useful for modifying message content such as text or cards in a chat space.
Use Case Examples
- Updating a message's text content in a Google Chat space by specifying the message name and new text.
- Using a JSON object to update complex message structures like cards in Google Chat.
Properties
| Name | Meaning |
|---|---|
| Message Name | The resource name of the message to be updated, formatted as 'spaces/*/messages/*'. This identifies the specific message to update. |
| JSON Parameters | A boolean flag indicating whether the message content is provided as a JSON object/string or via the UI fields. |
| Message | The message object to update, provided as UI fields when JSON Parameters is false. Currently supports updating the text of the message. |
| Message (JSON) | The message object to update, provided as a JSON object or JSON string when JSON Parameters is true. |
Output
JSON
text- Updated text content of the message.cards- Updated cards content of the message, if provided.
Dependencies
- Google Chat API
Troubleshooting
- Ensure the 'Message Name' is correctly formatted as 'spaces/*/messages/*' to avoid resource not found errors.
- If using JSON Parameters, ensure the JSON is valid to prevent parsing errors.
- The node throws an error if required fields like message text are missing when JSON Parameters is false.
- API authentication errors may occur if the Google API credentials are not properly configured.
Links
- Google Chat Guide to Creating Messages - Official Google Chat API documentation for message resource structure and usage.