Route Gmail PDF attachments to Google Drive with Slack or Telegram alerts
Ready for 3.0What 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).
- Set - Global Config (Edit Fields (Set)): sets 5 fields: search_keyword, target_drive_folder_id, notification_channel…
- Code: runs custom JavaScript code
- Gmail: get many
- Switch: routes items into 2 branches
- Edit Fields - Normalize Email (Code): runs custom JavaScript code
- Slack: uses Slack
- Telegram: uses Telegram
- If: checks a condition and branches into true / false
- Code: runs custom JavaScript code
- Code: runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Error Trigger
n8n-nodes-base.errorTrigger - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Telegram
n8n-nodes-base.telegram
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.…