Automate PDF image extraction & analysis with GPT-4o and Google Drive
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive and OpenAI. It also calls v2.convertapi.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get pdf file (Google Drive): download
- Extract pdf image (HTTP Request): calls v2.convertapi.com (POST)
- Get image data (Split Out): splits a list into separate items
- Get all img_url (Edit Fields (Set)): sets 1 field: url
- Analyze image (OpenAI): analyze (image)
- Get image analyze content (Edit Fields (Set)): sets 1 field: content
- Integrate all content to a a content (Code): runs custom JavaScript code
- Output content to a .txt file (Convert to File): converts data to a file (to text)
Services it uses
HTTP calls to: v2.convertapi.com
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 (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Drive
n8n-nodes-base.googleDrive - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Code
n8n-nodes-base.code - Convert to File
n8n-nodes-base.convertToFile
From the author
Use Case Manually extracting images from PDF files for analysis is often slow and inefficient. Many users resort to taking screenshots of each page, uploading them to an AI tool like OpenAI for image analysis, and then manually copying the insights into a…