Analyze lost deal reasons from GoHighLevel conversations with Google Gemini
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects HighLevel and Google Gemini Chat Model. It also calls services.leadconnectorhq.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Retrieve Contact Info (HighLevel): get
- Check Contact Existence (If): checks a condition and branches into true / false
- Fetch Opportunity Data (HighLevel): get (opportunity)
- Verify Opportunity Status (If): checks a condition and branches into true / false
- Fetch User Conversations (HTTP Request): calls services.leadconnectorhq.com
- Retrieve Conversation Details (HTTP Request): calls an HTTP API
- Extract Total Messages Count (Code): runs custom JavaScript code
- Filter Original Conversations (Code): runs custom JavaScript code
- Check Message Count Exceeded (If): checks a condition and branches into true / false
- Lost Reason Analysis Agent (AI Agent): runs an AI agent, with model: Google Gemini for Analysis; output parser: Parse Structured Output
…plus 1 more step. See the full node list below.
Services it uses
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.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - HighLevel
n8n-nodes-base.highLevel - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
From the author
Quick overview Youtube Video: https://youtu.be/2FqDRG11Y88?si=yFkn0lFDodXK5f3 This workflow listens for a GoHighLevel (LeadConnector) opportunity status change, fetches the related contact, opportunity, and conversation messages, uses Google Gemini via an n8n…