🎣 Qualify real estate leads from Typeform to Airtable with Gemini and smart email routing

⚑ 89 views · 🎣 Lead Generation & Enrichment

Description

🏠 AI Real Estate Lead Qualifier β€” Typeform to Airtable with Smart Email Routing

Automatically qualify property leads, score them with AI, save to Airtable, and send personalised emails β€” all in seconds.


πŸ“– Description

Every time a prospect submits your Typeform property inquiry, this workflow kicks in automatically. It extracts their details, runs them through an AI lead scoring engine, saves the record to Airtable, and sends a personalised email β€” a priority response for hot leads, a nurture email for everyone else.

No manual review. No missed leads. No delayed follow-ups.

This is built for real estate agencies, leasing companies, and property managers who receive inquiries through Typeform and want instant, intelligent responses without hiring extra staff.


✨ Key Features


πŸ”„ How It Works

Prospect submits Typeform inquiry
          ↓
Webhook receives the form payload
          ↓
Extract Typeform Fields
  β†’ name, email, phone, property type
  β†’ purpose, location, budget, requirements
          ↓
AI Lead Qualifier (Google Gemini)
  β†’ lead_score: High / Medium / Low
  β†’ intent, timeline, notes
          ↓
Parse AI Output (4-layer fallback)
          ↓
Save to Airtable CRM
          ↓
High Lead? (IF check)
  βœ… YES β†’ Priority Email (contact within 2 hours)
  ❌ NO  β†’ Nurture Email (contact within 1-2 days)

πŸ€– AI Lead Scoring Rules

The AI automatically classifies leads based on these criteria:

ScoreCriteria
πŸ”΄ HighHas budget + specific location + clear purpose (investment or near-term buying)
🟑 MediumPartial information β€” needs follow-up to qualify further
🟒 LowVague inquiry, missing budget or location, early exploration

The AI also extracts:


πŸ“§ Email Templates

High Lead Email

Nurture Email (Medium / Low)


πŸ›  Setup Requirements

1. Typeform Setup

Create a Typeform with these fields and note their field ref IDs from the Typeform API:

FieldTypeRequired
Full NameShort textβœ…
Phone NumberPhoneβœ…
Email AddressEmailβœ…
Property TypeMultiple choiceβœ…
PurposeMultiple choiceβœ…
Preferred LocationShort textβœ…
Budget RangeMultiple choiceβœ…
RequirementsLong textβœ…
ConsentYes/NoOptional

Connect Typeform webhook:

2. Update Field Refs

In the Extract Typeform Fields Code node, update the REF_* constants to match your actual Typeform field reference IDs:

const REF_NAME     = 'your-field-ref-here';
const REF_EMAIL    = 'your-field-ref-here';
const REF_PHONE    = 'your-field-ref-here';
// ... etc

Find your field refs from the Typeform API or by logging a test webhook payload.

3. Airtable Setup

Create an Airtable base with a table containing these fields:

Field NameField Type
Full NameSingle line text
Email AddressEmail
Mobile Phone NumberPhone
Property TypeSingle line text
PurposeSingle line text
Preferred LocationSingle line text
Budget RangeSingle line text
RequirementsLong text
Submit DateSingle line text
Lead ScoreSingle line text
IntentSingle line text
TimelineSingle line text
NotesLong text

Update the Save to Airtable node with your Base ID and Table ID.

4. Credentials Required

CredentialUsed forFree?
Google Gemini (PaLM) APIAI lead scoringFree tier available
Airtable Personal Access TokenCRM saveFree
SMTPSending emailsDepends on provider

5. Email Configuration

In both email nodes, update:

Recommended SMTP providers for testing: Mailtrap (sandbox), Gmail, SendGrid


βš™οΈ Workflow Nodes

NodeTypePurpose
WebhookWebhookReceives Typeform POST payload
Extract Typeform FieldsCodeParses answers by field ref ID
AI Lead QualifierAI AgentScores lead using Gemini
Google Gemini Chat ModelLLMAI model for scoring
Parse AI OutputCodeExtracts JSON with 4-layer fallback
Save to AirtableAirtableCreates CRM record
High Lead?IFRoutes by lead score
Priority EmailEmail SendSends to High leads
Nurture EmailEmail SendSends to Medium/Low leads

πŸ”§ Customisation

Change scoring criteria: Edit the prompt in the AI Lead Qualifier node. Add your own rules β€” e.g. score higher if budget exceeds a threshold, or if the purpose is investment.

Add more email tiers: Add a third IF branch for Low leads with a different nurture sequence, or add a Slack/WhatsApp alert for High leads.

Use a different form: The Extract Typeform Fields node uses Typeform’s field.ref system. Replace it with a Google Forms or Jotform parser by adjusting how you read the incoming webhook body.

Change the AI model: Replace the Google Gemini node with Claude, OpenAI, or any other LLM Chat Model node β€” no other changes needed.

Add lead deduplication: Before saving to Airtable, add a search step to check if the email already exists and skip or update instead of creating a duplicate.


πŸ›‘ Robustness Features

The Parse AI Output node uses a 4-layer fallback to ensure the workflow never breaks due to AI formatting issues:

  1. Direct JSON parse β€” if Gemini returns clean JSON
  2. Strip markdown fences β€” if Gemini wraps in ```json blocks
  3. Regex JSON extraction β€” if there’s extra text around the JSON
  4. Field-by-field regex β€” if JSON is malformed, extracts each field individually
  5. Default fallback β€” if all else fails, sets lead_score: Medium

This means the workflow continues and saves the record even if the AI returns unexpected output.


πŸ“Š Sample Airtable Record

Full Name:         Sarah Johnson
Email Address:     sarah@example.com
Mobile Phone:      +91 9876543210
Property Type:     2BHK Apartment
Purpose:           Investment
Preferred Location: Bandra, Mumbai
Budget Range:      β‚Ή80L - β‚Ή1.2Cr
Requirements:      Parking, gym, sea view
Submit Date:       2026-03-18T10:30:00Z
Lead Score:        High
Intent:            Serious buyer looking for investment property with strong rental yield
Timeline:          Within 3 months
Notes:             High-intent lead with clear budget and location. Has specific amenity requirements. Recommend immediate callback.

πŸ“¦ Requirements Summary


πŸ’‘ Enhancement Ideas


Built with n8n Β· Google Gemini AI Β· Typeform Β· Airtable Β· SMTP

πŸ”— Nodes Used

Airtable, Send Email, Webhook, AI Agent, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup