Automate marketing performance tracking with this robust n8n workflow. Fetch HighLevel won deals, calculate lead source metrics, and report instantly via Google Sheets and Slack.
Download this n8n workflow template and start using it instantly.
Marketing Analysts needing automated lead source performance reports.
Sales Operations teams requiring real-time visibility into deal status.
Users looking for high-quality n8n templates integrating CRM and reporting tools.
Automation specialists deploying production-ready n8n workflows for business intelligence.
Analyzing lead source quality is critical for optimizing marketing spend. This robust n8n workflow solves the tedious task of manually exporting and processing HighLevel CRM data. By utilizing n8n, you can establish an automated pipeline that pulls all opportunities, filters for 'won' deals, calculates performance metrics (deal count and total revenue per source), and distributes the results immediately.
This specific n8n workflow ensures data integrity by logging raw successful deals into Google Sheets while providing immediate, actionable insights via a summary report sent to Slack. It also includes a secondary path to instantly alert teams about non-won opportunities, making this n8n automation a complete CRM monitoring solution.
The execution of this comprehensive n8n workflow begins with the manual n8n trigger, initiating the data fetch process.
won.leadSource.To deploy this powerful n8n workflow, follow these steps:
Sheet ID and set up or select the necessary Google Sheets OAuth2 API credentials.#channel names or IDs are specified in the parameters. Manual Trigger n8n node: The starting n8n trigger for the entire flow. Used here for on-demand execution of the performance report.
HighLevel n8n node (Fetch All HighLevel Opportunities):
Function: Retrieves all opportunity records from the HighLevel CRM.
Key Configuration: Resource set to opportunity, Operation set to getAll, ensuring all available data is pulled for analysis.
If n8n node (Check If Status = Won):
Function: Acts as a flow control n8n node, routing the execution based on the opportunity status.
Key Configuration: Condition checks if {{ $json.status }} equals won.
Google Sheets n8n node (Log Won Deals to Sheets):
Function: Logs the raw JSON data for every opportunity where status is 'won' into a specified Google Sheet for permanent record-keeping.
Key Configuration: Uses the Append operation targeting Sheet1!A1:D1 (ensure this range is accurate for your sheet columns).
Function n8n node (Calculate Lead Source Metrics):
Function: Executes custom JavaScript to aggregate data. It iterates through all 'won' deals and calculates the total count and summed amount for each unique leadSource.
Key Configuration: Contains the core logic for calculating performance metrics before reporting.
Slack n8n node (Send Analytics to Slack):
Function: Delivers the calculated aggregate metrics report to a team Slack channel.
Key Configuration: Uses an expression ={{JSON.stringify($json, null, 2)}} to cleanly format the resulting metrics object into a readable report body, targeting #lead-source-report.
Slack n8n node (Alert Non-Won Status to Slack):
Function: Sends immediate alerts for deals that did not meet the 'won' criteria.
* Key Configuration: Text template is =Opportuniy id: {{ $json.id }} is {{ $json.status }}, providing contextual status updates.
Use this powerful n8n workflow template to automate LinkedIn profile tracking. It scrapes professional data, detects changes in job titles or status, stores history in Google Sheets, and notifies your team instantly via Slack. A robust n8n automation.

Use this advanced n8n workflow to accurately track OpenAI token usage and cost per client using the Langchain Code n8n node, enabling automated billing via Google Sheets and Gmail.

Use this n8n workflow to automatically log coffee counts from a Jura machine API via webhook directly into Google Sheets for real-time monitoring and reporting. Discover more n8n templates.

Use this powerful n8n workflow to track P&L across all your investment brokers automatically. Securely receive scheduled or on-demand portfolio summaries via Telegram. Explore more n8n templates today.

Identify new search queries (keywords) in Google Search Console that previously had zero impressions. This powerful n8n workflow uses advanced filtering logic to categorize zero-click opportunities and immediate traffic drivers.

Use this advanced n8n workflow to automatically track your OpenAI Admin API token usage, project costs, and API key metrics, logging all relevant financial data instantly to Google Sheets for transparent billing and analysis.

Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.







































