{"product_id":"ghl-lost-deal-reason-analyzer-with-google-gemini-n8n-workflow","title":"GHL Lost Deal Reason Analyzer with Google Gemini (n8n Workflow)","description":"\u003ch3\u003eAutomatically Detect Why Deals Go “Lost” in GoHighLevel—Using Google Gemini (with n8n)\u003c\/h3\u003e\n\u003cp\u003eWhen a GoHighLevel opportunity changes status to \u003cstrong\u003elost\u003c\/strong\u003e, this n8n workflow gathers the matching contact, opportunity, and conversation transcript, then uses \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to infer the \u003cstrong\u003eprimary lost reason\u003c\/strong\u003e and saves it as a note on the contact—so your team stops guessing.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eListens for GoHighLevel opportunity status changes\u003c\/strong\u003e via a POST webhook (“opportunity status change”).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetrieves the related GoHighLevel contact\u003c\/strong\u003e and stops if the contact record is missing.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches the opportunity\u003c\/strong\u003e and proceeds only when the opportunity status is \u003cstrong\u003elost\u003c\/strong\u003e and the contact IDs match.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSearches GoHighLevel conversations\u003c\/strong\u003e for the same location and contact, downloads the messages for the first matching conversation, and builds a \u003cstrong\u003echronological transcript\u003c\/strong\u003e (ignoring non-message activity events).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eChecks transcript quality\u003c\/strong\u003e: continues only if there is more than one message.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses an n8n AI Agent with Google Gemini\u003c\/strong\u003e (structured output) to generate:\n    \u003cul\u003e\n      \u003cli\u003ea \u003cstrong\u003eprimary lost reason\u003c\/strong\u003e\n\u003c\/li\u003e\n      \u003cli\u003ea \u003cstrong\u003eshort summary\u003c\/strong\u003e\n\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a sticky note\u003c\/strong\u003e (contact note) on the GoHighLevel contact containing the lost-deal analysis.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eIdentify recurring reasons deals are lost after a sales call or chat conversation.\u003c\/li\u003e\n  \u003cli\u003eImprove follow-up sequences by capturing why prospects disengaged—automatically.\u003c\/li\u003e\n  \u003cli\u003eGive support and sales visibility into lost opportunities without manual review.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details (n8n + integrations)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook trigger\u003c\/strong\u003e for GoHighLevel “opportunity status change”.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoHighLevel (HighLevel OAuth2)\u003c\/strong\u003e nodes for contacts, opportunities, conversations, and contact notes.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI inference with Google Gemini (PaLM) via an n8n AI Agent\u003c\/strong\u003e using structured output.\u003c\/li\u003e\n  \u003cli\u003eWorkflow nodes include: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003ewebhook\u003c\/strong\u003e, \u003cstrong\u003ehigh level\u003c\/strong\u003e, \u003cstrong\u003esticky note\u003c\/strong\u003e, and \u003cstrong\u003ehttp request\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup:\u003c\/strong\u003e Connect GoHighLevel OAuth2 (contacts, opportunities, conversations, contact notes) and add a Google Gemini (PaLM) API credential for the AI Agent, then paste the workflow webhook URL into your GoHighLevel “opportunity status change” trigger configuration.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45878613508275,"sku":"N8N-18546","price":77.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/b41hrTiyQDSwdWm2yMG4D_lN5Irk5N.png?v=1787389695","url":"https:\/\/buyflowscripts.com\/products\/ghl-lost-deal-reason-analyzer-with-google-gemini-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}