Automated financial document processing with Google Gemini OCR
Needs changesWhat this workflow does
This AI workflow has 35 nodes and runs when another workflow calls it (plus 3 other triggers). Along the way it connects Google Sheets, Google Drive and OpenRouter Chat Model. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When another workflow calls it (plus 3 other triggers).
- AI Agent: runs an AI agent, with model: OpenRouter Chat Model; 3 tools (Expenses, Invoices, Transactions)
- Google Drive: download
- Google Drive: download
- Upload PDF to Google Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Save Invoice (Google Drive): uses Google Drive
- Edit Fields (Edit Fields (Set)): sets 1 field: Response
- Upload PDF to Google Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Upload PDF to Google Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Download Data from Google Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Merge: merges the data from its input branches
…plus 15 more steps. See the full node list below.
Services it uses
HTTP calls to: generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (15)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Merge
n8n-nodes-base.merge - Google Drive
n8n-nodes-base.googleDrive - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Sheets Tool
n8n-nodes-base.googleSheetsTool
From the author
AI-Powered Financial Document Processing with Google Gemini This comprehensive workflow automates the complete financial document processing pipeline using AI. Upload invoices via chat, drop expense receipts into a folder, or add bank statements - the system…