Detect and correct claims cost leakage with GPT-4 and automated alerts
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs on a schedule (every day at 02:00). Along the way it connects OpenAI Chat Model and Postgres.
How it runs
Trigger: On a schedule (every day at 02:00).
- Workflow Configuration (Edit Fields (Set)): sets 9 fields: claimsApiUrl, excessivePayoutThreshold, reserveVarianceThreshold…
- Fetch Historical Claims Data (HTTP Request): calls an HTTP API
- Detect Cost Leakage Anomalies (Code): runs custom JavaScript code
- Check If Leakage Detected (If): checks a condition and branches into true / false
- AI Root Cause Classifier (AI Agent): runs an AI agent, with model: OpenAI GPT-; 1 tool (Calculator); output parser: Classification Output Parser
- Split Anomalies Into Items (Split Out): splits a list into separate items
- No Leakage Found (Edit Fields (Set)): sets 3 fields: status, analysisDate, message
- Generate Corrective Adjustments (Code): runs custom JavaScript code
- Fetch Vendor History (HTTP Request): calls an HTTP API
- Fetch Policy Rules (HTTP Request): calls an HTTP API
…plus 9 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 (15)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Aggregate
n8n-nodes-base.aggregate - Send Email
n8n-nodes-base.emailSend - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - Postgres
n8n-nodes-base.postgres - Calculator
@n8n/n8n-nodes-langchain.toolCalculator
From the author
How It Works This workflow automates enterprise claims cost leakage detection by identifying overpayments, policy deviations, and pricing inconsistencies across claims data. It supports claims operations, finance, and audit teams by providing continuous,…