A full-stack real estate application featuring an AI-powered chatbot built with LangGraph and a React frontend integrated with CometChat.
This project consists of two main components:
- Backend - LangGraph-based AI agent with property search, listing details, FAQ knowledge base, and tour scheduling
- UI - React frontend with Zillow-style interface and CometChat integration
cd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env
# Edit .env with your OpenAI API key and Google Calendar credentials
python -m app.mainThe backend server will start at http://localhost:8000. You can access the interactive API documentation (Swagger UI) at http://localhost:8000/docs.
This application requires a CometChat account for the AI assistant chat functionality.
- Create a CometChat account and set up an app
- In the CometChat dashboard, create a LangGraph AI agent
- Configure the agent's endpoint URL as your backend's
/runendpoint- CometChat requires a publicly accessible URL (localhost won't work)
- For local development: Use a tunnel like ngrok to expose your backend (e.g.,
https://abc123.ngrok.io/run) - For production: Use your deployed backend URL (e.g.,
https://your-domain.com/run) - Tip: Append
?debug=1to the URL (e.g.,https://abc123.ngrok.io/run?debug=1) to enable verbose logging of requests and LLM calls for debugging
- Note your App ID, Region, Auth Key, and the Assistant UID from the dashboard
cd ui
npm install
cp .env.example .env
# Edit .env with your CometChat credentials
npm run devThe UI will start at http://localhost:5173.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ │ │ │ │ │
│ React UI │────▶│ CometChat │────▶│ LangGraph │
│ (Vite) │ │ Platform │ │ Backend │
│ │◀────│ │◀────│ (FastAPI) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
- Property Search - Search by location, price, beds, baths, sqft, and home type
- Listing Details - View comprehensive property information including schools and climate factors
- Knowledge Base - Get answers about Zillow policies and programs
- Tour Scheduling - Book property tours via Google Calendar integration
- AI Chat - Natural language interface powered by GPT-4o
- Backend Documentation - API details, setup, and development guide
- UI Documentation - Frontend setup and CometChat configuration
See LICENSE for details.