n8n workflow template · 12 nodes · Google Gemini
Extract text from PDF and image using Vertex AI (Gemini) into CSV is a free n8n workflow template that starts from the Google Drive Trigger node and works with Google Gemini and Google Drive. It has 12 nodes, 2 of them AI nodes (Google Gemini Chat Model and Basic LLM Chain). The notes inside the workflow say: “This workflow will extract text data from PDF and images, then store it as CSV.” To run it, you add your own credentials for Google Gemini (PaLM) API, Google Service Account and HTTP Header Auth.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
This workflow will extract text data from PDF and images, then store it as CSV.
You can read more about this workflow here
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
You need to create a new folder inside Google Drive for uploading your PDF and images.
Once you create a folder, you need to add your Google cloud user by going to Share -> Add user. The user email should be like
We send the photo to Vertex AI to extract text. You'll need to activate Vertex AI and add the correct rights to your Google cloud credentials.
You need to set up an Openrouter account to use this. It sends the data to openrouter to extract text.
Use Header Auth. Name is "Authorization" and value is "Bearer {API token}".
The 12 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us