Google Chat icon

Google Chat

Consume Google Chat API

Actions11

Media → Download

AI-generated

Overview

This node interacts with the Google Chat API to perform various operations on different resources. Specifically, for the Media resource with the Download operation, it downloads media files from Google Chat by specifying the media resource name. The downloaded media content is then stored in a binary property of the output data. This is useful for workflows that need to retrieve and process media files from Google Chat, such as saving images or documents shared in chat spaces.

Use Case Examples

  1. Downloading an image file shared in a Google Chat space and saving it as binary data for further processing or storage.
  2. Automating the retrieval of media attachments from Google Chat messages for archival or analysis.

Properties

Name Meaning
Resource Name The name of the media resource to be downloaded from Google Chat.
Binary Property The name of the binary property in the output where the downloaded media data will be stored.

Output

Binary

Contains the downloaded media file data stored under the specified binary property name.

JSON

  • json - The original JSON data of the input item, preserved in the output.
    binary - The binary data of the downloaded media file stored under the user-defined binary property name.

Dependencies

  • Requires Google API credentials to authenticate requests to the Google Chat API.

Troubleshooting

  • If the media resource name is incorrect or does not exist, the node will throw an error indicating the resource could not be found.
  • Ensure that the Google API credentials have sufficient permissions to access and download media from Google Chat.
  • If the binary property name is not set correctly, the downloaded data may not be stored properly, leading to missing binary output.

Links

  • Google Chat API Media Guide - Official documentation on handling media in Google Chat API, useful for understanding media resource names and download capabilities.

Discussion