Templates / Classify and file inbound documents with GPT-4o-mini and Gmail

Classify and file inbound documents with GPT-4o-mini and Gmail

Ready for 3.0

by Kuliberda Labs ✓ · 5 views · created 2026-08-17 · 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 40 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI and Gmail.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Validate Intake Token (Code): runs custom JavaScript code
  2. Find Unsent Document Review Alerts (Data table): get (row)
  3. Intake Authorized? (If): checks a condition and branches into true / false
  4. Build Unsent Document Review Alert (Code): runs custom JavaScript code
  5. Normalize Document Intake (Code): runs custom JavaScript code
  6. Respond Intake Unauthorized (Respond to Webhook): sends the response back to the webhook caller
  7. Send Reconciled Document Review Alert (Gmail): send (message)
  8. Claim Document Key (Code): runs custom JavaScript code
  9. Build Reconciled Document Alert Update (Code): runs custom JavaScript code
  10. Document Claim Duplicate? (If): checks a condition and branches into true / false

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

Services it uses

OpenAIGmail

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 (8)

From the author

Quick overview This workflow receives documents through a token-protected webhook, validates OCR and file metadata, and uses OpenAI to classify and extract key fields. It stores every outcome in an n8n Data Table, records highconfidence results as logically…

Excerpt from Kuliberda Labs'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.