Skip to main content

Qualify WhatsApp insurance leads with OpenAI, HubSpot, and Slack

Workflow preview

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

1. Workflow Overview

Quick overview This workflow handles inbound WhatsApp insurance inquiries, uses OpenAI to converse with leads and remember context per phone number, then extracts a qualification decision, score, a...

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.whatsapptrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.whatsapp, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.outputparserstructured

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 WhatsApp insurance leads with OpenAI, HubSpot, and Slack
Workflow name
Qualify WhatsApp insurance leads with OpenAI, HubSpot, and Slack

Quick overview

This workflow handles inbound WhatsApp insurance inquiries, uses OpenAI to converse with leads and remember context per phone number, then extracts a qualification decision, score, and summary, upserts qualified leads to HubSpot, and alerts a Slack channel when a lead requests a human.

How it works

  1. Triggers whenever a new WhatsApp message is received via WhatsApp Business Cloud.
  2. Uses OpenAI to reply in the lead’s language, collect consent and key qualifying details, and maintain conversation context per phone number.
  3. Sends the assistant’s reply back to the lead on WhatsApp.
  4. Uses OpenAI again to convert the latest message and reply into structured lead data (qualified flag, 0–100 score, intent, wants-human flag, email, and a one-sentence summary).
  5. Upserts the lead as a HubSpot contact with the AI summary and score when the lead is marked qualified.
  6. Posts a handover alert to Slack when the lead asks for a human or the conversation indicates a human is needed.

Setup

  1. Connect credentials for WhatsApp Business Cloud, OpenAI, HubSpot, and Slack.
  2. Set your WhatsApp Phone Number ID in the WhatsApp send message step and ensure the WhatsApp trigger is subscribed to message updates.
  3. Select the Slack channel to receive handover alerts.
  4. Review and customize the assistant’s system prompt (persona, consent/STOP handling, and qualifying questions) to match your compliance and sales process.

Requirements

  • WhatsApp Business Cloud account (Meta) with a connected phone number ID
  • OpenAI API key (works great with gpt-4o-mini)
  • HubSpot account (free tier is fine)
  • Slack workspace + a channel for sales alerts
  • n8n with the LangChain / AI nodes available (cloud or self-hosted v1.x+)

Customization

  • Swap the CRM: replace the HubSpot node with Salesforce, Pipedrive, or an HTTP Request to a custom REST API
  • Edit the persona and qualifying questions in the "AI Insurance Assistant" node to fit any industry (real estate, solar, healthcare, etc.)
  • Change the qualification threshold/logic in the "Qualified Lead?" and "Wants a Human?" IF nodes
  • Add omnichannel fallback: a Twilio call, SendGrid email, or Calendly booking link off the routing branches
  • Route handover to email or a ticketing tool instead of Slack
  • Add a Google Sheets / database node to log every conversation for analytics

Additional info

This template uses natural-language qualification (not button trees) with per-contact memory, so it handles multi-message, multi-day conversations and auto-detects the lead's language. It includes a built-in consent prompt and STOP opt-out for POPIA/GDPR-friendly handling. No credentials are bundled — connect your own WhatsApp, OpenAI, HubSpot and Slack accounts, set your WhatsApp phone number ID on the two WhatsApp nodes, and activate. Each inbound message uses ~1–2 OpenAI calls, so a low-cost model is recommended.

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: Converse

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: Route

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

Block 6 - Lead Messages on WhatsApp

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

Block 7 - AI Insurance Assistant

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 8 - Chat Model (Conversation)

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

Block 9 - Remember Conversation

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 10 - Reply on WhatsApp

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

Block 11 - Qualify & Score Lead

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

Block 12 - Chat Model (Analysis)

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

Block 13 - Parse Lead Data (JSON)

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

Block 14 - Qualified Lead?

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

Block 15 - Upsert Lead in CRM

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

Block 16 - Wants a Human?

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

Block 17 - Alert Sales Team (Handover)

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

3. Summary Table

Workflow Qualify WhatsApp insurance leads with OpenAI, HubSpot, and Slack
Complexity advanced
Nodes 17
Categories Lead Nurturing, AI Chatbot
Author Abhishek Gawade
Published 28 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16007/16007.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 WhatsApp insurance leads with OpenAI, HubSpot, and Slack do?

Quick overview This workflow handles inbound WhatsApp insurance inquiries, uses OpenAI to converse with leads and remember context per phone number, then extracts a qualification decision, score, 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 Nurturing, AI Chatbot use case.