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 →
{
"name": "CIBC PDF to Google Drive",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "upload-pdf",
"responseMode": "lastNode",
"options": {}
},
"id": "b3e4f5a6-7890-1234-5678-90abcdef1234",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
250,
300
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.file.mimetype }}",
"operation": "equals",
"value2": "application/pdf"
}
],
"number": [
{
"value1": "={{ $json.file.fileSize }}",
"operation": "smallerThan",
"value2": 10485760
}
]
}
},
"id": "c4d5e6f7-8901-2345-6789-01abcdef2345",
"name": "Validate File",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
450,
300
]
},
{
"parameters": {
"operation": "upload",
"name": "={{ $json.file.fileName }}",
"binaryData": true,
"binaryPropertyName": "file",
"options": {
"folderId": "YOUR_GOOGLE_DRIVE_FOLDER_ID",
"useFileName": true
}
},
"id": "d5e6f7a8-9012-3456-7890-12abcdef3456",
"name": "Upload to Google Drive",
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
650,
200
],
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "share",
"fileId": "={{ $json.id }}",
"permissions": [
{
"role": "reader",
"type": "anyone"
}
]
},
"id": "e6f7a8b9-0123-4567-8901-23abcdef4567",
"name": "Set Public Permission",
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
850,
200
],
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"values": {
"string": [
{
"name": "success",
"value": "true"
},
{
"name": "fileUrl",
"value": "={{ 'https://drive.google.com/file/d/' + $json.id + '/view' }}"
},
{
"name": "driveFileId",
"value": "={{ $json.id }}"
},
{
"name": "fileName",
"value": "={{ $json.name }}"
},
{
"name": "fileSize",
"value": "={{ $json.size }}"
},
{
"name": "mimeType",
"value": "={{ $json.mimeType }}"
}
]
},
"options": {}
},
"id": "f7a8b9c0-1234-5678-9012-34abcdef5678",
"name": "Format Success Response",
"type": "n8n-nodes-base.set",
"typeVersion": 3,
"position": [
1050,
200
]
},
{
"parameters": {
"values": {
"string": [
{
"name": "success",
"value": "false"
},
{
"name": "error",
"value": "Invalid file. Only PDF files under 10MB are allowed."
}
]
},
"options": {}
},
"id": "a8b9c0d1-2345-6789-0123-45abcdef6789",
"name": "Format Error Response",
"type": "n8n-nodes-base.set",
"typeVersion": 3,
"position": [
650,
400
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Validate File",
"type": "main",
"index": 0
}
]
]
},
"Validate File": {
"main": [
[
{
"node": "Upload to Google Drive",
"type": "main",
"index": 0
}
],
[
{
"node": "Format Error Response",
"type": "main",
"index": 0
}
]
]
},
"Upload to Google Drive": {
"main": [
[
{
"node": "Set Public Permission",
"type": "main",
"index": 0
}
]
]
},
"Set Public Permission": {
"main": [
[
{
"node": "Format Success Response",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [],
"triggerCount": 0,
"active": true
}
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.
googleDriveOAuth2Api
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
CIBC PDF to Google Drive. Uses googleDrive. Webhook trigger; 6 nodes.
Source: https://github.com/fauzan171/kath-landingPage/blob/20c38d9d1c7479580248cb28fd97a05b60a53ea5/n8n/cibc-upload-workflow.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.
Tool: Create Google Doc. Uses googleDrive. Webhook trigger; 3 nodes.
Create Student Folder. Uses googleDrive. Webhook trigger; 3 nodes.
A production-ready authentication workflow implementing secure user registration, login, token verification, and refresh token mechanisms. Perfect for adding authentication to any application without
Portfolio Orchestrator. Uses httpRequest. Webhook trigger; 59 nodes.