How isl270/multi-agent-ai-realtor works
This is a LangGraph real-estate assistant. A user submits a chat request; the supervisor routes property searches to an agent that parses filters and queries Supabase, then creates a property carousel, or routes viewing requests to calendar tools that check availability and book appointments. The supervisor also manages conversation memory. The React UI renders the carousel. Calendar tool excerpts were not provided, so their links to the calendar utility rely on the SOURCE INDEX; UI delivery details are documented in the README.
Main entry points: supervisor.py Supervisor · property_finder_agent.py Property Finder · parse_property_search_query.py Query parser · search_properties.py Property search
Components 23
Conversation orchestration
- LangGraph entry
src/graph.py - Supervisor
src/agents/supervisor/supervisor.py - Shared app state
src/agents/supervisor/app_state.py - User profile
src/agents/supervisor/user_profile.py
Property search
- Property Finder
src/agents/property_finder/property_finder_agent.py - Query parser
src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py - Search filters
src/agents/property_finder/tools/parse_property_search_query/property_search_filters.py - Property search
src/agents/property_finder/tools/search_properties/search_properties.py - Property model
src/agents/property_finder/tools/search_properties/property.py
Viewing scheduling
- Calendar Manager
src/agents/calendar_manager/calendar_manager.py - Find availability
src/agents/calendar_manager/tools/find_available_slots.py - Schedule viewing
src/agents/calendar_manager/tools/schedule_viewing.py
Generative UI
- Carousel renderer
src/agents/supervisor/tools/render_property_carousel.py - Agent chat UI
src/frontend/ui.tsx - Property carousel
src/frontend/carousel.tsx - Carousel controls
src/frontend/button.tsx
External integrations
- Supabase client
src/utils/supabase.py - Supabase properties
- Google Calendar client
src/utils/google_calendar.py - Google Calendar
- LLM configuration
src/utils/llm_config.py - OpenAI models
Other components
- Chat user
Connections 25
- Chat user → LangGraph entry: sends request
README.md - LangGraph entry → Supervisor: creates graph
src/graph.py - Supervisor → Property Finder: delegates search
src/agents/supervisor/supervisor.py - Supervisor → Calendar Manager: delegates scheduling
src/agents/supervisor/supervisor.py - Supervisor → Shared app state: uses state
src/agents/supervisor/supervisor.py - Supervisor → User profile: manages memory
src/agents/supervisor/supervisor.py - Property Finder → Query parser: invokes tool
src/agents/property_finder/property_finder_agent.py - Property Finder → Property search: invokes tool
src/agents/property_finder/property_finder_agent.py - Query parser → Search filters: produces filters
src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py - Query parser → LLM configuration: selects model
src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py - Property search → Supabase client: queries RPC
src/agents/property_finder/tools/search_properties/search_properties.py - Supabase client → Supabase properties: accesses data
- Property search → Property model: maps results
src/agents/property_finder/tools/search_properties/search_properties.py - Property Finder → Shared app state: updates results
src/agents/property_finder/property_finder_agent.py - Calendar Manager → Find availability: invokes tool
src/agents/calendar_manager/calendar_manager.py - Calendar Manager → Schedule viewing: invokes tool
src/agents/calendar_manager/calendar_manager.py - Find availability → Google Calendar client: checks slots
src/agents/calendar_manager/tools/find_available_slots.py - Schedule viewing → Google Calendar client: creates event
src/agents/calendar_manager/tools/schedule_viewing.py - Google Calendar client → Google Calendar: uses API
- Supervisor → Carousel renderer: renders results
src/agents/supervisor/supervisor.py - Carousel renderer → Shared app state: reads properties
src/agents/supervisor/tools/render_property_carousel.py - Agent chat UI → Property carousel: renders component
src/frontend/ui.tsx - Property carousel → Carousel controls: uses controls
src/frontend/carousel.tsx - Agent chat UI → Chat user: displays results
README.md - LLM configuration → OpenAI models: selects model