Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Google Drive OCR CSV Export
1
Views
0
Downloads
16
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Finance
Automation Orchestrator
n8n
Integrations
OpenRouter
Google Gemini
Google Drive
Google Cloud Vertex AI
Trigger Type
On app event
Approx setup time ≈ 55 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Google Drive OCR CSV Export?

Leon Petrou
FREE TEMPLATE
Automate Google Drive OCR CSV Export
1
Views
0
Downloads
16
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Finance
Automation Orchestrator
n8n
Integrations
OpenRouter
Google Gemini
Google Drive
Google Cloud Vertex AI
Trigger Type
On app event
Approximate setup time ≈ 55 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Stop typing data from statements and receipts by hand. This build watches a Google Drive folder, reads new PDFs or images, and turns them into clean CSV files you can use in accounting tools. It fits teams that process bank statements, invoices, and receipt photos and need fast, accurate data in a spreadsheet format.

A Google Drive event starts the run when a new file appears. The flow checks the file type, then follows the right path. For PDFs, it downloads the file, pulls the text, sends it to an AI model through OpenRouter to structure the data, converts the result to CSV, and saves it back to Drive with a date based name. For images, it downloads the file, uses Vertex AI with a Gemini model to read the text, then converts and uploads a CSV. Both paths produce consistent, ready to analyze data without manual effort.

Setup needs a Google service account with access to the Drive folder, an OpenRouter API key, Google Cloud Vertex AI enabled, and a Gemini API key. Expect less manual entry, faster monthly close, and fewer errors from messy copy and paste. Great for monthly bank statements, photographed receipts from the field, and simple invoice layouts stored in Drive.

Copy link

Tools Required

OpenRouter
Sign up
Free models: $0 via API, 20 requests/min; 50/day or 1000/day with ≥10 credits
n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Google Gemini
Sign up
Free tier: $0 via Gemini API; e.g., Gemini 2.5 Flash-Lite free limits 1,000 requests/day (15 RPM, 250k TPM). Paid from $0.10/1M input tokens and $0.40/1M output tokens.
Google Drive
Sign up
Drive API: $0 (no additional cost; quota-limited)
Google Cloud Vertex AI
Sign up
Pay-as-you-go: Gemini 2.5 Flash Lite – $0.10 per 1M input tokens, $0.40 per 1M output tokens

What this workflow does?

  • Google Drive file created trigger checks a specific folder every minute using a service account
  • Smart routing by file type sends PDFs and images down separate paths for the best results
  • PDF path downloads the file, extracts the text, and uses an AI model via OpenRouter to structure transactions
  • Image path downloads the image and uses Vertex AI with a Gemini model to read and extract text
  • CSV conversion nodes turn structured outputs into clean, ready to use files
  • Uploads finished CSVs back to a Drive folder with a date based file name for easy tracking
  • Secure credentials across nodes including Google service account, HTTP header auth for OpenRouter, and Gemini API key

What are the benefits?

  • Reduce manual data entry from 1 hour to 3 minutes per file
  • Automate up to 90 percent of repetitive extraction work
  • Improve data accuracy by up to 80 percent compared to manual typing
  • Handle 10 times more documents per day with the same team
  • Connect Google Drive with AI services in one reliable flow

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Drive, OpenRouter, Google Cloud Vertex AI and Google Gemini. See the Tools Required section above for links to create accounts with these services.
  3. In Google Cloud, create a service account, enable the Google Drive API, and download the JSON key file. In Google Drive, share the target folder with the service account email so it can read and write files.
  4. In the n8n credentials manager, create a new Google API credential using Service Account and upload the JSON key. Assign this credential to all Google Drive nodes in the workflow.
  5. Open the Google Drive Trigger node and pick the specific folder to watch. Confirm event is file created and polling is every minute.
  6. Open the Switch node and verify rules: equals application/pdf goes to the PDF path and contains image/ goes to the image path.
  7. Open the HTTP Request node labeled Send data to A.I. Create a new credential of type HTTP Header Auth and set Authorization to Bearer YOUR_OPENROUTER_API_KEY. Keep the URL and JSON body as provided.
  8. Get a Google Gemini API key from your Google AI account. In n8n, create a Google Gemini credential and assign it to the Gemini Chat Model node. Ensure the Vertex AI extract node is linked to this LLM.
  9. In your Google Cloud project, enable Vertex AI and grant Vertex AI User roles to the service account used by n8n. In the Vertex AI node, set the correct project and region if fields are available.
  10. Open both Upload to Google Drive nodes and confirm the destination folder and the file name variable. Keep the name set to the current date for easy tracking.
  11. Test the PDF path: upload a bank statement PDF to the watched folder. Confirm a CSV appears in the export folder and check that rows and columns look correct.
  12. Test the image path: upload a clear photo of a receipt. If text is missing, confirm Vertex AI is enabled and the Gemini credential is valid. If the trigger does not fire, make sure the Drive folder is shared with the service account.

Need help or want to customize this?

Similar Templates

n8n
Finance
Automate LINE Payments to Google Sheets
Capture bank slip images sent on LINE, save the file in Google Drive, and log key payment details in Google Sheets. Teams can confirm transfers fast without typing data by hand. Ideal for stores that verify payments before shipping orders. A webhook receives an image from LINE. The flow builds the file URL, downloads the image with secure headers, and uploads it to a set Drive folder with the message id as the file name. An OCR.space request reads Thai text from the slip and returns raw text. Code then pulls fields like amount, fee, date and time, sender name, and receiver bank. The row is appended to a sheet with clean columns for easy review. Setup needs a LINE Messaging API channel, a Google account for Drive and Sheets, and an OCR.space API key. Expect faster checks and fewer mistakes, often cutting slip handling from 15 minutes to 2 minutes per payment. Great for shops that get transfer slips on chat and need a daily payment log with both the image and the parsed data in one place.
1 views
view
n8n
Finance
Automate Gmail Invoice Filing to Google Drive
Turn invoice emails into dated PDFs and file them in the right Google Drive folder without touching a mouse. Built for teams that get billing emails with a link to view the invoice online, this setup keeps finance records tidy and easy to find. A Gmail trigger checks your inbox every minute. A rule keeps only messages that match your sender or subject. The HTML step pulls all links in the email and a split step looks at each link. A filter keeps the invoice link only. A web call sends that link to a PDF service to create a clean PDF. The file is then uploaded to Google Drive, renamed with today’s date, and moved into your chosen folder. Messages that do not match are ignored. You will need Gmail and Google Drive connected in n8n Cloud and an API key for a PDF conversion service. Paste your API key and your Drive folder URL in the setup node. Adjust the match rules to your vendor’s sender or subject. Expect to cut monthly filing from an hour to a few minutes and reduce naming mistakes. This is great for subscription receipts, SaaS invoices, and vendor bills sent as links.
2 views
view
n8n
Finance
Automate LINE to Google Sheets Slip Capture
Collect payment slip data directly from chat and store it in a sheet without manual typing. Users send a message or a slip image in LINE, get an instant reply, and the key fields go into Google Sheets for finance tracking and review. A webhook receives each LINE message and a Switch classifies it as text or image. For text, a chat agent with memory answers the user using Gemini, so the bot remembers the same user across messages. For images, the flow downloads the image from LINE, sends it to Gemini with a clear prompt, and expects JSON with Status, From, To, Date, and Amount. The bot replies to the user in LINE and then writes the slip results to Google Sheets in the same structure. This creates one place to handle both free text and payment slip images. You will need a LINE Messaging API channel, a Google Sheets spreadsheet with the needed columns, and a Google Gemini API key. Teams can cut data entry time and reduce errors from manual reading. Common uses include bank slip verification, expense reviews, and payment confirmations inside chat. Set the sheet columns, connect your credentials, and test with a real slip image to see the record appear in seconds.
12 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.