Moderate your Discord server using chatGPT-5 & Google Sheets (Learning system)
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (every minute). Along the way it connects Discord, OpenAI Chat Model and Google Sheets.
How it runs
Trigger: On a schedule (every minute).
- Set Credentials Here (Edit Fields (Set)): sets 2 fields: discord server ID, discord moderated channel ID
- Get sheet knowledgebase (Google Sheets): uses Google Sheets
- Get recent messages (Discord): get many (message)
- prep messages for AI (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: GPT5 mini
- Get only the bad messages (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- delete bad content (Discord): delete message
- Wait: waits 1.5 seconds
- update admin channel about moderation (Discord): work with message
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Discord templates (89) · Other Google Sheets + Discord templates (69)
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 (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Discord
n8n-nodes-base.discord - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Wait
n8n-nodes-base.wait - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
Discord AI Content Moderator with Learning System This n8n template demonstrates how to automatically moderate Discord messages using AI-powered content analysis that learns from your community standards. It continuously monitors your server, intelligently…