{
  "name": "Automatic PDF compression with iLovePDF for Google Drive files",
  "nodes": [
    {
      "id": "e6fec128-2f1c-48ff-829f-3e7166fc9976",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        608,
        320
      ]
    },
    {
      "id": "9d4e6c6c-dfcc-4f50-bbd4-01b9988de5f6",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1056,
        608
      ]
    },
    {
      "id": "e076cdbf-681d-43fd-b7a2-c69d00f2c6b9",
      "name": "Upload your file to Google Drive",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        608,
        560
      ]
    },
    {
      "id": "4db39f2d-f77c-4a81-b450-e50429803862",
      "name": "Group public key, task and downloaded file data",
      "type": "n8n-nodes-base.merge",
      "position": [
        1280,
        464
      ]
    },
    {
      "id": "6018c0f6-5b17-4823-b70d-69dbd4134e43",
      "name": "Compress your file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1728,
        464
      ]
    },
    {
      "id": "957761b2-7e1a-4dfb-bb0a-581c8a94408f",
      "name": "Move compressed file to new Google Drive folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2160,
        464
      ]
    },
    {
      "id": "75b524c2-eb15-4c3f-9a37-9a64168a78d9",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -96
      ],
      "parameters": {
        "width": 460,
        "height": 976,
        "content": "## Try this iLovePDF Compress Automation!\nThis n8n workflow automates compressing files in Google Drive using iLovePDF. When a file is added to a monitored folder, the workflow compresses it and saves"
      }
    },
    {
      "id": "0f890a3d-50ff-49c7-8bd7-7fa18c1363d6",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        912
      ],
      "parameters": {
        "width": 460,
        "height": 172,
        "content": "### Adapt it as you need!\nThis is just an example of using it for you to know how the flow should start to work without issues. After the \"combine\" step, you can change it according your needs but **a"
      }
    },
    {
      "id": "861ae95e-092d-4ca7-ac60-18f72bc9c013",
      "name": "Download compressed file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1936,
        464
      ]
    },
    {
      "id": "a98e1f2f-cb8b-480d-a621-5256b7b3bc3c",
      "name": "Send your iLoveAPI public key to their server",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        368
      ]
    },
    {
      "id": "1a895df1-b229-4d0f-b702-f1db3d974a1f",
      "name": "Get task from iLoveAPI server",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1056,
        368
      ]
    },
    {
      "id": "92b46b65-d33f-485e-a8e2-7aac53dfd788",
      "name": "Upload PDF to iLoveAPI server",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1504,
        464
      ]
    },
    {
      "id": "98a0918b-55c5-45e0-b6bb-05c19931b983",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        224
      ],
      "parameters": {
        "width": 688,
        "height": 656,
        "content": "## Sets up iLovePDF credentials and gets file from folder"
      }
    },
    {
      "id": "2892a063-9e75-4cb1-96da-de862a183dd0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        224
      ],
      "parameters": {
        "width": 848,
        "height": 656,
        "content": "## Unifies data from previous step and does the tool processes."
      }
    },
    {
      "id": "51abcbe2-3d64-4452-82ab-dc37e673f27a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        224
      ],
      "parameters": {
        "width": null,
        "height": 656,
        "content": "## Upload processed file to drive folder\n"
      }
    }
  ],
  "connections": {
    "Download file": {
      "main": [
        [
          {
            "node": "Group public key, task and downloaded file data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Compress your file": {
      "main": [
        [
          {
            "node": "Download compressed file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download compressed file": {
      "main": [
        [
          {
            "node": "Move compressed file to new Google Drive folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get task from iLoveAPI server": {
      "main": [
        [
          {
            "node": "Group public key, task and downloaded file data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload PDF to iLoveAPI server": {
      "main": [
        [
          {
            "node": "Compress your file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload your file to Google Drive": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send your iLoveAPI public key to their server",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Send your iLoveAPI public key to their server",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send your iLoveAPI public key to their server": {
      "main": [
        [
          {
            "node": "Get task from iLoveAPI server",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Group public key, task and downloaded file data": {
      "main": [
        [
          {
            "node": "Upload PDF to iLoveAPI server",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}