Automated Discord Spam Moderation with AI and Human-in-the-Loop — n8n ワークフロー

複雑度 トリガー23個のノード🏷️ Miscellaneous👁 831回閲覧作成者:Jimleuk

概要

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'

使用ノード

DiscordCodeOpenAI Chat ModelText Classifier

ワークフロープレビュー

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

仕組み

  1. 1

    トリガー

    このワークフローは トリガー トリガーで開始します。

  2. 2

    処理

    データは 23 個のノードを流れます, connecting code, discord, executeworkflow。

  3. 3

    出力

    ワークフローは自動化を完了し、設定された宛先に結果を配信します。

ノード詳細 (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

このワークフローのインポート方法

  1. 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
  2. 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
  3. 3ダウンロードした automated-discord-spam-moderation-with-ai-and-human-in-the-loop ファイルを選択し、インポートをクリックします。
  4. 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
  5. 5ワークフローをテスト をクリックして動作確認し、有効化します。

またはn8nの JSONからインポート に直接貼り付け:

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

インテグレーション

codediscordexecuteworkflowexecuteworkflowtriggerfilteriflmchatopenaimergeremoveduplicatesscheduletriggersetsplitinbatchessplitoutswitchtextclassifier

このワークフローを取得

ワンクリックでダウンロード&インポート

JSONをダウンロードn8n.ioで見る
ノード23
複雑度high
トリガーtrigger
閲覧数831
カテゴリMiscellaneous

作成者

Jimleuk

Jimleuk

@jimleuk

タグ

codediscordexecuteworkflowexecuteworkflowtriggerfilteriflmchatopenaimergeremoveduplicatesscheduletrigger

n8n初めてですか?

n8nは無料のオープンソースワークフロー自動化ツールです。セルフホストまたはクラウド版をご利用いただけます。

n8nを無料で始める →

Related Miscellaneous Workflows