Templates / Qualify website leads with OpenAI and HubSpot and notify via Gmail

Qualify website leads with OpenAI and HubSpot and notify via Gmail

Ready for 3.0

by Mohamad Sasa · 114 views · created 2026-05-12 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Edit Fields (Edit Fields (Set)): sets 5 fields: fullName, email, service…
  2. Message a model (OpenAI): uses OpenAI
  3. Lead Data + AI Analysis (Code): runs custom JavaScript code
  4. Check for existing HUBSPOT contact (HTTP Request): calls api.hubapi.com (POST)
  5. If: checks a condition and branches into true / false
  6. Populate data with existing contact (Code): runs custom JavaScript code
  7. Create HUBSPOT contact (HTTP Request): calls api.hubapi.com (POST)
  8. Prepare HUBSPOT deal payload (Code): runs custom JavaScript code
  9. Use created contact (Code): runs custom JavaScript code
  10. Create HUBSPOT deal (HTTP Request): calls api.hubapi.com (POST)

…plus 3 more steps. See the full node list below.

Services it uses

OpenAIGmail

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)

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…

Excerpt from Mohamad Sasa's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.