İçeriğe geç
YENİAlaaddin ile tanış: sesi olan yapay zekâ cinin. trig8n 1 Ocak 2027'de yayında. Yeniliklere bak

Kütüphane / Dosyalar ve Bulut Depolama

Dosyalar ve Bulut Depolama

Sync warehouse stock to GoHighLevel via SFTP, Google Drive, and webhook

On a schedule, it manages files using FTP, Google Drive.

Ne yapar

## 📦 Stock Sync to GoHighLevel – Three-Trigger Architecture ### How it works This workflow keeps your GoHighLevel product catalogue in sync with your warehouse stock feed using three independent trigger paths. SFTP (scheduled): runs three times a day, lists files in the SFTP /out-box/ directory, picks the latest stock balance XML, parses every item, and updates GHL via the stock-update API. Google Drive (manual): downloads a specific XML from Drive for testing — useful during setup before the SFTP feed is live. Webhook (real-time): receives an XML payload via POST, parses it, and loops through each item to search by product name, then create or update the GHL product record. All three paths use the same GHL LeadConnector API for product lookups and mutations. ### Setup steps 1. Add your SFTP credential to the two SFTP nodes (List Files and Download XML File). 2. Add your Google Drive OAuth2 credential to the Drive download node and set YOUR_DRIVE_FILE_ID for testing. 3. Add your GHL Private Integration Token (YOUR_GHL_API_TOKEN) to the Authorization header in every HTTP node. 4. Replace YOUR_GHL_LOCATION_ID in all HTTP request bodies/URLs. 5. Replace YOUR_GHL_PRODUCTS_OBJECT_ID in the custom object URLs (currently custom_objects.products endpoints). 6. Set your desired schedule in the Cron Trigger node. 7. Activate the Cron Trigger and Webhook trigger.

Adımlar

  1. Cron Trigger
  2. SFTP List Files
  3. Filter Stock Files
  4. Get Latest File
  5. Download XML File
  6. Extract Records
  7. Split Out Items
  8. Transform Data
  9. Update Stock via API
  10. Parse SFTP XML
  11. Manual Trigger – Google Drive Test
  12. Search Product by Name
  13. Parse Drive XML
  14. Check if Product Exists (Drive)

Toplam 26 adım.

Benzer otomasyonlar