Transcribing bank statements to markdown using Gemini Vision AI
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model and Google Drive. It also calls stirling-pdf:8080 over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get Bank Statement (Google Drive): download
- Split PDF into Images (HTTP Request): calls stirling-pdf:8080 (POST)
- Extract Zip File (Compression): uses Compression
- Images To List (Code): runs custom JavaScript code
- Sort: sorts the items
- Resize Images For AI (Edit Image): resize
- Transcribe to Markdown (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- Combine All Pages (Aggregate): combines items into one
- Extract All Deposit Table Rows (Information Extractor): extracts structured fields from text with AI, with model: Google Gemini Chat Model
Services it uses
HTTP calls to: stirling-pdf:8080
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)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Sort
n8n-nodes-base.sort - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest - Compression
n8n-nodes-base.compression - Code
n8n-nodes-base.code - Edit Image
n8n-nodes-base.editImage - Aggregate
n8n-nodes-base.aggregate - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
From the author
This n8n workflow demonstrates an approach to parsing bank statement PDFs with multimodal LLMs as an alternative to traditional OCR. This allows for much more accurate data extraction from the document especially when it comes to tables and complex layouts.…