Automate tax compliance validation with OpenAI anomaly detection & accounting integration
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 17 nodes and runs on a schedule (every week at 09:00). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (every week at 09:00).
- Workflow Configuration (Edit Fields (Set)): sets 4 fields: revenueApiUrl, accountingSoftwareApiUrl, taxAgentEmail…
- Fetch Revenue Data (HTTP Request): calls an HTTP API
- Tax Categorization Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Categorization; output parser: Categorization Output Schema
- Anomaly Detection Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Anomaly Detection; output parser: Anomaly Detection Output Schema
- Check for Anomalies (If): checks a condition and branches into true / false
- Correction Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Correction; output parser: Correction Output Schema
- Aggregate: combines items into one
- Sync to Accounting Software (HTTP Request): calls an HTTP API (POST)
- Generate Compliance Summary (Code): runs custom JavaScript code
- Send Summary to Tax Agent (Gmail): uses Gmail
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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail
From the author
How It Works Automates revenue data validation and intelligent anomaly detection with scheduled weekly processing. Fetches revenue data, applies dual OpenAI models for categorization and anomaly detection, identifies outliers or suspicious patterns, and…