Real estate property search with SQL database and email delivery
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 π₯
- π Download the data
- πΎ Download CSV file (1000+ properties included)
- ποΈ 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)
);
- π Import your CSV data into this table
Step 2: Configure Database Connection π
- π Set up Microsoft SQL Server credentials in n8n
- β Test connection to ensure everything works
- π― Workflow is pre-configured for the table structure above
Step 3: Gmail Setup (The Magic Touch) π§
- π Visit Google Cloud Console
- π Create new project (or use existing)
- π Enable Gmail API in API Library
- π Create OAuth2 credentials (Web Application)
- βοΈ Add your n8n callback URL to authorized redirects
- π Configure Gmail OAuth2 credentials in n8n
- β¨ Authorize your Google account
Step 4: Launch Your Property Search Portal π
- π Import this workflow template (form is pre-configured)
- π Copy your webhook URL from the Property Search Form node
- π Test with a sample property search
- π¨ Check email delivery with CSV attachment
- π 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
- Import this workflow template
- Configure your database and Gmail
- Customize branding and messaging
- Launch your professional property search portal
- 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
- 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.
- 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.
- 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.
- 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
-
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.
-
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.
-
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.
-
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:
Adjust the table and column names to match your database schema.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 }}';
-
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.
-
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.comor 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.
-
Activate the Workflow:
- Once all nodes are configured, save and activate the workflow.
-
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.
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
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.