π¬ Answer real estate questions with AI using PropertyFinder.ae, OpenRouter, and SerpAPI
β‘ 576 views Β· π¬ Support Chatbots
π‘ Pro Tip β HTTP Request scraping tends to break when sites update their markup. If youβre scraping a major platform, check if ScraperNode covers it β it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
AI Real Estate Agent with OpenRouter and SrpAPI to talk with property objects from propertyfinder.ae
This n8n template demonstrates a simple AI Agent that can:
- Scrape information from a provided
propertyfinder.aelisting link. - Answer questions about a specific property using the scraped information.
- Use SerpAPI to find details that are missing from the scraped data.
- Answer general real-estate questions using SerpAPI.
Use Case
This workflow serves as a starting point for building complex AI assistants for real estate or other domains.
See the demo video
Potential Enhancements
- Expand Knowledge: Augment the workflow with your own knowledge base using a vector database (RAG approach).
- Add More Sources: Adapt the scraper to support other real estate websites.
- Optimize Speed: Add a cache for scraped data to reduce response latency.
- Improve Context Handling: Implement reliable persistence to track the current listing instead of iterating through conversation history.
- Customize Prompts: Write more tailored prompts for your specific needs (the current one is for demonstration only).
- Integrate Channels: Connect the workflow to communication channels like Instagram, Telegram, or WhatsApp.
How It Works
- The workflow is triggered by a βWhen chat message receivedβ node for simple demonstration.
- The
Chat Memory Managernode extracts the last 30 messages for the current session. - A code node finds the property link, first by checking the most recent user message and then by searching the conversation history.
- If a link is found, an
HTTP Requestnode scrapes the HTML content from the listing page. - The
Summarizecode node parses the HTML, retrieves key information, and passes it to the AI Agent as a temporary knowledge base. - The final
AI Agentnode answers user queries using the scraped knowledge base and falls back to the SerpAPI tool when information is missing.
How to Use
- You can test this workflow directly in n8n or integrate it into any social media channel or your website.
- The
AI Agentnode is configured to use OpenRouter. Add your OpenRouter credentials, or replace the node with your preferred LLM provider. - Add your SerpAPI key to the
SerpAPItool within the AI Agent node.
Requirements
- An API key for OpenRouter (or credentials for your preferred LLM provider).
- A SerpAPI key. You can get one from their website; a free plan is available for testing.
Need Help Building Something More?
Contact me on:
- Telegram: @ninesfork
- LinkedIn: George Zargaryan
Happy Hacking! π
π Nodes Used
HTTP Request, AI Agent, Simple Memory, SerpApi (Google Search), Chat Memory Manager, Chat Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File