Skip to main content

Qualify inbound leads with OpenAI, HubSpot, Slack and Gmail

Workflow preview

Workflow preview
100%
Qualify inbound leads with OpenAI, HubSpot, Slack and Gmail preview
Open on n8n.io

1. Workflow Overview

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

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.hubspot, n8n-nodes-base.if, n8n-nodes-base.slack

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Abhishek Gawade.

Original n8n.io source

1.1 Workflow description

Title
Qualify inbound leads with OpenAI, HubSpot, Slack and Gmail
Workflow name
Qualify inbound leads with OpenAI, HubSpot, Slack and Gmail

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

  1. Receives a new submission from an n8n Form with the lead’s name, work email, website, and message.
  2. 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.
  3. Upserts the lead as a contact in HubSpot and stores the AI summary, score, and priority in the contact record.
  4. Checks whether the lead is marked as Hot based on the AI priority.
  5. For Hot leads, posts a detailed alert message to a selected Slack channel.
  6. For Hot leads, creates a Gmail draft addressed to the lead using the AI-generated suggested reply.

Setup

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Warning

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section: Capture

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section: Qualify

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section: Act

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Lead Submits Form

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 7 - Qualify & Enrich Lead

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 8 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 9 - Parse Lead (JSON)

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 10 - Save Lead to CRM

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.1

Block 11 - Hot Lead?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Alert Sales in Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 13 - Draft Follow-up Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Qualify inbound leads with OpenAI, HubSpot, Slack and Gmail
Complexity intermediate
Nodes 13
Categories Lead Generation, AI Summarization
Author Abhishek Gawade
Published 15 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16386/16386.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Qualify inbound leads with OpenAI, HubSpot, Slack and Gmail do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.