Orchestrate AI risk analysis and severity-based routing with Anthropic and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Anthropic Chat Model and OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 4 fields: max_http_requests, compliance_standards, severity_threshold…
- Engineering Orchestration Agent (AI Agent): runs an AI agent, with model: Anthropic Chat Model; 2 tools (Risk Analysis Agent Tool, Compliance Verification Agent Tool); output parser: Structured Output Parser
- Calculate Risk Score (Code): runs custom JavaScript code
- Fetch Historical Data (HTTP Request): calls an HTTP API
- Route by Severity (Switch): routes items into 3 branches
- Enrich Critical Issues (Code): runs custom JavaScript code
- Process High Severity (Edit Fields (Set)): sets 3 fields: high_priority_flag, review_deadline, assigned_reviewer
- Merge: merges the data from its input branches
- Aggregate: combines items into one
- Prepare Final Report (Edit Fields (Set)): sets 4 fields: report_generated_at, total_issues_count, workflow_execution_id…
…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 (14)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - Wait
n8n-nodes-base.wait
From the author
How It Works This workflow automates complex data engineering operations by orchestrating multiple specialized AI agents to analyze datasets, calculate risk metrics, and route findings based on severity levels. Designed for data engineers, analytics teams,…