Qualify inbound leads with OpenAI, HubSpot, Slack and Gmail

Go to Workflow
0 views
Built by Abhishek Gawade Abhishek Gawade
Created on June 15, 2026

Description

Quick Overview
This workflow captures inbound website leads via an n8n form, uses OpenAI to infer firmographics and score ICP fit, upserts the lead into HubSpot, and for high-priority leads posts an instant alert to Slack and creates a Gmail follow-up draft.

How it works
Receives a new submission from an n8n Form with the lead’s name, work email, website, and message.
Sends the lead details to OpenAI to infer industry and company size, score ICP fit (0–100), assign a Hot/Warm/Cold priority, and draft a suggested reply as structured JSON.
Upserts the lead as a contact in HubSpot and stores the AI summary, score, and priority in the contact record.
Checks whether the lead is marked as Hot based on the AI priority.
For Hot leads, posts a detailed alert message to a selected Slack channel.
For Hot leads, creates a Gmail draft addressed to the lead using the AI-generated suggested reply.

Setup
Connect credentials for OpenAI, HubSpot, Slack, and Gmail.
Edit the Ideal Customer Profile text in the OpenAI prompt to match your target industries, regions, and qualification rules.
Select the Slack channel to post hot-lead alerts to in the Slack message step.
Customize the form fields and copy the form URL from the n8n Form trigger to embed or link it from your website.

Nodes Used (6)

Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Gmail
n8n-nodes-base.gmail
HubSpot
n8n-nodes-base.hubspot
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured