Monitor HubSpot deal risk with OpenAI scoring and Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on a schedule (every day at 16:00). Along the way it connects HubSpot, Slack, OpenAI Chat Model and Google Sheets.
How it runs
Trigger: On a schedule (every day at 16:00).
- Get Active Deals from HubSpot (HubSpot): get many (deal)
- Formatting Data (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- HTTP Request: calls an HTTP API
- Get an engagement (HubSpot): get (engagement)
- Extracts Data (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- Format Data (Code): runs custom JavaScript code
- Filter Alerts Needed (If): checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HubSpot
n8n-nodes-base.hubspot - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
How it works This workflow runs on a daily schedule to analyze all active HubSpot deals and their latest engagement activity. It applies AI-driven behavioral scoring to predict conversion probability and deal health. High-risk or stalled deals automatically…