← All N8N workflows
AI & researchCodeConvert To FileGoogle DriveHTTP RequestManual Trigger

Automate PDF Image Extraction & Analysis with GPT-4o and Google Drive

Configured with Convert To File, Google Drive, HTTP Request, Open Ai, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking ‘Testworkflow’Manual TriggerFiles / mediaGet pdf fileGoogle DriveTransformGet all img_urlEdit FieldsAI & modelsAnalyze imageOpen AiWeb / APIExtract pdf imageHTTP RequestTransformGet image dataSplit OutTransformGet image analyzecontentEdit FieldsCodeIntegrate all contentto a a contentCodeTransformOutput content to a.txt fileConvert To File

Node categories in this workflow

  • Trigger
  • Files / media
  • Transform
  • AI & models
  • Web / API
  • Code

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
Get pdf fileFiles / mediaGoogle Drivedownload
Get all img_urlTransformEdit FieldsSee node parameters
Analyze imageAI & modelsOpen Aiimage / analyze
Extract pdf imageWeb / APIHTTP RequestPOST
Get image dataTransformSplit OutSee node parameters
Get image analyze contentTransformEdit FieldsSee node parameters
Integrate all content to a a contentCodeCodeSee node parameters
Output content to a .txt fileTransformConvert To FiletoText

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleDriveOAuth2Api
  • httpHeaderAuth
  • openAiApi

Workflow notes

Setup

Setup

1.Set up your credentials when you first open the workflow. You’ll need accounts for OpenAI, Convert API, and Google Drive. 2.Convert API does not rate-limit your API, sometimes you may receive 503 service unavailable error. Nevertheless, it doesn’t mean that you cannot convert your file. It simply means that you should retry the conversion in a few seconds. 3.Upload a PDF with images to Google Drive. 4.Remove unnecessary parts and retrieve image-related information. 5.Integrate image and image analysis information together. 6.Analyze each image using the OPENAI GPT-4o model. 7.Retrieve all image analysis content and image URL 8.Integrate multiple image URLs and analysis content 9.Output content to a .txt file.

Template was created in n8n v1.83.2

PDF Image Extraction and Analysis with GPT-4o

PDF Image Extraction and Analysis with GPT-4o

This n8n workflow automates the process of extracting images from PDF files and analyzing them with AI, then compiling the results into a document.

Automate PDF Image Extraction & Analysis with GPT-4o and Google Drive

Automate PDF Image Extraction & Analysis with GPT-4o and Google Drive

Purpose and structure

This folder contains the Automate PDF Image Extraction & Analysis with GPT-4o and Google Drive workflow. Its executable nodes use code, convertToFile, googleDrive, httpRequest, manualTrigger, openAi, set, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking ‘Test workflow’

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/1559_Splitout_Code_Automate_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • You can exchange this with any trigger you like (*e.g. google drive trigger*)

More in AI & research