Templates / Route Gmail PDF attachments to Google Drive with Slack or Telegram alerts

Route Gmail PDF attachments to Google Drive with Slack or Telegram alerts

Ready for 3.0

by Juan Carlos Gonzalez ✓ · 2 views · created 2026-08-05 · File Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 15 nodes and runs on a schedule (every day at 09:00) (plus 1 other trigger). Along the way it connects Gmail, Google Drive, Slack and Telegram.

How it runs

Trigger: On a schedule (every day at 09:00) (plus 1 other trigger).

  1. Set - Global Config (Edit Fields (Set)): sets 5 fields: search_keyword, target_drive_folder_id, notification_channel…
  2. Code: runs custom JavaScript code
  3. Gmail: get many
  4. Switch: routes items into 2 branches
  5. Edit Fields - Normalize Email (Code): runs custom JavaScript code
  6. Slack: uses Slack
  7. Telegram: uses Telegram
  8. If: checks a condition and branches into true / false
  9. Code: runs custom JavaScript code
  10. Code: runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

GmailGoogle DriveSlackTelegram

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Quick overview This workflow runs daily to find unread Gmail messages matching a keyword, uploads any PDF attachments to Google Drive, and sends a single upload summary notification to Slack or Telegram. How it works 1. Runs every day on a scheduled trigger.…

Excerpt from Juan Carlos Gonzalez's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.