Extract and process information directly from PDF using Claude and Gemini
Ready for 3.0What this workflow does
This workflow has 6 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive. It also calls api.anthropic.com and generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Define Prompt (Edit Fields (Set)): sets 1 field: prompt
- Google Drive: download
- Extract from File: extracts data from a file (binary to propery)
- Call Claude 3.5 Sonnet with PDF Capabilities (HTTP Request): calls api.anthropic.com (POST)
- Call Gemini 2.0 Flash with PDF Capabilities (HTTP Request): calls generativelanguage.googleapis.com (POST)
Services it uses
HTTP calls to: api.anthropic.com, generativelanguage.googleapis.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 (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Extract from File
n8n-nodes-base.extractFromFile - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set
From the author
Overview - This workflow helps you compare Claude 3.5 Sonnet and Gemini 2.0 Flash when extracting data from a PDF - This workflow extracts and processes the data within a PDF in one single step, instead of calling an OCR and then an LLM” How it works - The…