Route revenue transactions and assess AI outputs with Anthropic Claude and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 30 nodes and runs on a schedule (every day at 09:00). Along the way it connects Anthropic Chat Model.
How it runs
Trigger: On a schedule (every day at 09:00).
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: revenueThreshold, highRiskThreshold, complianceRegion…
- Generate Sample Revenue Data (Code): runs custom JavaScript code
- Revenue Signal Agent (AI Agent): runs an AI agent, with model: Anthropic Model - Revenue Agent; output parser: Revenue Validation Output Parser
- Route by Validation Status (Switch): routes items into 2 branches
- Governance Agent (AI Agent): runs an AI agent, with model: Anthropic Model - Governance Agent; 4 tools (Tax Calculation Tool, Risk Assessment Agent Tool, Compliance Check Agent Tool, Payout Calculation Agent Tool); output parser: Governance Output Parser
- Store Failed Validations (Data table): uses Data table
- Route by Risk Level (Switch): routes items into 2 branches
- Merge: merges the data from its input branches
- Store Approved Transactions (Data table): uses Data table
- Store High Risk Transactions (Data table): uses Data table
…plus 3 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 (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Data table
n8n-nodes-base.dataTable - Aggregate
n8n-nodes-base.aggregate - Merge
n8n-nodes-base.merge
From the author
How It Works This workflow automates intelligent routing of user queries to optimal AI models (Anthropic, OpenAI) based on complexity analysis, then validates outputs through multi-stage quality assessment. Designed for teams managing high-volume AI…