# Upload large files to Kommo/AmoCRM: n8n workflow template

> Started by an event in a connected app. It calls services over plain HTTP rather than through connectors.

Source: https://millionrounds.com/workflow/upload-large-files-to-kommo-amocrm (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [CRM](https://millionrounds.com/workflows?category=CRM#library)

# Upload large files to Kommo/AmoCRM

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. 20 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fupload-large-files-to-kommo-amocrm)

**20 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**1** Loop or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 2 Logic 11 Service 7

The steps in the order they run, from what starts it.

- 1 **input** Execute Workflow trigger *Starts it*
- 2 **Start testing** Manual trigger *Starts it*
- 3 **Get drive url** Http Request *Service*
- 4 **hasFile** If *Logic*
- 5 **Get file** Http Request *Service*
- 6 **Convert to File** Convert To File *Service*
- 7 **No file Error** Stop And Error *Logic*
- 8 **Convert file to base64 string** Extract From File *Service*
- 9 **getFileSizeInBytes** Code *Logic*
- 10 **Upload file** Execute Workflow *Logic*
- 11 **createSession** Http Request *Service*
- 12 **Merge** Merge *Logic*
- 13 **isGraterThenMax** If *Logic*
- 14 **No free disk space** Stop And Error *Logic*
- 15 **SplitFileToChunks** Code *Logic*
- 16 **Convert parts to File** Convert To File *Service*
- 17 **Loop Over File Chunks** Split In Batches *Logic*
- 18 **result** Limit *Logic*
- 19 **getUrl** Set *Logic*
- 20 **loadFile** Http Request *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 20, with 2 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 20 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fupload-large-files-to-kommo-amocrm)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also crm, with the same services where possible, closest in size first.

- [**Better Oauth2.0 workflow for Pipedrive CRM with Supabase** 20 steps · Supabase](https://millionrounds.com/workflow/better-oauth2-0-workflow-for-pipedrive-crm-with-supabase)
- [**Reach out to companies that recently secured funding** 20 steps · HubSpot, Slack](https://millionrounds.com/workflow/reach-out-to-companies-that-recently-secured-funding)
- [**Send daily stock and sales profit reports with Google Sheets** 20 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/send-daily-stock-and-sales-profit-reports-with-google-sheets)
- [**Send monthly rent and sales market updates to Slack** 20 steps · Slack, Supabase](https://millionrounds.com/workflow/send-monthly-rent-and-sales-market-updates-to-slack)
- [**GPT-4o: Twilio integration with OpenAI and Airtable** 20 steps · calls a model · Airtable, Email](https://millionrounds.com/workflow/gpt-4o-twilio-integration-with-openai-and-airtable)
- [**Guide home-service sales calls with Housecall Pro and OpenAI** 20 steps · calls a model](https://millionrounds.com/workflow/guide-home-service-sales-calls-with-housecall-pro-and-openai)
