Automated Discord Spam Moderation with AI and Human-in-the-Loop — n8n Workflow

Hoog complexiteit Trigger23 knooppunten🏷️ Miscellaneous👁 831 weergavendoor Jimleuk

Overzicht

This n8n template demonstrates how you can automate community moderation using human-in-the-loop functionality for Discord.

The use-case is for detecting and dealing with spam messages in a predefined and consistent way. Human-in-the-loop allows for a balance between overly aggressive bots and time and effort from the moderation team.

How it works A scheduled trigger is used to scan the most recent messages in a Discord Channel. Messages are tagged via the "Remove Duplicates" node so they don'

Gebruikte knooppunten

DiscordCodeOpenAI Chat ModelText Classifier

Workflow-voorvertoning

1. Get Channel Messages
Read more about the scheduled Trigger
The scheduled trigger is used to execute this w
2. Group Messages By User
Learn more about the loop node
When dealing with nested data such as user and messag
3. Spam Detection using AI-powered Text Class
[Learn more about the text classification node](https:/
5. Moderation using Human-in-the-Loop
Read more about n8n's human-fallback functionality
In this step, we can use the "Send and Wait for
6. Execute Moderation Actions
Learn more about the Discord node
Finally, moderation actions can be executed on behalf
4. Concurrent Processing using Subworkflows
Learn more about Subworkflow Trigger
One issue we might come acros
Try it out
This n8n template demonstrates how you can automate com
The use-case is for detecting and dealing with spam mes
model
Spam Detection
Get Recent Messages
O
Only Once
Model
Warn User
Warn User Only
Group By User
F
For Each User...
S
Split Out
Message to List
Notify Moderators with S…
F
Flag as Spam
F
Flag as Not Spam
M
Merge
S
Spam Messages Only
H
Has Flagged Messages?
Get Message IDs
Delete Messages
R
Receive Instructions
M
Moderation Subworkflow
W
When Executed by Another…
N
No Action Taken
S
Schedule Trigger
23 nodes24 edges

Hoe het werkt

  1. 1

    Trigger

    De workflow start met een trigger-trigger.

  2. 2

    Verwerking

    Gegevens stromen door 23 knooppunten, connecting code, discord, executeworkflow.

  3. 3

    Uitvoer

    De workflow voltooit zijn automatisering en levert het resultaat aan de geconfigureerde bestemming.

Knooppuntdetails (23)

DI

Discord

discord

#1
CO

Code

code

#2
OP

OpenAI Chat Model

n8n-nodes-langchain.lmChatOpenAi

#3
TE

Text Classifier

n8n-nodes-langchain.textClassifier

#4

Hoe deze workflow te importeren

  1. 1Klik op de knop JSON downloaden rechts om het workflowbestand op te slaan.
  2. 2Open uw n8n-instantie. Ga naar Workflows → Nieuw → Importeren uit bestand.
  3. 3Selecteer het gedownloade bestand automated-discord-spam-moderation-with-ai-and-human-in-the-loop en klik op Importeren.
  4. 4Stel inloggegevens in voor elk serviceknooppunt (API-sleutels, OAuth, enz.).
  5. 5Klik op Workflow testen om te controleren of alles werkt, activeer het vervolgens.

Of plak rechtstreeks in n8n → Importeren uit JSON:

{ "name": "Automated Discord Spam Moderation with AI and Human-in-the-Loop", "nodes": [...], ...}

Integraties

codediscordexecuteworkflowexecuteworkflowtriggerfilteriflmchatopenaimergeremoveduplicatesscheduletriggersetsplitinbatchessplitoutswitchtextclassifier

Haal deze workflow op

Download en importeer met één klik

JSON downloadenBekijken op n8n.io
Knooppunten23
Complexiteithigh
Triggertrigger
Weergaven831
CategorieMiscellaneous

Gemaakt door

Jimleuk

Jimleuk

@jimleuk

Tags

codediscordexecuteworkflowexecuteworkflowtriggerfilteriflmchatopenaimergeremoveduplicatesscheduletrigger

Nieuw bij n8n?

n8n is een gratis open-source workflow-automatiseringstool. Host het zelf of gebruik de cloudversie.

n8n gratis ophalen →

Related Miscellaneous Workflows