Score and triage inbound leads with OpenAI, HubSpot, and Slack
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.openai.com and api.hubapi.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Config (Edit Fields (Set)): sets 6 fields: slack_webhook_url, from_email, business_name…
- Normalize lead (Code): runs custom JavaScript code
- Score lead (OpenAI) (HTTP Request): calls api.openai.com (POST)
- Read score (Code): runs custom JavaScript code
- Reply to lead (Send Email): sends an email over SMTP
- Upsert contact (HubSpot) (HTTP Request): calls api.hubapi.com (POST)
- Hot lead? (If): checks a condition and branches into true / false
- Alert sales (Slack) (HTTP Request): calls an HTTP API (POST)
Other OpenAI + HubSpot templates (86)
HTTP calls to: api.openai.com, 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 (6)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Send Email
n8n-nodes-base.emailSend - If
n8n-nodes-base.if
From the author
Quick overview This workflow receives new lead submissions via a webhook, normalizes the data, scores the lead with OpenAI, sends an acknowledgment email, upserts the contact into HubSpot, and posts a Slack alert when the score meets a configured “hot lead”…