Approve invoices with Claude vision, Google Drive, and Google Sheets
Ready for 3.0What this workflow does
This workflow has 28 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects Google Drive and Google Sheets. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: On Google Drive events (file created) (plus 1 other trigger).
- Download Invoice from Drive (Google Drive): download
- Set Configuration Parameters (Edit Fields (Set)): sets 7 fields: approvalThreshold, anthropicModel, notifyWebhookUrl…
- Extract Base64 from Binary (Code): runs custom JavaScript code
- Normalize Invoice Data (Code): runs custom JavaScript code
- Prepare Vision API Request (Code): runs custom JavaScript code
- Post to Anthropic Vision API (HTTP Request): calls api.anthropic.com (POST)
- Parse Vision API Response (Code): runs custom JavaScript code
- Perform Arithmetic Check (Code): runs custom JavaScript code
- Read Sheets for Duplicates (Google Sheets): uses Google Sheets
- Check for Invoice Duplicates (Code): runs custom JavaScript code
…plus 16 more steps. See the full node list below.
Services it uses
HTTP calls to: api.anthropic.com
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)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow watches a Google Drive folder for new invoices, extracts invoice fields with Anthropic Claude vision, validates totals and checks for duplicates in Google Sheets, then auto-approves low-risk invoices or pauses for human approval…