Templates / Detect and correct claims cost leakage with GPT-4 and automated alerts

Detect and correct claims cost leakage with GPT-4 and automated alerts

Ready for 3.0

by Cheng Siong Chin ✓ · 42 views · created 2025-12-29 · Document Extraction, 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 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).

  1. Workflow Configuration (Edit Fields (Set)): sets 9 fields: claimsApiUrl, excessivePayoutThreshold, reserveVarianceThreshold…
  2. Fetch Historical Claims Data (HTTP Request): calls an HTTP API
  3. Detect Cost Leakage Anomalies (Code): runs custom JavaScript code
  4. Check If Leakage Detected (If): checks a condition and branches into true / false
  5. AI Root Cause Classifier (AI Agent): runs an AI agent, with model: OpenAI GPT-; 1 tool (Calculator); output parser: Classification Output Parser
  6. Split Anomalies Into Items (Split Out): splits a list into separate items
  7. No Leakage Found (Edit Fields (Set)): sets 3 fields: status, analysisDate, message
  8. Generate Corrective Adjustments (Code): runs custom JavaScript code
  9. Fetch Vendor History (HTTP Request): calls an HTTP API
  10. Fetch Policy Rules (HTTP Request): calls an HTTP API

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

Services it uses

OpenAI Chat ModelPostgres

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)

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,…

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.