Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Weekly Schedule Trigger
  2. Webhook: Deal Stage Change
  3. Respond 202 Accepted
  4. Fetch Open Deals (HubSpot)
  5. Normalize Deal Data
  6. Calculate Stall Risk Score
  7. Is Risk High Enough to Analyze
  8. Log: Low/Medium Risk
  9. OpenRouter Chat Model (Generator)
  10. Stall Diagnosis Output Parser
  11. LLM: Generate Stall Diagnosis
  12. Handle LLM Generate Failure
  13. Slack: LLM Generate Failure
  14. Parse and Validate LLM Output

38 steps in total.

Similar automations