Verify receipts and invoices with OpenAI vision, Slack and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Slack, Google Sheets and OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Normalize Input (Code): runs custom JavaScript code
- Alert Engineering (Slack): uses Slack
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- Parse Extraction (Code): runs custom JavaScript code
- Build Error Verdict (Code): runs custom JavaScript code
- Validate Against Booking (Code): runs custom JavaScript code
- Record Result (Google Sheets): append
- Auto Approve? (If): checks a condition and branches into true / false
- Respond (Respond to Webhook): sends the response back to the webhook caller
- Flag For Review (Slack): uses Slack
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 (9)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook - Error Trigger
n8n-nodes-base.errorTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Quick Overview This workflow receives receipt or invoice image URLs via a webhook, uses OpenAI Vision to extract structured totals and currency, validates them against expected booking values, logs the result to Google Sheets, and posts non-approved cases to…