Library / CRM & Sales Pipeline
CRM & Sales Pipeline
Detect stalled HubSpot deals and diagnose risk with LLMs and Slack
Scores HubSpot deals for stall risk on a weekly scan and via webhook, then has an LLM diagnose and a second LLM audit high-risk deals before posting to Slack.
What it does
## Pipeline Risk & Stall Detector ### How it works Flags deals stuck in your pipeline before they die quietly. A deterministic score (activity gaps, stage aging, single-threading, pushed close dates, missing next step) decides which deals are worth analyzing. High-risk deals go to a generator LLM for diagnosis, then a separate auditor LLM checks that diagnosis against the raw data before anything reaches Slack. Two independent triggers feed the same pipeline: a weekly HubSpot scan and a CRM-agnostic webhook, so it isn't locked to one CRM. Most templates in this space use either pure deterministic rules or a single unverified LLM pass, the dual-LLM audit and true dual-CRM coverage are the differentiators here. ### Setup 1. Attach a HubSpot credential (Private App token) to Fetch Open Deals (HubSpot). 2. Attach an OpenRouter credential to both OpenRouter Chat Model nodes (Generator + Auditor), a separate credential from HubSpot's. 3. Attach an Anthropic API credential to Anthropic Chat Model, this powers the Content Safety Guardrails checks and is a third, separate credential from HubSpot and OpenRouter. 4. Add a stage filter to Fetch Open Deals (HubSpot) once you know your pipeline's open-stage IDs. 5. Point Slack nodes at your workspace and update the #sales-alerts / #sales-ops-alerts channels. 6. Set crmBaseUrl on Write Alert Back to CRM, or swap it for a native CRM node.
The steps
- Weekly Schedule Trigger
- Webhook: Deal Stage Change
- Respond 202 Accepted
- Fetch Open Deals (HubSpot)
- Normalize Deal Data
- Calculate Stall Risk Score
- Is Risk High Enough to Analyze
- Log: Low/Medium Risk
- OpenRouter Chat Model (Generator)
- Stall Diagnosis Output Parser
- LLM: Generate Stall Diagnosis
- Handle LLM Generate Failure
- Slack: LLM Generate Failure
- Parse and Validate LLM Output
38 steps in total.
Similar automations
CRM & Sales PipelineRe-engage stalled HubSpot deals with OpenAI drafts and Slack escalation12 stepsEmail AutomationDraft safe email replies from webhooks with Groq and n8n Guardrails18 stepsCode, Git & Developer ToolsRedact and restore PII in OpenAI prompts with Enterprise PII Guardrails5 stepsMonitoring, Ops & IncidentsDiagnose failed n8n workflows with Ollama and post triage to Discord16 steps