Detect financial anomalies and reconcile revenue with GPT-4o and API integrations
Ready for 3.0Ready 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 16 nodes and runs on a schedule (every month at 02:00). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: On a schedule (every month at 02:00).
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: financialApiUrl, revenueSystemApiUrl, taxAgentApiUrl…
- Fetch Financial Transactions (HTTP Request): calls an HTTP API
- Anomaly Detection Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Anomaly Detector; 3 tools (Calculator, Verification Agent Tool, Historical Pattern Analysis Tool); output parser: Anomaly Detection Output Parser
- Check for Anomalies (If): checks a condition and branches into true / false
- Prepare Revenue Adjustments (Edit Fields (Set)): sets 1 field: adjustments
- Send Anomaly Alert (Send Email): sends an email over SMTP
- Update Revenue Entries (HTTP Request): calls an HTTP API (POST)
- Notify Tax Agent (HTTP Request): calls an HTTP API (POST)
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Code Tool
@n8n/n8n-nodes-langchain.toolCode - AI Agent
@n8n/n8n-nodes-langchain.agent - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend
From the author
How It Works This workflow automates financial oversight for accounting teams, tax professionals, and financial controllers managing monthly transaction volumes. It solves the challenge of identifying and correcting revenue discrepancies, tax calculation…