Documents
Transcribe Bank Statements and Extract Deposits
Turn each page of a Google Drive bank statement into Markdown and extract the deposit rows.
ワークフローをダウンロード


Turn each page of a Google Drive bank statement into Markdown and extract the deposit rows.
Setup
- In Download PDF from Drive, connect Google Drive with read access to the uploaded PDF. In the Run panel, enter its file ID and the HTTPS origin of your private or otherwise approved Stirling PDF server.
- Use a Stirling PDF version that supports
/api/v1/analysis/page-countand/api/v1/convert/pdf/img. Bind the STIRLING_API_KEY Secret Variable in Count the PDF pages and Render one page as JPEG. Keep the server reachable from your workflow deployment. Stirling PDF API - Bind the GEMINI_API_KEY Secret Variable in Transcribe page to Markdown and Extract deposit rows. Use a Gemini project approved to receive the statement. The workflow sends page images and transcribed text to Gemini 3.6 Flash. Gemini model capabilities
Behavior
Stirling PDF counts the pages of the downloaded file. Open Flow sends that same PDF back to Stirling for each page it renders as a 300 DPI JPEG. Gemini transcribes each image to Markdown. The final model request uses all page transcripts in order and returns deposit rows with date, description and numeric amount. The workflow returns both the ordered Markdown pages and the deposit rows.
Use an unencrypted PDF of 1–25 pages and up to 10 MiB. Each rendered JPEG must fit within 2 MiB. A failed page, incomplete model response or page marked unreadable stops the workflow before deposit extraction. A successful run can still contain transcription errors. Check the rows against the statement before using them for reconciliation. Restrict access to run results because they contain the statement text.
In n8n
Set the PDF file ID and approved Stirling HTTPS origin in Set PDF and Stirling origin. Add a Google Drive OAuth2 credential in Download PDF from Drive. Add a Header Auth credential named X-API-KEY with your Stirling key in Count the PDF pages and Render the pages as JPEGs. Add a separate Header Auth credential named x-goog-api-key with your Gemini key in Transcribe page to Markdown and Extract deposit rows.
The n8n workflow reads the ZIP of 300 DPI JPEGs from Stirling and verifies that every page is present before calling Gemini. Run manually and read both results in Verify the deposits. The workflow disables saving execution data.
Inspiration & credits
Changes to the source
Verify the page count before transcription, keep page order numeric, and use the original-resolution JPEGs without an additional resize. Show the Markdown transcript alongside the extracted deposits and use the current Gemini model.
Adapted from Transcribing bank statements to markdown using Gemini Vision AI in enescingoz/awesome-n8n-templates.
Source collection notice: © 2024–2026 Enes Cingoz, CC BY 4.0. Original n8n workflow by Jimleuk. See repository licensing for the scope of OOMOL contributions and third-party material.