Templates / Route revenue transactions and assess AI outputs with Anthropic Claude and OpenAI

Route revenue transactions and assess AI outputs with Anthropic Claude and OpenAI

Ready for 3.0

by Cheng Siong Chin ✓ · 49 views · created 2026-02-12 · Engineering, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Workflow Configuration (Edit Fields (Set)): sets 5 fields: revenueThreshold, highRiskThreshold, complianceRegion…
  2. Generate Sample Revenue Data (Code): runs custom JavaScript code
  3. Revenue Signal Agent (AI Agent): runs an AI agent, with model: Anthropic Model - Revenue Agent; output parser: Revenue Validation Output Parser
  4. Route by Validation Status (Switch): routes items into 2 branches
  5. 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
  6. Store Failed Validations (Data table): uses Data table
  7. Route by Risk Level (Switch): routes items into 2 branches
  8. Merge: merges the data from its input branches
  9. Store Approved Transactions (Data table): uses Data table
  10. Store High Risk Transactions (Data table): uses Data table

…plus 3 more steps. See the full node list below.

Services it uses

Anthropic Chat Model

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)

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…

Excerpt from Cheng Siong Chin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.