Moderate and govern user content with OpenAI GPT-4o, Slack and Gmail
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects AI Agent, OpenAI Chat Model, Structured Output Parser and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 4 fields: moderationThreshold, escalationEmail, slackChannelId…
- Content Signal Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Content Signal; output parser: Structured Output - Content Signal
- Route by Validation Status (Switch): routes items into 2 branches
- Store Valid Content (Data table): uses Data table
- Governance Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Governance; 3 tools (Review Agent Tool, Appeals Agent Tool, Enforcement Agent Tool); output parser: Structured Output - Governance
- Merge: merges the data from its input branches
- Route by Action Type (Switch): routes items into 2 branches
- Prepare Audit Data (Code): runs custom JavaScript code
- Store Flagged Content (Data table): uses Data table
- Store Enforcement Actions (Data table): uses Data table
…plus 4 more steps. See the full node list below.
Services it uses
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.
Nodes used (13)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code
From the author
How It Works This workflow automates end-to-end AI-driven content moderation for platforms managing user-generated content, including marketplaces, communities, and enterprise systems. It is designed for product, trust & safety, and governance teams seeking…