Templates / Auto-extract & approve invoices with OpenAI, Jotform - fraud detection

Auto-extract & approve invoices with OpenAI, Jotform - fraud detection

Ready for 3.0

by Jitesh Dugar ✓ · 292 views · created 2025-10-09 · Invoice Processing, 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 17 nodes and runs on Jotform events. Along the way it connects OpenAI, OpenAI Chat Model, Gmail and Google Sheets and 3 more.

How it runs

Trigger: On Jotform events.

  1. Has Invoice Attachment? (If): checks a condition and branches into true / false
  2. Extract Invoice Attachments (Code): runs custom JavaScript code
  3. AI Invoice OCR & Extraction (OpenAI): uses OpenAI
  4. Parse Invoice Data (Code): runs custom JavaScript code
  5. AI Fraud Detection Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  6. Critical Fraud Risk? (If): checks a condition and branches into true / false
  7. Auto-Approve Eligible? (If): checks a condition and branches into true / false
  8. Send a message (Slack): uses Slack
  9. Amount > $5000? (If): checks a condition and branches into true / false
  10. Update an invoice (QuickBooks Online): update (invoice)

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

Services it uses

OpenAIOpenAI Chat ModelGmailGoogle SheetsSlackQuickBooks OnlineJot Form

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

From the author

Transform accounts payable from a manual bottleneck into an intelligent, automated system that reads invoices, detects fraud, and processes payments automatically—saving 20+ hours per week while preventing costly fraudulent payments. 🎯 What This Workflow…

Excerpt from Jitesh Dugar'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.