# Sync warehouse stock to GoHighLevel with SFTP and Google Drive: n8n workflow

> Started by another system calling it, and works across FTP and Google Drive. 26 steps, 3 branches, 1 loop or waits: large, and worth reading before you...

Source: https://millionrounds.com/workflow/sync-warehouse-stock-to-gohighlevel-with-sftp-and-google-dri (Millionrounds; every figure on the page links to its filing or article)

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

# Sync warehouse stock to GoHighLevel with SFTP and Google Drive

Started by another system calling it, and works across FTP and Google Drive. 26 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsync-warehouse-stock-to-gohighlevel-with-sftp-and-google-dri)

**26 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 3 Logic 13 Service 10

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

- 1 **Cron Trigger** Schedule trigger *Starts it*
- 2 **Manual Trigger – Google Drive Test** Manual trigger *Starts it*
- 3 **Webhook** Webhook *Starts it*
- 4 **Parse Webhook XML** Code *Logic*
- 5 **SFTP List Files** Ftp *Service*
- 6 **Google Drive - Download XML** Google Drive *Service*
- 7 **Limit** Limit *Logic*
- 8 **Filter Stock Files** If *Logic*
- 9 **Parse Drive XML** Code *Logic*
- 10 **Loop Over Items** Split In Batches *Logic*
- 11 **Get Latest File** Code *Logic*
- 12 **Search Product by Name** Http Request *Service*
- 13 **Search Product by Name (Webhook)** Http Request *Service*
- 14 **Download XML File** Ftp *Service*
- 15 **Check if Product Exists (Drive)** Code *Logic*
- 16 **If** If *Logic*
- 17 **Parse SFTP XML** Code *Logic*
- 18 **IF - Update or Create Product (Drive)** If *Logic*
- 19 **Update Product** Http Request *Service*
- 20 **Create Product** Http Request *Service*
- 21 **Extract Records** Code *Logic*
- 22 **Update Product Stock (Drive)** Http Request *Service*
- 23 **Create New Product (Drive)** Http Request *Service*
- 24 **Split Out Items** Split Out *Logic*
- 25 **Transform Data** Code *Logic*
- 26 **Update Stock via API** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 26, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** FTP, Google Drive
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own FTP and Google Drive accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

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?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

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 26 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%2Fsync-warehouse-stock-to-gohighlevel-with-sftp-and-google-dri)
- **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.

## Connects to

Each opens the other workflows that use it.

[FTP](https://millionrounds.com/workflows?service=FTP#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)

## Workflows like it

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

- [**Prepare Whisk AI product image briefs with Google Sheets** 26 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/prepare-whisk-ai-product-image-briefs-with-google-sheets)
- [**PPC: automate ad scraping and editing with OpenAI** 26 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ppc-automate-ad-scraping-and-editing-with-openai)
- [**AI PPT Optimizer with Google Drive and Google Sheets** 25 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-ppt-optimizer-with-google-drive-and-google-sheets)
- [**AI email auto-responder system- AI RAG agent for email inbox** 27 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/ai-email-auto-responder-system-ai-rag-agent-for-email-inbox)
- [**Build a RAG knowledge base from PDFs with Gemini and Supabase** 27 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/build-a-rag-knowledge-base-from-pdfs-with-gemini-and-supabas)
- [**Convert LINE handwritten memo images to tagged, searchable notes** 25 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/convert-line-handwritten-memo-images-to-tagged-searchable-no)
