{ "updatedAt": "2025-12-21T09:59:01.000Z", "createdAt": "2025-11-21T10:47:00.974Z", "id": "gfx8s7OTuVkoPgLf", "name": "Drive2Kindle", "active": true, "isArchived": false, "nodes": [ { "parameters": { "sendTo": "rprasanna_fZiOPw@kindle.com", "subject": "Konvertieren", "message": "\"\"", "options": { "appendAttribution": false, "attachmentsUi": { "attachmentsBinary": [ {} ] } } }, "type": "n8n-nodes-base.gmail", "typeVersion": 2.1, "position": [ 992, -304 ], "id": "c9c5e5c7-b002-4d40-a19f-7f7ff3e6150d", "name": "Send a message", "webhookId": "3860bc8a-8510-4cb7-b6ba-cbe438c01bb8", "credentials": { "gmailOAuth2": { "id": "tqtCt1SI9F4NCGFX", "name": "Gmail account" } } }, { "parameters": { "operation": "download", "fileId": { "__rl": true, "value": "={{ $json.id }}", "mode": "id" }, "options": { "binaryPropertyName": "data", "googleFileConversion": { "conversion": { "docsToFormat": "application/pdf" } }, "fileName": "={{ $json.name.replaceAll(' ','_').replaceAll('-','_').concat('.pdf') }}" } }, "type": "n8n-nodes-base.googleDrive", "typeVersion": 3, "position": [ 832, -304 ], "id": "91140f64-d7c9-4936-bb21-6cf81b940b7e", "name": "Download file", "credentials": { "googleDriveOAuth2Api": { "id": "Cd69ueasqJqwPqCW", "name": "Google Drive account" } } }, { "parameters": { "rule": { "interval": [ { "field": "hours", "hoursInterval": 2 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ -192, -256 ], "id": "3b1d8e31-2a4f-492c-92dd-9d707eb095ae", "name": "Schedule Trigger" }, { "parameters": { "operation": "get", "dataTableId": { "__rl": true, "value": "kZfUnu3rACBWsKrJ", "mode": "list", "cachedResultName": "drive2kindle", "cachedResultUrl": "/projects/S4tmpzSj6JlGFOze/datatables/kZfUnu3rACBWsKrJ" }, "returnAll": true }, "type": "n8n-nodes-base.dataTable", "typeVersion": 1, "position": [ 0, -400 ], "id": "c5511d05-bead-48d1-92aa-05e78665128c", "name": "Get row(s)", "executeOnce": true }, { "parameters": { "operation": "upsert", "dataTableId": { "__rl": true, "value": "kZfUnu3rACBWsKrJ", "mode": "list", "cachedResultName": "drive2kindle", "cachedResultUrl": "/projects/S4tmpzSj6JlGFOze/datatables/kZfUnu3rACBWsKrJ" }, "filters": { "conditions": [ { "keyName": "file_id", "keyValue": "={{ $('Download file').item.json.id }}" } ] }, "columns": { "mappingMode": "defineBelow", "value": { "file_id": "={{ $('Download file').item.json.id }}", "file_name": "={{ $('Download file').item.json.name }}" }, "matchingColumns": [], "schema": [ { "id": "file_id", "displayName": "file_id", "required": false, "defaultMatch": false, "display": true, "type": "string", "readOnly": false, "removed": false }, { "id": "file_name", "displayName": "file_name", "required": false, "defaultMatch": false, "display": true, "type": "string", "readOnly": false, "removed": false } ], "attemptToConvertTypes": false, "convertFieldsToString": false }, "options": {} }, "type": "n8n-nodes-base.dataTable", "typeVersion": 1, "position": [ 1152, -304 ], "id": "af9fbe3a-6bfc-4bf0-81c8-cedd35985af7", "name": "Upsert row(s)" }, { "parameters": { "resource": "fileFolder", "queryString": "*", "returnAll": true, "filter": { "folderId": { "__rl": true, "value": "1QWsuPK82uzzM6bsjFvZB9C_T-YR6oWQe", "mode": "list", "cachedResultName": "ebook_consume", "cachedResultUrl": "https://drive.google.com/drive/folders/1QWsuPK82uzzM6bsjFvZB9C_T-YR6oWQe" } }, "options": { "fields": [ "id", "name" ] } }, "type": "n8n-nodes-base.googleDrive", "typeVersion": 3, "position": [ 0, -256 ], "id": "5b17b03b-76f9-4ba2-86e5-4d197ca5ce90", "name": "search_file", "executeOnce": true, "credentials": { "googleDriveOAuth2Api": { "id": "Cd69ueasqJqwPqCW", "name": "Google Drive account" } } }, { "parameters": { "mode": "combine", "advanced": true, "mergeByFields": { "values": [ { "field1": "file_id", "field2": "id" } ] }, "joinMode": "keepNonMatches", "outputDataFrom": "input2", "options": {} }, "type": "n8n-nodes-base.merge", "typeVersion": 3.2, "position": [ 304, -320 ], "id": "fc5d34d8-f4d5-4494-be88-b219ea601a3f", "name": "Merge" }, { "parameters": { "options": {} }, "type": "n8n-nodes-base.splitInBatches", "typeVersion": 3, "position": [ 576, -320 ], "id": "00d2a102-7b9f-4f9b-82c2-b326b73a6c40", "name": "Loop Over Items" }, { "parameters": { "httpMethod": "POST", "path": "bfae0a89-025e-4451-8e73-c1bb10a11f03", "authentication": "headerAuth", "options": {} }, "type": "n8n-nodes-base.webhook", "typeVersion": 2.1, "position": [ -192, -448 ], "id": "64c86963-a9e8-4016-90fe-d0ab94f8d22a", "name": "Webhook", "webhookId": "bfae0a89-025e-4451-8e73-c1bb10a11f03", "credentials": { "httpHeaderAuth": { "id": "ZmNvnXvf9yE8rmvm", "name": "drive2kindle-api" } } } ], "connections": { "Send a message": { "main": [ [ { "node": "Upsert row(s)", "type": "main", "index": 0 } ] ] }, "Download file": { "main": [ [ { "node": "Send a message", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "search_file", "type": "main", "index": 0 }, { "node": "Get row(s)", "type": "main", "index": 0 } ] ] }, "Get row(s)": { "main": [ [ { "node": "Merge", "type": "main", "index": 0 } ] ] }, "search_file": { "main": [ [ { "node": "Merge", "type": "main", "index": 1 } ] ] }, "Merge": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Loop Over Items": { "main": [ [], [ { "node": "Download file", "type": "main", "index": 0 } ] ] }, "Upsert row(s)": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Webhook": { "main": [ [ { "node": "Get row(s)", "type": "main", "index": 0 }, { "node": "search_file", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1" }, "staticData": { "node:Google Drive Trigger": { "lastTimeChecked": "2025-12-20T08:45:18Z" }, "node:Schedule Trigger": { "recurrenceRules": [ 22 ] } }, "meta": { "templateCredsSetupCompleted": true }, "pinData": {}, "versionId": "7ac74dd4-6161-4eab-acfd-1d9e01faa1b5", "triggerCount": 2, "shared": [ { "updatedAt": "2025-11-21T10:47:00.977Z", "createdAt": "2025-11-21T10:47:00.977Z", "role": "workflow:owner", "workflowId": "gfx8s7OTuVkoPgLf", "projectId": "S4tmpzSj6JlGFOze" } ], "tags": [] }