Archive Discord audit logs to Google Sheets and send weekly Slack digests
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 and Slack.
How it runs
Trigger: On a schedule (every day at 03:00).
- Set Audit Ledger Config (Edit Fields (Set)): sets 7 fields: guildId, sheetUrl, slackChannel…
- Read Stored Watermark (Data table): get
- Build Fetch Cursor (Code): runs custom JavaScript code
- Get Discord Audit Log Pages (HTTP Request): calls an HTTP API
- Check If Digest Day (If): checks a condition and branches into true / false
- Map Action Types and Users (Code): runs custom JavaScript code
- Read Ledger Rows in Sheets (Google Sheets): uses Google Sheets
- Append Entries in Sheets (Google Sheets): append
- Count Actions by Moderator (Code): runs custom JavaScript code
- Update Stored Watermark (Data table): create or update
…plus 1 more step. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Sheets + Discord templates (69) · Other Slack + Discord templates (30)
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 - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs daily to fetch new Discord server audit log entries, appends them to a Google Sheets ledger, and posts a weekly digest to Slack summarizing moderator activity and action counts over a configurable lookback window. How it…