Notify HubSpot deal stage changes with OpenAI, Slack and Gmail
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on HubSpot events. Along the way it connects HubSpot, OpenAI, Slack and Google Sheets and 1 more. It also calls api.hubapi.com over HTTP.
How it runs
Trigger: On HubSpot events.
- Is Real Stage Change? (If): checks a condition and branches into true / false
- Get Deal Details (HubSpot): get (deal)
- Format Deal Data (Code): runs custom JavaScript code
- Generate AI Summary (OpenAI): uses OpenAI
- High Value Deal? (If): checks a condition and branches into true / false
- Slack: uses Slack
- Slack: uses Slack
- Log to Google Sheets (Google Sheets): append
- Get Owner Details (HTTP Request): calls an HTTP API
- Get Contact Details (HTTP Request): calls an HTTP API
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: api.hubapi.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 (11)
- HubSpot Trigger
n8n-nodes-base.hubspotTrigger - If
n8n-nodes-base.if - HubSpot
n8n-nodes-base.hubspot - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow triggers on HubSpot dealstage changes, pulls full deal, contact, and owner details, uses OpenAI to generate a concise Slack-ready update with next steps, notifies the right Slack channel or emails the owner for ClosedWon, logs the…