Import reconciled bank statements into Google Sheets with Google Drive and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs on Google Drive events. Along the way it connects Google Drive, OpenAI Chat Model, Google Sheets and Gmail.
How it runs
Trigger: On Google Drive events.
- Download the Statement (Google Drive): uses Google Drive
- Is It a PDF? (If): checks a condition and branches into true / false
- Extract the PDF Text (Extract from File): extracts data from a file
- Read the CSV as Text (Extract from File): extracts data from a file
- Extract It With AI (Basic LLM Chain): sends a prompt to an LLM, with model: Statement Reader Model
- Check the Balances Reconcile (Code): runs custom JavaScript code
- Do the Balances Add Up? (If): checks a condition and branches into true / false
- Read Your Category Rules (Google Sheets): uses Google Sheets
- Log the Refused Statement (Google Sheets): uses Google Sheets
- Read Already Imported Transactions (Google Sheets): uses Google Sheets
…plus 5 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Split Out
n8n-nodes-base.splitOut
From the author
Quick overview This workflow watches a Google Drive folder for new bank-statement PDFs or CSVs, extracts transactions with OpenAI, reconciles opening/closing balances, and appends only new (non-duplicate) transactions to Google Sheets with rule-based…