AutomationFlowsWeb Scraping › Upload Large Files to Kommo/amocrm with Automatic File Chunking

Upload Large Files to Kommo/amocrm with Automatic File Chunking

Byyatolstoy @yatolstoy on n8n.io

Upload files from any source to your account Kommo or AmoCRM with a simple and reusable workflow. It can split a large file into small ones and upload chunks. Works for Kommo and amoCRM There are 3 required parameters in total (driveurl, filename and file_base64) To send files…

Event trigger★★★★★ complexity36 nodesHTTP RequestExecute Workflow TriggerStop And Error
Web Scraping Trigger: Event Nodes: 36 Complexity: ★★★★★ Added:

This workflow corresponds to n8n.io template #3922 — we link there as the canonical source.

This workflow follows the Execute Workflow Trigger → 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 →

Download .json
{
  "nodes": [
    {
      "id": "43fda176-35ab-4842-b021-63b5fc999f7d",
      "name": "loadFile",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2020,
        -60
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "1915137e-ed22-4dd5-af54-74c5d058aef6",
      "name": "getUrl",
      "type": "n8n-nodes-base.set",
      "position": [
        1800,
        -140
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "edc42dd3-05d5-4653-88e9-a1032df9534a",
      "name": "input",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -620,
        -140
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a00890dd-b483-4da1-b59f-b6b1a44a153f",
      "name": "getFileSizeInBytes",
      "type": "n8n-nodes-base.code",
      "position": [
        40,
        -240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "28cf34b1-4299-4780-a246-bd87248c179f",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        480,
        -240
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "353ed775-3d33-4697-b878-c79459ab294c",
      "name": "createSession",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        260,
        -165
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "80155ba5-fa43-40a1-978f-ffbd5363233e",
      "name": "isGraterThenMax",
      "type": "n8n-nodes-base.if",
      "position": [
        700,
        -240
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "6c082793-fef0-4550-9861-ccc53da25430",
      "name": "No free disk space",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        920,
        -340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "88e11659-116a-4c23-81ba-df6ffb72f9a9",
      "name": "SplitFileToChunks",
      "type": "n8n-nodes-base.code",
      "position": [
        1160,
        -140
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c08702e7-33a3-4862-9ad6-896317336bec",
      "name": "result",
      "type": "n8n-nodes-base.limit",
      "position": [
        1800,
        -340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0f4d3d65-0f5a-4e7b-844e-96b6ce50a85d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        10,
        -305
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "79dc21b4-69e3-42ca-9f32-925c9e988f0b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7bb245c7-064a-4eca-99ca-c87462a5a982",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        -400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e173916a-c942-4b23-81f6-5eeb771c83b4",
      "name": "Loop Over File Chunks",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1580,
        -140
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "f503d0cd-fd06-4c40-a102-9a1085ac16de",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -180,
        -240
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "258f39d5-95b4-4d6c-91bd-ae2ccd403536",
      "name": "hasFile",
      "type": "n8n-nodes-base.if",
      "position": [
        -400,
        -140
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "59360cb2-1bbf-4f39-8194-836066d0db4b",
      "name": "No file Error",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        -180,
        -40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d4d772a6-219b-4b41-9770-9e126e0ea84f",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0f1fd0b1-70f4-43c4-97ed-7712784fce3d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2040,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5d2a3b8f-1f96-4778-b7c8-b7ee6ee7df10",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -1260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "33a9d955-e861-443b-b2a9-d31b16661f75",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -680
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cc1a58a0-72f5-4b9a-93a6-8e8dc55303fc",
      "name": "Start testing",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -600,
        -600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3826ba93-22e9-4187-99fa-f8f5cae6f512",
      "name": "Convert file to base64 string",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -160,
        -600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e84839b2-e0e4-44be-b4ed-de84d3f68ff1",
      "name": "Get file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -380,
        -600
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c7af8f73-76ee-4730-a0b8-543f7df377a7",
      "name": "Upload file",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        60,
        -600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "63bc70c6-4eea-415a-ae38-7a8a00833781",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -960
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d5dc456d-7784-4442-bfe9-4aaaceadb511",
      "name": "Get drive url",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        -880
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "ebdb0738-0786-40a0-aa4b-a72c6bbe305b",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3dd1c62b-8500-45f6-adb4-1d995559bf84",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d57f38f5-a773-41fd-9552-aeaa275b4938",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -860
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "74e1abe6-e842-4038-9766-610a73be461b",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        -880
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8cd57757-47c2-403c-acea-b29240fc5447",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -1360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e759d546-ac1f-412d-b7cf-bb421f048ac8",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -1260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e48cda1e-c737-4f70-b733-bd09d9aee13e",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "43523e3f-534e-4827-89a2-f412c1a1ca24",
      "name": "Convert parts to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1360,
        -140
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "181c8a75-721e-486e-83b2-259fde1aba1a",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "isGraterThenMax",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "input": {
      "main": [
        [
          {
            "node": "hasFile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "getUrl": {
      "main": [
        [
          {
            "node": "loadFile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "hasFile": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No file Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get file": {
      "main": [
        [
          {
            "node": "Convert file to base64 string",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "loadFile": {
      "main": [
        [
          {
            "node": "Loop Over File Chunks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start testing": {
      "main": [
        [
          {
            "node": "Get file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "createSession": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "getFileSizeInBytes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "isGraterThenMax": {
      "main": [
        [
          {
            "node": "No free disk space",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "SplitFileToChunks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SplitFileToChunks": {
      "main": [
        [
          {
            "node": "Convert parts to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "getFileSizeInBytes": {
      "main": [
        [
          {
            "node": "createSession",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert parts to File": {
      "main": [
        [
          {
            "node": "Loop Over File Chunks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over File Chunks": {
      "main": [
        [
          {
            "node": "result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "getUrl",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert file to base64 string": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Upload files from any source to your account Kommo or AmoCRM with a simple and reusable workflow. It can split a large file into small ones and upload chunks. Works for Kommo and amoCRM There are 3 required parameters in total (driveurl, filename and file_base64) To send files…

Source: https://n8n.io/workflows/3922/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

It validates all inputs, queries providers sequentially, and merges results into a single enforced output schema. The workflow is designed to guarantee complete coverage for the requested currencies.

Stop And Error, HTTP Request, Execute Workflow Trigger
Web Scraping

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

N8N Nodes Webpage Content Extractor, HTTP Request, Stop And Error +1
Web Scraping

This workflow is designed to translate a video accessible by URL (supported sources: YouTube, Google Drive, S3, Vimeo, or a direct link) into a language supported by Rask AI.

Execute Workflow Trigger, HTTP Request, Stop And Error
Web Scraping

This workflow integrates the Apache Airflow API DAGRun and XCom. It enables n8n to trigger Airflow DAGs and retrieve the execution results. Update Airflow API Link Prefix Navigate to the node. Update

HTTP Request, Stop And Error, Execute Workflow Trigger
Web Scraping

[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.

HTTP Request, GitHub, Stop And Error +1