Qualify website leads with OpenAI and HubSpot and notify via Gmail
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI and Gmail. It also calls api.hubapi.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Edit Fields (Edit Fields (Set)): sets 5 fields: fullName, email, service…
- Message a model (OpenAI): uses OpenAI
- Lead Data + AI Analysis (Code): runs custom JavaScript code
- Check for existing HUBSPOT contact (HTTP Request): calls api.hubapi.com (POST)
- If: checks a condition and branches into true / false
- Populate data with existing contact (Code): runs custom JavaScript code
- Create HUBSPOT contact (HTTP Request): calls api.hubapi.com (POST)
- Prepare HUBSPOT deal payload (Code): runs custom JavaScript code
- Use created contact (Code): runs custom JavaScript code
- Create HUBSPOT deal (HTTP Request): calls api.hubapi.com (POST)
…plus 3 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 (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Qualify website leads with OpenAI in HubSpot Who’s it for This workflow is for agencies, consultants, SaaS teams, and service-based businesses that receive inbound leads through a website form and want to qualify them before following up. It helps you…