This workflow follows the Google Drive → HTTP Request recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"nodes": [
{
"id": "b6cd232e-e82e-457b-9f03-c010b3eba148",
"name": "When clicking 'Test workflow'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-40,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2b734806-e3c0-4552-a491-54ca846ed3ac",
"name": "Extract from File",
"type": "n8n-nodes-base.extractFromFile",
"position": [
620,
0
],
"parameters": {
"options": {},
"operation": "binaryToPropery"
},
"typeVersion": 1
},
{
"id": "2c199499-cc4f-405c-8560-765500b7acba",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
420,
0
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "list",
"value": "18Ac2xorxirIBm9FNFDDB5aVUSPBCCg1U",
"cachedResultUrl": "https://drive.google.com/file/d/18Ac2xorxirIBm9FNFDDB5aVUSPBCCg1U/view?usp=drivesdk",
"cachedResultName": "Invoice-798FE2FA-0004.pdf"
},
"options": {},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
},
"typeVersion": 3
},
{
"id": "e3031c0c-f059-4f30-9684-10014a277d55",
"name": "Call Gemini 2.0 Flash with PDF Capabilities",
"type": "n8n-nodes-base.httpRequest",
"position": [
880,
220
],
"parameters": {
"url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp:generateContent",
"method": "POST",
"options": {},
"jsonBody": "={\n \"contents\": [\n {\n \"parts\": [\n {\n \"inline_data\": {\n \"mime_type\": \"application/pdf\",\n \"data\": \"{{ $json.data }}\"\n }\n },\n {\n \"text\": \"{{ $('Define Prompt').item.json.prompt }}\"\n }\n ]\n }\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "googlePalmApi"
},
"credentials": {
"anthropicApi": {
"name": "<your credential>"
},
"googlePalmApi": {
"name": "<your credential>"
}
},
"typeVersion": 4.2
},
{
"id": "135df716-32a1-47e8-9ed8-30c830b803d6",
"name": "Call Claude 3.5 Sonnet with PDF Capabilities",
"type": "n8n-nodes-base.httpRequest",
"position": [
880,
-140
],
"parameters": {
"url": "https://api.anthropic.com/v1/messages",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"claude-3-5-sonnet-20241022\",\n \"max_tokens\": 1024,\n \"messages\": [{\n \"role\": \"user\",\n \"content\": [{\n \"type\": \"document\",\n \"source\": {\n \"type\": \"base64\",\n \"media_type\": \"application/pdf\",\n \"data\": \"{{$json.data}}\"\n }\n },\n {\n \"type\": \"text\",\n \"text\": \"{{ $('Define Prompt').item.json.prompt }}\"\n }]\n }]\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "anthropic-version",
"value": "2023-06-01"
},
{
"name": "content-type",
"value": "application/json"
}
]
},
"nodeCredentialType": "anthropicApi"
},
"credentials": {
"anthropicApi": {
"name": "<your credential>"
}
},
"typeVersion": 4.2
},
{
"id": "5b8994d1-4bfd-4776-84ac-b3141aca6378",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-700,
-280
],
"parameters": {
"color": 7,
"width": 601,
"height": 585,
"content": "## \uc6cc\ud06c\ud50c\ub85c\uc6b0: Claude 3.5 Sonnet \ub610\ub294 Gemini 2.0 Flash\ub97c \uc0ac\uc6a9\ud55c PDF \ub370\uc774\ud130 \ucd94\ucd9c\n\n**\uac1c\uc694** \n- \uc774 \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub294 PDF\uc5d0\uc11c \ub370\uc774\ud130\ub97c \ucd94\ucd9c\ud560 \ub54c Claude 3.5 Sonnet\uacfc Gemini 2.0 Flash\ub97c \ube44\uad50\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4. \n- \uc774 \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub294 PDF \ub0b4 \ub370\uc774\ud130\ub97c **\ud55c \ubc88\uc758 \ub2e8\uacc4**\ub85c \ucd94\ucd9c\ud558\uace0 \ucc98\ub9ac\ud558\uba70, **OCR\uc744 \ud638\ucd9c\ud55c \ud6c4 LLM\uc744 \ud638\ucd9c\ud558\ub294 \ub300\uc2e0** \uc218\ud589\ub429\ub2c8\ub2e4.\n\n**\uc791\ub3d9 \ubc29\uc2dd** \n- \ucd08\uae30 2\ub2e8\uacc4\uc5d0\uc11c PDF\ub97c \ub2e4\uc6b4\ub85c\ub4dc\ud558\uace0 base64\ub85c \ubcc0\ud658\ud569\ub2c8\ub2e4. \n- \uc774 base64 \ubb38\uc790\uc5f4\uc744 Claude 3.5 Sonnet\uacfc Gemini 2.0 Flash\uc5d0 \uc804\uc1a1\ud558\uc5ec \uc815\ubcf4\ub97c \ucd94\ucd9c\ud569\ub2c8\ub2e4. \n- \uc774 \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub294 \uacb0\uacfc\ub97c \ube44\uad50\ud558\uace0, \ub300\uc2dc\ubcf4\ub4dc\uc5d0\uc11c \ub300\uae30 \uc2dc\uac04\uacfc \ube44\uc6a9\uc744 \ube44\uad50\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4.\n\n**\uc0ac\uc6a9 \ubc29\ubc95** \n- Google Drive\ub97c \uc544\uc9c1 \uc124\uc815\ud558\uc9c0 \uc54a\uc558\ub2e4\uba74 \uc124\uc815\ud569\ub2c8\ub2e4. \n- Google Drive\uc5d0\uc11c \ubb38\uc11c\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4. \n- \"Define Prompt\"\uc5d0\uc11c \ud544\uc694\ud55c \uc815\ubcf4\ub97c \ucd94\ucd9c\ud558\uace0 \uc6d0\ud558\ub294 \ub300\ub85c \ubcc0\ud658\ud560 \uc218 \uc788\ub3c4\ub85d \ud504\ub86c\ud504\ud2b8\ub97c \uc218\uc815\ud569\ub2c8\ub2e4. \n- [Claude API \ud0a4](https://console.anthropic.com/settings/keys)\ub97c \uc5bb\uac70\ub098 [Gemini API \ud0a4](https://aistudio.google.com/app/apikey)\ub97c \uc5bb\uc2b5\ub2c8\ub2e4. \n- \uc6d0\ud558\uc9c0 \uc54a\uc73c\uba74 \ub450 API \ud638\ucd9c \uc911 \ud558\ub098\ub97c \ube44\ud65c\uc131\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \n- \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub97c \ud14c\uc2a4\ud2b8\ud569\ub2c8\ub2e4."
},
"typeVersion": 1
},
{
"id": "616241a9-6199-406b-88dc-0afc7d974250",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
820,
60
],
"parameters": {
"color": 5,
"width": 320,
"height": 360,
"content": "\uacb0\uacfc\ub97c JSON\uc73c\ub85c \ucd9c\ub825\ud558\ub824\uba74 \ub2e4\uc74c\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4: \n\"generationConfig\": { \n \"responseMimeType\": \"application/json\" \n} \n\ub610\ub294 \uad6c\uc870\ud654\ub41c \ucd9c\ub825\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \n[\ubb38\uc11c \ud655\uc778](https://ai.google.dev/gemini-api/docs/structured-output?lang=rest)"
},
"typeVersion": 1
},
{
"id": "bbac8d3d-d68f-4aa2-a41a-b06f7de2317b",
"name": "Define Prompt",
"type": "n8n-nodes-base.set",
"position": [
180,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "dba23ef5-95df-496a-8e24-c7c1544533d2",
"name": "prompt",
"type": "string",
"value": "Extract the VAT numbers for each country"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "3c2e7265-76e5-4911-a950-7e6b0c89ec5a",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
820,
-200
],
"parameters": {
"color": 5,
"width": 320,
"height": 240,
"content": "Claude\uac00 JSON \ucd9c\ub825\uc744 \uac15\uc81c\ud558\uae30 \uc704\ud574 [Prefill response format](https://docs.anthropic.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#prefill-claudes-response)\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."
},
"typeVersion": 1
},
{
"id": "f2b46305-5200-486e-ad4d-ecc0d2a14314",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
-120
],
"parameters": {
"color": 5,
"width": 380,
"height": 280,
"content": "\uc774 \ub450 \ub2e8\uacc4\ub294 \uba3c\uc800 PDF \ud30c\uc77c\uc744 \ub2e4\uc6b4\ub85c\ub4dc\ud55c \ud6c4, \uc774\ub97c base64\ub85c \ubcc0\ud658\ud569\ub2c8\ub2e4. \uc774\ub294 \ub450 API\uac00 \ud30c\uc77c\uc744 \ucc98\ub9ac\ud558\uae30 \uc704\ud574 \ud544\uc694\ud569\ub2c8\ub2e4."
},
"typeVersion": 1
},
{
"id": "e5dff70f-b55a-4c23-9025-765a7cf19c4a",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
-120
],
"parameters": {
"color": 5,
"width": 220,
"height": 280,
"content": "\uc774 \ud504\ub86c\ud504\ud2b8\ub294 Gemini\uc640 Claude\uc758 \ud638\ucd9c\uc5d0\uc11c \ubaa8\ub450 \uc0ac\uc6a9\ub418\uc5b4 \ucd94\ucd9c \ubc0f \ucc98\ub9ac\ud560 \uc815\ubcf4\ub97c \uc815\uc758\ud569\ub2c8\ub2e4."
},
"typeVersion": 1
}
],
"connections": {
"Google Drive": {
"main": [
[
{
"node": "Extract from File",
"type": "main",
"index": 0
}
]
]
},
"Define Prompt": {
"main": [
[
{
"node": "Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Extract from File": {
"main": [
[
{
"node": "Call Claude 3.5 Sonnet with PDF Capabilities",
"type": "main",
"index": 0
},
{
"node": "Call Gemini 2.0 Flash with PDF Capabilities",
"type": "main",
"index": 0
}
]
]
},
"When clicking 'Test workflow'": {
"main": [
[
{
"node": "Define Prompt",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
anthropicApigoogleDriveOAuth2ApigooglePalmApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
2764. Uses googleDrive, httpRequest. Event-driven trigger; 11 nodes.
Source: https://github.com/n8nKOR/n8n-shared-workflow/blob/62a671327e906c22a40d290b339ff6d2373f8d75/workflows/n8nworkflows/ai/2764.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This automation organizes your n8n workflows files into categorizes (Active, Template, Done, Archived) and uploads them directly to a categorized Google Drive folders. It is designed to help users man
This automation organizes and consolidates your n8n workflows into categorized JSON files (Active, Template, Done, Archived) and uploads them directly to a Google Drive folder. It is designed to help
The Sora 2 API allows seamless generation of CGI ads, turning text prompts into stunning videos. This workflow automates the entire process from video generation to upload, notification, and file shar
Formtrigger Workflow. Uses formTrigger, googleDrive, httpRequest, stopAndError. Event-driven trigger; 28 nodes.
Formtrigger Workflow. Uses formTrigger, googleDrive, httpRequest, stopAndError. Event-driven trigger; 28 nodes.