Back to Catalog

Real estate property search with SQL database and email delivery

DataMinexDataMinex
2055 views
2/3/2026
Official Page

Transform property searches into personalized experiences! This powerful automation delivers dream home matches straight to clients' inboxes with professional CSV reports - all from a simple web form.

πŸš€ What this workflow does

Create a complete real estate search experience that works 24/7:

✨ Smart Web Form - Beautiful property search form captures client preferences
🧠 Dynamic SQL Builder - Intelligently creates optimized queries from user input
⚑ Lightning Database Search - Scans 1000+ properties in milliseconds
πŸ“Š Professional CSV Export - Excel-ready reports with complete property details
πŸ“§ Automated Email Delivery - Personalized emails with property previews and attachments

🎯 Perfect for:

  • Real Estate Agents - Generate leads and impress clients with instant service
  • Property Managers - Automate tenant matching and recommendations
  • Brokerages - Provide 24/7 self-service property discovery
  • Developers - Showcase available properties with professional automation

πŸ’‘ Why this workflow is a game-changer

> "From property search to professional report delivery in under 30 seconds!"

  • ⚑ Instant Results: Zero wait time for property matches
  • 🎨 Professional Output: Beautiful emails that showcase your expertise
  • πŸ“± Mobile Optimized: Works flawlessly on all devices
  • 🧠 Smart Filtering: Only searches criteria clients actually specify
  • πŸ“ˆ Infinitely Scalable: Handles unlimited searches simultaneously

πŸ“Š Real Estate Data Source

Built on authentic US market data from the Github:

  • 🏘️ 1000+ Real Properties across all US states
  • πŸ’° Actual Market Prices from legitimate listings
  • 🏠 Complete Property Details (bedrooms, bathrooms, square footage, lot size)
  • πŸ“ Verified Locations with accurate cities, states, and ZIP codes
  • 🏒 Broker Information for authentic real estate context

πŸ› οΈ Quick Setup Guide

Prerequisites Checklist βœ…

  • [ ] SQL Server database (MySQL/PostgreSQL also supported)
  • [ ] Gmail account for automated emails
  • [ ] n8n instance (cloud or self-hosted)
  • [ ] 20 minutes setup time

Step 1: Import Real Estate Data πŸ“₯

  1. 🌟 Download the data
  2. πŸ’Ύ Download CSV file (1000+ properties included)
  3. πŸ—„οΈ Create SQL Server table with this exact schema:
CREATE TABLE [REALTOR].[dbo].[realtor_usa_price] (
    brokered_by BIGINT,
    status NVARCHAR(50),
    price DECIMAL(12,2),
    bed INT,
    bath DECIMAL(3,1),
    acre_lot DECIMAL(10,8),
    street BIGINT,
    city NVARCHAR(100),
    state NVARCHAR(50),
    zip_code INT,
    house_size INT,
    prev_sold_date NVARCHAR(50)
);
  1. πŸ“Š Import your CSV data into this table

Step 2: Configure Database Connection πŸ”—

  1. πŸ” Set up Microsoft SQL Server credentials in n8n
  2. βœ… Test connection to ensure everything works
  3. 🎯 Workflow is pre-configured for the table structure above

Step 3: Gmail Setup (The Magic Touch) πŸ“§

  1. 🌐 Visit Google Cloud Console
  2. πŸ†• Create new project (or use existing)
  3. πŸ”“ Enable Gmail API in API Library
  4. πŸ”‘ Create OAuth2 credentials (Web Application)
  5. βš™οΈ Add your n8n callback URL to authorized redirects
  6. πŸ”— Configure Gmail OAuth2 credentials in n8n
  7. ✨ Authorize your Google account

Step 4: Launch Your Property Search Portal πŸš€

  1. πŸ“‹ Import this workflow template (form is pre-configured)
  2. 🌍 Copy your webhook URL from the Property Search Form node
  3. πŸ” Test with a sample property search
  4. πŸ“¨ Check email delivery with CSV attachment
  5. πŸŽ‰ Go live and start impressing clients!

🎨 Customization Playground

🏷️ Personalize Your Brand

// Customize email subjects in the Gmail node
"🏠 Exclusive Properties Curated Just for You - ${results.length} Perfect Matches!"
"✨ Your Dream Home Portfolio - Handpicked by Our Experts"
"🎯 Hot Market Alert - ${results.length} Premium Properties Inside!"

πŸ”§ Advanced Enhancements

  • 🎨 HTML Email Templates: Create stunning visual emails with property images
  • πŸ“Š Analytics Dashboard: Track popular searches and user engagement
  • πŸ”” Smart Alerts: Set up automated price drop notifications
  • πŸ“± Mobile Integration: Connect to React Native or Flutter apps
  • πŸ€– AI Descriptions: Add ChatGPT for compelling property descriptions

🌍 Multi-Database Flexibility

// Easy database switching
// MySQL: Replace Microsoft SQL node β†’ MySQL node
// PostgreSQL: Swap for PostgreSQL node  
// MongoDB: Use MongoDB node with JSON queries
// Even CSV files: Use CSV reading nodes for smaller datasets

πŸš€ Advanced Features & Extensions

πŸ”₯ Pro Tips for Power Users

  • πŸ”„ Bulk Processing: Handle multiple searches simultaneously
  • πŸ’Ύ Smart Caching: Store popular searches for lightning-fast results
  • πŸ“ˆ Lead Scoring: Track which properties generate most interest
  • πŸ“… Follow-up Automation: Schedule nurturing email sequences

🎯 Integration Possibilities

  • 🏒 CRM Connection: Auto-add qualified leads to your CRM
  • πŸ“… Calendar Integration: Add property viewing scheduling
  • πŸ“Š Price Monitoring: Track market trends and price changes
  • πŸ“± Social Media: Auto-share featured properties to social platforms
  • πŸ’¬ Chat Integration: Connect to WhatsApp or SMS for instant alerts

πŸ”— Expand Your Real Estate Automation

🌟 Related Workflow Ideas

  • πŸ€– AI Property Valuation - Add machine learning for price predictions
  • πŸ“Š Market Analysis Reports - Generate comprehensive market insights
  • πŸ“± SMS Property Alerts - Instant text notifications for hot properties
  • 🏒 Commercial Property Search - Adapt for office and retail spaces
  • πŸ’Ή Investment ROI Calculator - Add financial analysis for investors
  • 🏘️ Neighborhood Analytics - Include school ratings and demographics

πŸ› οΈ Technical Extensions

  • πŸ“· Image Processing: Auto-resize and optimize property photos
  • πŸ—ΊοΈ Map Integration: Add interactive property location maps
  • πŸ“± Progressive Web App: Create mobile app experience
  • πŸ”” Push Notifications: Real-time alerts for saved searches

πŸš€ Get Started Now

  1. Import this workflow template
  2. Configure your database and Gmail
  3. Customize branding and messaging
  4. Launch your professional property search portal
  5. Watch client satisfaction soar!

Real Estate Property Search with SQL Database and Email Delivery

This n8n workflow automates the process of searching for real estate properties in a SQL database, converting the results into a downloadable file, and then sending that file via email. It's designed to streamline property data retrieval and distribution.

What it does

  1. Triggers on Form Submission: The workflow starts when an n8n form is submitted. This form is expected to contain search criteria for real estate properties.
  2. Queries Microsoft SQL Database: It connects to a Microsoft SQL database to execute a query based on the input received from the form. This step retrieves the relevant property data.
  3. Converts Data to File: The retrieved property data is then converted into a file format (e.g., CSV, JSON, etc., depending on configuration). This makes the data easily shareable and downloadable.
  4. Sends Email with File Attachment: Finally, the generated file containing the property search results is attached to an email and sent via Gmail.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running instance of n8n.
  • Microsoft SQL Database: Access to a Microsoft SQL database containing your real estate property data. You will need the necessary connection details (host, port, database name, credentials).
  • Gmail Account: A configured Gmail credential in n8n to send emails.
  • n8n Form: An n8n form configured to collect search parameters (e.g., property type, location, price range) that will be used in the SQL query.

Setup/Usage

  1. Import the Workflow:

    • Download the provided JSON workflow definition.
    • In your n8n instance, go to "Workflows" and click "New".
    • Click the three-dot menu in the top right and select "Import from JSON".
    • Paste the JSON content or upload the file.
  2. Configure Credentials:

    • Microsoft SQL: Locate the "Microsoft SQL" node. Click on "Credential" and either select an existing Microsoft SQL credential or create a new one. Provide your database connection details (host, port, database, user, password).
    • Gmail: Locate the "Gmail" node. Click on "Credential" and either select an existing Gmail OAuth credential or create a new one. Follow the steps to authenticate with your Google account.
  3. Configure the "On form submission" Trigger:

    • Open the "On form submission" node.
    • Define the fields that your form will collect (e.g., propertyType, minPrice, maxPrice, location). These fields will be used to construct the SQL query.
    • Once configured, activate the workflow and copy the webhook URL provided by this node. This URL is where your form submissions will be sent.
  4. Configure the "Microsoft SQL" Node:

    • Edit the "Microsoft SQL" node.
    • Set the "Operation" to "Execute Query".
    • In the "Query" field, write your SQL SELECT statement. Use expressions to dynamically insert values from the form trigger. For example:
      SELECT * FROM Properties WHERE type = '{{ $('On form submission').item.json.propertyType }}' AND price BETWEEN {{ $('On form submission').item.json.minPrice }} AND {{ $('On form submission').item.json.maxPrice }} AND location = '{{ $('On form submission').item.json.location }}';
      
      Adjust the table and column names to match your database schema.
  5. Configure the "Convert to File" Node:

    • Open the "Convert to File" node.
    • Choose the desired "File Format" (e.g., CSV, JSON, Excel).
    • Configure any other options like "Delimiter" or "Include Headers" as needed.
  6. Configure the "Gmail" Node:

    • Edit the "Gmail" node.
    • Set the "Operation" to "Send Email".
    • Specify the recipient email address(es) in the "To" field (e.g., user@example.com or dynamically from the form {{ $('On form submission').item.json.email }}).
    • Enter a "Subject" (e.g., "Your Property Search Results").
    • Add "Body" text for the email.
    • Ensure "Attach Binary Data" is enabled and correctly points to the output of the "Convert to File" node.
  7. Activate the Workflow:

    • Once all nodes are configured, save and activate the workflow.
  8. Test the Workflow:

    • Submit your n8n form with some test data.
    • Check your n8n execution logs to ensure the workflow ran successfully.
    • Verify that you receive an email with the attached property data.

This workflow provides a robust solution for delivering tailored property search results directly to users via email, leveraging your existing SQL database.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger β€” Manually start the workflow or schedule it to run periodically. Input Setup β€” Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) β€” Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring β€” Clean and convert GPT output into JSON format. Data Storage (Google Sheets) β€” Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the β€œSet Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors β†’ Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection β†’ Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report β†’ Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization β†’ Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs β†’ Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax

Spark your creativity instantly in any chatβ€”turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. πŸ“‹ What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing πŸ”§ Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation πŸ”‘ Required Credentials OpenAI API Setup Go to platform.openai.com β†’ API keys (sidebar) Click "Create new secret key" β†’ Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai β†’ Dashboard β†’ API Keys Generate a new API key β†’ Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) βš™οΈ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflowβ€”chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions

Daniel NkenchoBy Daniel Nkencho
601

AI-powered code review with linting, red-marked corrections in Google Sheets & Slack

Advanced Code Review Automation (AI + Lint + Slack) Who’s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting β€” all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0–10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow β€” reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why it’s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n β€” combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.

higashiyama By higashiyama
90