Log missed EDI sales from Gmail CSVs into GoHighLevel with Slack error alerts
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail and Slack. It also calls services.leadconnectorhq.com over HTTP.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Get Gmail Message Content (Gmail): get
- Slack: uses Slack
- Extract CSV from Email Attachment (Extract from File): extracts data from a file (xlsx)
- Loop Over CSV Rows (Loop Over Items (Split in Batches)): loops over the items in batches
- Build Unique Key & Map CSV Fields (Code): runs custom JavaScript code
- Search Missed Sales Record by Unique Key (HTTP Request): calls services.leadconnectorhq.com (POST)
- Record Already Exists? (If): checks a condition and branches into true / false
- Create Missed Sales Record (HTTP Request): calls services.leadconnectorhq.com (POST)
- Search GHL Opportunity by PO Number (HTTP Request): calls services.leadconnectorhq.com (POST)
- Opportunity Found? (If): checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
Services it uses
Other Gmail + Slack templates (957) · Other HighLevel + Slack templates (37) · Other HighLevel + Gmail templates (25)
HTTP calls to: services.leadconnectorhq.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Error Trigger
n8n-nodes-base.errorTrigger - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow monitors Gmail for incoming EDI sales report emails, extracts a CSV attachment, and logs new “missed sales” line items into GoHighLevel (LeadConnector) custom objects while linking them to matching opportunities when possible,…