Archive Discord attachments to Google Drive and log them in Google Sheets
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every day at 03:00). Along the way it connects Google Sheets, Discord and Google Drive.
How it runs
Trigger: On a schedule (every day at 03:00).
- Set Archive Settings (Edit Fields (Set)): sets 7 fields: guildId, channelIds, driveParentFolderId…
- Read Archive Log (Google Sheets): uses Google Sheets
- Build Channel List (Code): runs custom JavaScript code
- Get Recent Messages (Discord): get many (message)
- Extract New Attachments (Code): runs custom JavaScript code
- Skip Oversized Attachments (Filter): keeps only the items that match a condition
- Create Dated Drive Folder (Google Drive): work with folder
- Plan Uploads Into Folder (Code): runs custom JavaScript code
- Download Attachment (HTTP Request): calls an HTTP API
- Upload To Drive Folder (Google Drive): uses Google Drive
…plus 1 more step. See the full node list below.
Services it uses
Other Google Drive + Google Sheets templates (720) · Other Google Sheets + Discord templates (69) · Other Google Drive + Discord templates (16)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Discord
n8n-nodes-base.discord - Filter
n8n-nodes-base.filter - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick Overview This workflow runs daily to fetch recent Discord messages from selected channels, downloads new attachments, uploads them into a dated Google Drive folder, and appends a detailed archive record to a Google Sheets log to prevent expiring Discord…