Moderate user content and route governance decisions with Claude and APIs
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Anthropic Chat Model and HTTP Request.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 6 fields: toxicityThreshold, spamThreshold, engagementAnomalyThreshold…
- Content Validation Agent (AI Agent): runs an AI agent, with model: Claude Model - Content Validation; output parser: Content Validation Output Parser
- Governance Orchestration Agent (AI Agent): runs an AI agent, with model: Claude Model - Governance Orchestration; 2 tools (Enforcement API Tool, Monetization API Tool); output parser: Governance Decision Output Parser
- Route by Severity (Switch): routes items into 3 branches
- Merge: merges the data from its input branches
- Check Human Review Required (If): checks a condition and branches into true / false
- Prepare Audit Record (Edit Fields (Set)): sets 6 fields: auditTimestamp, contentId, validationResults…
- Notify Human Moderators (HTTP Request): calls an HTTP API (POST)
- Audit Log Storage (Data table): create or update
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 (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Http Request Tool
n8n-nodes-base.httpRequestTool - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Data table
n8n-nodes-base.dataTable
From the author
How It Works This workflow automates intelligent content moderation and governance enforcement through multi-model AI validation. Designed for social media platforms, online communities, and user-generated content platforms, it solves the critical challenge…