Templates / Draft dental denial appeal packets from Gmail EOBs with OpenAI and Google Drive

Draft dental denial appeal packets from Gmail EOBs with OpenAI and Google Drive

Needs changes

by Swapnil Mandloi ✓ · 1 views · created 2026-09-11 · Document Extraction, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Google Drive.

How it runs

Trigger: On Gmail events.

  1. Normalize Denial Payload (Edit Fields (Set)): sets 5 fields: patientName, payerName, claimNumber…
  2. Extract Denial Line Items (Information Extractor): extracts structured fields from text with AI, with model: Denial Extraction Model
  3. Split Out: splits a list into separate items
  4. Score Appeal Strategy & Deadline (Code): runs custom JavaScript code
  5. Check Line Item Appealable (If): checks a condition and branches into true / false
  6. Check Filing Deadline Urgency (If): checks a condition and branches into true / false
  7. Tag Non-Appealable Reason (Edit Fields (Set)): sets 2 fields: closeReason, status
  8. Flag Priority Review (Edit Fields (Set)): sets 2 fields: reviewQueue, status
  9. Tag Standard Queue (Edit Fields (Set)): sets 2 fields: reviewQueue, status
  10. Log Non-Appealable Denial (Data table): uses Data table

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

Services it uses

GmailOpenAI Chat ModelGoogle Drive

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Draft Appeal Letter (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Draft Appeal Letter (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (14)

From the author

Quick overview This workflow monitors a Gmail inbox for dental EOB/claim denial emails, uses OpenAI to extract denied procedure line items and draft appeal letters, then saves a combined appeal packet to Google Drive, logs outcomes in n8n Data Tables, updates…

Excerpt from Swapnil Mandloi'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.