Auto-extract & approve invoices with OpenAI, Jotform - fraud detection
Ready for 3.0What 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.
- Has Invoice Attachment? (If): checks a condition and branches into true / false
- Extract Invoice Attachments (Code): runs custom JavaScript code
- AI Invoice OCR & Extraction (OpenAI): uses OpenAI
- Parse Invoice Data (Code): runs custom JavaScript code
- AI Fraud Detection Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Critical Fraud Risk? (If): checks a condition and branches into true / false
- Auto-Approve Eligible? (If): checks a condition and branches into true / false
- Send a message (Slack): uses Slack
- Amount > $5000? (If): checks a condition and branches into true / false
- Update an invoice (QuickBooks Online): update (invoice)
…plus 4 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 (11)
- If
n8n-nodes-base.if - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack - QuickBooks Online
n8n-nodes-base.quickbooks - Jotform Trigger
n8n-nodes-base.jotFormTrigger
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…