Use this powerful n8n workflow to extract complex data directly from PDF files using Anthropic Claude 3.5 Sonnet and Google Gemini 2.0 Flash simultaneously. A great n8n template for comparison.
Download this n8n workflow template and start using it instantly.
Extracting information from PDFs traditionally requires a complex, multi-step process involving OCR (Optical Character Recognition) before sending text to an LLM. This advanced n8n workflow bypasses that by leveraging the native PDF processing capabilities of modern models like Claude 3.5 Sonnet and Gemini 2.0 Flash.
This specific n8n template is designed for comparison: it downloads a specific PDF from Google Drive, defines a single extraction prompt, and sends the document simultaneously to both Anthropic and Google APIs. This allows users of this n8n workflow to quickly evaluate which service delivers the best results, latency, and cost efficiency for their specific data extraction needs. Every step, starting from the n8n trigger, is optimized for binary file handling and LLM communication.
The operation of this n8n workflow begins with the 'When clicking 'Test workflow'' manual n8n trigger.
data property. This base64 string is essential for both the Anthropic and Google APIs to process the document as a native PDF.This entire n8n workflow ensures a direct, efficient path from PDF acquisition to LLM extraction, providing comparative results instantly.
To deploy this powerful n8n workflow, follow these steps:
File ID parameter to point to the specific PDF document you wish to analyze. When clicking 'Test workflow' (Manual Trigger):
Function: Serves as the starting n8n trigger for manual execution. Perfect for testing and development of this n8n workflow.
Key Configuration: Standard manual trigger setup.
Define Prompt (Set n8n node):
Function: Defines the exact textual prompt ('Extract the VAT numbers for each country') that guides both LLMs during the extraction process.
Key Configuration: Creates a property named prompt.
Google Drive (n8n node):
Function: Downloads the specified PDF file from Google Drive using its unique File ID, providing binary data to the next step.
Key Configuration: Operation set to download; requires configuration of the googleDriveOAuth2Api credential.
Extract from File (n8n node):
Function: Converts the binary PDF file output from the previous n8n node into a base64 encoded string, a format required for multimodal API requests.
Key Configuration: Operation set to binaryToPropery.
Call Claude 3.5 Sonnet with PDF Capabilities (HTTP Request n8n node):
Function: Sends the base64 encoded PDF and the prompt to the Anthropic v1/messages endpoint for processing by Claude 3.5 Sonnet.
Key Configuration: Uses a complex JSON body containing the document type content array; configured with the anthropicApi credential. This is a crucial n8n node for advanced file interaction.
Call Gemini 2.0 Flash with PDF Capabilities (HTTP Request n8n node):
Function: Sends the base64 encoded PDF and the prompt to the Google Generative Language API, utilizing the gemini-2.0-flash-exp model for extraction.
Key Configuration: Uses a structured JSON body with inline_data for PDF handling; configured with the googlePalmApi credential.
Use this powerful n8n workflow to automatically extract book titles from bookshelf photos using GPT-4o vision, validate them via Google Books API, and return a clean, verified list. Perfect for building custom library inventory solutions.

This n8n workflow template automatically extracts files from an uploaded ZIP archive using an n8n trigger and uploads all contents individually to Google Drive using core n8n nodes.

Use this powerful n8n workflow to automatically extract TikTok transcripts, translate or summarize them using OpenAI GPT-4, and save the final results directly to Google Docs. Get started with n8n templates today.

Create a robust email scraping API using this powerful n8n workflow. Fetch website content, extract emails via regex, deduplicate results, and respond instantly. Ideal n8n templates for data extraction.

Build a powerful n8n workflow using an AI agent to analyze YouTube comments, video transcripts, and thumbnails. Leverage OpenAI, Apify, and Google APIs for comprehensive content intelligence.

We are a product studio that helps organizations leverage no-code and generative AI to automate internal processes and launch new digital products.







































