Automated PDF Image Extraction and AI Analysis Workflow

somdn_product_page

This n8n workflow automates the process of extracting images from PDF files stored in Google Drive, analyzing each image using GPT-4 via OpenAI, and compiling the analysis into a text document. The workflow is triggered manually, but can be adapted to other triggers like Google Drive updates. It begins by downloading a specified PDF from Google Drive and extracting all images from it through ConvertAPI. Each image URL is then sent to OpenAI’s GPT-4 model for detailed analysis. The analysis results, along with image URLs, are collected, merged into a single content block, and saved as a .txt file. This workflow is ideal for automating visual content review, generating insights from PDF images, or preparing image analysis reports without manual effort.

Node Count

11 – 20 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.openAi, code, convertToFile, googleDrive, httpRequest, manualTrigger, set, splitOut, stickyNote