Qualify real estate leads and send instant replies with OpenAI, Gmail, and Google Sheets
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail and Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Agent Details (Edit Fields (Set)): sets 6 fields: businessName, agentName, agentEmail…
- Normalize Lead Data (Code): runs custom JavaScript code
- Build AI Request Data (Code): runs custom JavaScript code
- Post to AI Endpoint (HTTP Request): calls an HTTP API (POST)
- Parse AI Response (Code): runs custom JavaScript code
- Send Email to Lead (Gmail): uses Gmail
- Notify Agent via Email (Gmail): uses Gmail
- Log Details in CRM Sheets (Google Sheets): append
Services it uses
Other Google Sheets + Gmail templates (2,102)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
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…