Skip to main content

Real estate lead qualification chatbot with GPT-4o-mini

Workflow preview

Workflow preview
100%
Real estate lead qualification chatbot with GPT-4o-mini preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Guidebook: How the Website ChatBot Template Works Chapter 1: Introduction & Objectives This guidebook provides a comprehensive walkthrough of the Website ChatBot developed using n8n and OpenAI. The...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.respondtowebhook, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Real estate lead qualification chatbot with GPT-4o-mini
Workflow name
Real estate lead qualification chatbot with GPT-4o-mini

Guidebook: How the Website ChatBot Template Works


Chapter 1: Introduction & Objectives

This guidebook provides a comprehensive walkthrough of the Website ChatBot developed using n8n and OpenAI. The chatbot is designed to qualify real estate leads and encourage site visits for the Alcove New Kolkata Sangam project through personalized, intelligent conversations.


Chapter 2: Tools Required

1. n8n Workflow Automation Tool

An open-source workflow builder to automate data flows between services.

2. OpenAI Account with GPT-4o-mini Access

For generating AI-based chatbot responses.

3. Web Chat Widget

Frontend integration that sends messages via webhook to the chatbot.


Chapter 3: Workflow Breakdown

Step 1: Webhook

  • Receives POST requests from the chat widget.
  • Endpoint: /webhook/chatbot-webhook

Step 2: Set User Message

  • Extracts message from the JSON body.
  • Stores it as user_message.

Step 3: Memory Setup

  • Uses session ID to track conversation across messages.

Step 4: OpenAI Chat Model

  • GPT-4o-mini processes queries using the defined agent prompt.

Step 5: AI Agent (Khusboo)

  • Persona of a pre-sales agent.
  • Uses AIDA + BANT + SPIN + PAS frameworks.
  • Shares videos, responds in Hinglish, schedules site visits.

Step 6: Respond to Webhook

  • Formats the chatbot's reply into a JSON response.

Chapter 4: Strategy & Psychology Behind Responses

Framework Purpose
AIDA Capture attention, interest, desire, action
BANT Qualify Budget, Authority, Need, Timing
SPIN Understand user's Situation, Problems, Implications
PAS Tackle objections using Problem, Agitation, Solution

The chatbot aims to qualify leads and gently move them toward booking a site visit without pushing or over-informing.


Chapter 5: Setup Instructions

A. n8n Workflow Setup

  1. Import the JSON workflow.
  2. Ensure OpenAI credentials are set up.
  3. Enable webhook at /webhook/chatbot-webhook.

B. Frontend Widget Integration

  • Send message as POST to the webhook with structure:
{
  "message": "Looking for 2 BHK",
  "session_id": "user123"
}

Chapter 6: Testing & Troubleshooting

Test via Postman

  • Send sample request to verify AI response.

Common Issues

Issue Fix
No response Check webhook URL or credentials
Repeated replies Ensure memory node is active
Wrong language Check system message language rules

Chapter 7: Sample Conversations

User: Hi, I’m looking for a home near the Ganga.

Bot: Namaste! Main Khusboo hoon, Alcove New Kolkata Sangam se. Aapka naam kya hai?

User: Rajat.

Bot: Great Rajat! Kya aap apne family ke saath shift hone ka plan kar rahe ho?

... (continues using frameworks)


Chapter 8: FAQs & Maintenance Tips

Q: Can I update the AI agent persona? A: Yes, by modifying the system message inside the AI Agent node.

Q: How do I share new videos or links? A: Add them in the sharingVideos or UserRequests section in the system message.

Q: How to scale this for multiple projects? A: Duplicate the workflow and update the aboutProject and links accordingly.


End of Guidebook.

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 - Webhook

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

Block 2 - Set User Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 2

Block 3 - AI Agent

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

Block 4 - Respond to Webhook

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

Block 5 - OpenAI Chat Model

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

Block 6 - Simple Memory

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

3. Summary Table

Workflow Real estate lead qualification chatbot with GPT-4o-mini
Complexity intermediate
Nodes 6
Categories Lead Nurturing, AI Chatbot
Author Tausif
Published 19 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6162/6162.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 Real estate lead qualification chatbot with GPT-4o-mini do?

Guidebook: How the Website ChatBot Template Works Chapter 1: Introduction & Objectives This guidebook provides a comprehensive walkthrough of the Website ChatBot developed using n8n and OpenAI. The...

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.