Automate Gmail Attachments: Organize Files in Google Drive and Notify Telegram
Описание и применение
Автоматизация загрузки вложений Gmail в Google Drive и отправка ссылки в Telegram с помощью FastHook.
Задача
Manually downloading Gmail attachments, organizing them in Drive, and notifying via Telegram is tedious and error‑prone.
Результат
Attachments are stored in Drive under Gmail attachments / sender / date, and a Telegram notification with the file link is sent automatically.
Рабочий процесс
- Receive new Gmail attachment via trigger
- Format email received date to YYYY‑MM‑DD
- Find or create Drive folder path Gmail attachments / Sender Email / formatted date
- Upload attachment to that folder
- Set file permission to anyone with link, reader
- Send Telegram message with sender, date, filename, and file link
Доказательства
The workflow has six stages: Gmail: receive a new attachment. Formatter: turn the email’s received date into a date folder name. Google Drive: find or create the folder path. Google Drive: upload the attachment into that folder. Google Drive: set the file’s viewing permission. Telegram: send a message containing the uploaded file’s link.
For the demonstration’s Share File action, use: File: the ID returned by Upload File. Permission type: anyone. Role: reader.
Verify the result in three places: FastHook Run History, Google Drive, Telegram.
- Дата записи: 2026-10-26T23:26:21.818Z