Skip to main content

Qualify real estate leads and send instant replies with OpenAI, Gmail, and Google Sheets

Workflow preview

Workflow preview
100%
Qualify real estate leads and send instant replies with OpenAI, Gmail, and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow captures real estate leads via a webhook, uses an OpenAI compatible Chat Completions API call to qualify and draft a reply, then sends emails through Gmail and logs the...

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.webhook, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.gmail, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Qualify real estate leads and send instant replies with OpenAI, Gmail, and Google Sheets
Workflow name
Qualify real estate leads and send instant replies with OpenAI, Gmail, and Google Sheets

Quick overview

This workflow captures real estate leads via a webhook, uses an OpenAI-compatible Chat Completions API call to qualify and draft a reply, then sends emails through Gmail and logs the lead to Google Sheets.

How it works

  1. Receives a new lead submission via a POST webhook from a web form.
  2. Normalizes the incoming lead fields (name, email, phone, budget, interest, timeline, message) and applies your business and agent settings.
  3. Sends the lead details to an OpenAI-compatible Chat Completions endpoint to classify the lead as HOT/WARM/COLD and generate a subject and follow-up email body.
  4. Parses the AI response (or falls back to defaults if parsing fails) and merges it back into the lead record.
  5. Sends the generated reply to the lead via Gmail and emails the agent a notification that includes the AI verdict.
  6. Appends the lead details and AI score/reason to a Google Sheets tab for CRM-style tracking.

Setup

  1. Configure the webhook URL from “New Lead (Web Form)” in your website form/Facebook lead form so it sends a POST request to /realestate-lead.
  2. Add Gmail credentials for both outgoing emails and confirm the workflow is allowed to send to leads and your agent address.
  3. Add an HTTP Request credential (or set the required Authorization header) for your OpenAI-compatible API endpoint, and verify the model name in the settings.
  4. Add Google Sheets credentials, paste your Google Sheet URL in the logging step, and ensure a tab named Leads exists with matching columns (name, email, phone, budget, interest, timeline, score, reason).
  5. Update the Settings values (business name, agent name/email, booking link, AI URL/model) to match your environment.

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - When Lead Form Submitted

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

Block 6 - Set Agent Details

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

Block 7 - Normalize Lead Data

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

Block 8 - Build AI Request Data

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

Block 9 - Post to AI Endpoint

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Parse AI Response

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

Block 11 - Send Email to Lead

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

Block 12 - Notify Agent via Email

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

Block 13 - Log Details in CRM Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

3. Summary Table

Workflow Qualify real estate leads and send instant replies with OpenAI, Gmail, and Google Sheets
Complexity intermediate
Nodes 13
Categories Lead Generation, AI Summarization
Author Soumyajit
Published 03 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16092/16092.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 real estate leads and send instant replies with OpenAI, Gmail, and Google Sheets do?

Quick overview This workflow captures real estate leads via a webhook, uses an OpenAI compatible Chat Completions API call to qualify and draft a reply, then sends emails through Gmail and logs 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 Generation, AI Summarization use case.