Email Automation
Sync warehouse stock from SFTP to GoHighLevel and iPaper with alerts
On a schedule, it handles email using SMTP Email, FTP.
What it does
## 🏭 Warehouse Automation Hub – FTP Stock Sync to GHL & iPaper ### How it works Three times a day, the workflow connects to the warehouse SFTP server, lists the /outbound/stock/ directory, and downloads the latest CSV file. The CSV is parsed and each row is validated and transformed — checking required fields, normalising numeric types, and flagging any item with stock ≤ 10 as a low-stock alert. Valid products are split into batches of 50 and synced in parallel to two systems: GoHighLevel (product + stock update) and iPaper (catalogue sync). After all batches are processed, an acknowledgement CSV is written back to the SFTP server at /inbound/acknowledgements/. If low-stock items were found, an alert email goes out. If any rows failed validation, an error report email is sent. The run is logged to execution custom data throughout. ### Setup steps 1. Add your SFTP credential to all three FTP nodes. 2. Set the following environment variables in your n8n instance: IPAPER_API_URL, GHL_BASE_URL, and NOTIFY_FROM_EMAIL. 3. Update the recipient email addresses in Email - Low Stock Alert and Email - Error Notification. 4. Add authentication headers to the GHL - Update Product and Stock and iPaper - Sync Catalogue HTTP nodes (GHL Bearer token, iPaper API key). 5. Confirm the SFTP paths /outbound/stock/ and /inbound/acknowledgements/ match your warehouse server layout. 6. Activate the schedule trigger.
The steps
- Email - Error Notification
- Has Errors?
- Build Error Report
- Email - Low Stock Alert
- Low Stock Alert Check
- Log Completion
- FTP - Write Acknowledgement
- Build Acknowledgement File
- iPaper - Sync Catalogue
- GHL - Update Product and Stock
- Split Into Batches (50)
- Validate and Transform Data
- Parse CSV Data
- FTP - Download Stock File
17 steps in total.
Similar automations
Files & Cloud StorageSync warehouse stock to GoHighLevel via SFTP, Google Drive, and webhook26 stepsFiles & Cloud StorageSend SAP XML sales orders from GoHighLevel to a warehouse via Make.com SFTP9 stepsFiles & Cloud StorageDownload and Upload a File over FTP4 stepsCode, Git & Developer ToolsBack Up Zigbee2MQTT Config to SFTP Weekly7 steps