AI-real-estate-lead-orchehestrator

byRishiraj Bhattacharjee

# Product Requirements Document (PRD) # AI Lead Journey Operating System for Real Estate Developers **Version:** 1.0 **Status:** In Development **Author:** Rishiraj Bhattacharjee **Product Type:** SaaS Platform --- # 1. Vision Build an AI-powered operating system that automatically manages, nurtures, tracks, and converts real estate enquiries into booked site visits while providing complete auditability, deterministic workflows, and human oversight. The platform should behave like an intelligent sales coordinator—not just a chatbot. It should understand customer intent, decide the appropriate business action, execute follow-ups automatically, and maintain a complete history explaining every decision. --- # 2. Problem Statement Real estate developers generate hundreds of enquiries every month from multiple channels. Common challenges include: * Slow response times * Manual WhatsApp follow-ups * Sales executives forgetting leads * Leads becoming cold * No visibility into why a lead stopped converting * No structured understanding of customer intent * CRM records becoming inconsistent over time Existing CRMs only store information. They do not actively manage the customer journey. --- # 3. Product Goal Automatically move every lead through a structured customer journey: ```text Lead Captured ↓ Immediate Engagement ↓ Intent Understanding ↓ Automated Follow-up ↓ Human Intervention (when required) ↓ Site Visit ↓ Booking ``` while ensuring every decision is: * explainable * deterministic * replayable * auditable --- # 4. Core Principles ## 4.1 Workflow First Business rules drive decisions. AI provides inputs—not business decisions. --- ## 4.2 AI as an Assistant AI determines: * customer intent * conversation understanding AI never directly updates business state. --- ## 4.3 Deterministic Workflow Given the same inputs: ```text State + Intent + Trigger + Policy ``` the workflow must always produce the same outcome. --- ## 4.4 Immutable History Nothing is overwritten. Every meaningful action becomes an immutable transition. --- ## 4.5 Replayability The system must always answer: > Why is this lead in its current state? using historical transitions alone. --- # 5. High-Level Architecture ```text Lead Sources │ ▼ Lead Intake │ ▼ Conversation Engine │ ▼ Intent Resolution Pipeline │ ▼ Workflow Engine │ ▼ Execution Planner │ ▼ Workflow Coordinator │ ▼ Infrastructure │ ▼ Transition History │ ▼ Replay Engine │ ▼ Analytics & Reporting ``` --- # 6. User Journey ## Stage 1 — Lead Capture Lead sources: * Website * Meta Ads * Google Ads * WhatsApp * Property Portals * API * Manual Entry System actions: * Create Lead * Sync CRM * Create Conversation * Create Journey * Emit Lead Captured Event --- ## Stage 2 — Initial Engagement System automatically: * sends greeting * introduces project * asks qualifying questions Journey becomes: ```text NEW ↓ ACTIVE ``` --- ## Stage 3 — Customer Reply Customer responds. Example: > "Can you send the brochure?" The workflow pauses. Message enters the Intent Resolution Pipeline. --- ## Stage 4 — Intent Resolution Pipeline: ```text Incoming Message ↓ AI Classifier ↓ Intent Validation ↓ Confidence Policy ↓ Rule-based Fallback ↓ Journey Intent ``` Example: Message: > "I'm travelling. Call me next week." Output: ```text FOLLOW_UP_NEXT_WEEK Confidence: 0.94 ``` --- ## Stage 5 — Workflow Decision Workflow receives: ```text Current State Intent Trigger Policy ``` Example: ```text ACTIVE + FOLLOW_UP_NEXT_WEEK + MESSAGE_RECEIVED ↓ PAUSE_JOURNEY ``` --- ## Stage 6 — Execution Execution planner creates operations. Example: * Update Journey * Schedule Timer * Send WhatsApp * Emit Event * Persist Transition Coordinator executes them transactionally. --- ## Stage 7 — Replay At any point the platform can reconstruct the journey. Example: ```text NEW ↓ ACTIVE ↓ PAUSED ↓ ACTIVE ↓ BOOKED ``` If the database differs from replay: Critical Drift is reported. --- # 7. Functional Modules ## Lead Intake Responsibilities: * Accept enquiries * Validate payload * Create Lead * Emit Lead Event --- ## Conversation Engine Responsibilities: * Maintain conversations * Store inbound/outbound messages * Manage communication channels --- ## Intent Resolution Pipeline Responsibilities: * AI classification * JSON validation * Confidence validation * Rule fallback * Intent versioning Output: ```text JourneyIntent ``` --- ## Workflow Engine Responsibilities: * Evaluate business rules * Produce deterministic outcomes * No infrastructure logic --- ## Execution Planner Responsibilities: Convert workflow outcomes into executable operations. Example: ```text Send Message Schedule Evaluation Update Journey Emit Event ``` --- ## Workflow Coordinator Responsibilities: * Execute operations * Database transactions * Event emission * Scheduling --- ## Transition History Responsibilities: Store immutable journey history. Every transition records: * previous state * new state * trigger * timestamp * reason * policy * intent metadata --- ## Replay Engine Responsibilities: * Validate history * Reconstruct snapshot * Detect drift * Generate replay report --- ## Analytics Future module. Responsibilities: * Funnel reports * Policy comparison * Conversion metrics * AI effectiveness --- # 8. Customer Journey States ```text NEW ↓ ACTIVE ↓ PAUSED ↓ BOOKED ``` Possible terminal states: * BOOKED * LOST * COMPLETED --- # 9. Events Business Events * Lead Captured * Engagement Started * Message Received * Site Visit Booked * Site Visit Cancelled Operator Events * Pause Journey * Resume Journey Timer Events * Timer Expired * Follow-up Due --- # 10. Edge Cases ## AI Failure Problem LLM unavailable. Expected Behaviour Use rule-based resolver. Workflow continues. --- ## Invalid JSON Problem Model returns malformed JSON. Expected Behaviour Reject response. Invoke fallback. --- ## Unknown Intent Problem Model invents an unsupported intent. Expected Behaviour Reject. Fallback. --- ## Low Confidence Problem Confidence below policy threshold. Expected Behaviour Fallback or mark for manual review. --- ## Duplicate Events Problem WhatsApp webhook delivered twice. Expected Behaviour Ignore duplicate processing through idempotency checks. --- ## Out-of-Order Events Problem A timer fires after the lead has already reached a terminal state. Expected Behaviour Ignore the timer and preserve the terminal journey state. --- ## Illegal State Transition Problem Someone writes directly to the database: ```text BOOKED ↓ ACTIVE ``` Expected Behaviour TransitionValidator rejects the history. Replay fails with validation errors. --- ## Database Drift Problem Current database state differs from replayed state. Expected Behaviour Generate a Replay Report with severity-based drift information. --- ## Human Intervention Problem Salesperson pauses or resumes automation. Expected Behaviour Record the action as an immutable transition and continue replay support. --- ## Policy Updates Problem Follow-up rules change over time. Expected Behaviour Historical journeys remain reproducible because transition history and policy metadata are preserved. --- ## Multilingual Messages Problem Customer responds in Hindi, Hinglish, or another supported language. Expected Behaviour Intent Resolution Pipeline classifies the intent regardless of language. If confidence remains insufficient, the system falls back to deterministic rules or manual review. --- # 11. Non-Functional Requirements ### Reliability * Deterministic workflow execution * Idempotent event handling * Transactional consistency ### Observability * Structured logs * Replay reports * Drift detection * Audit history ### Scalability * Event-driven architecture * Background workers * Horizontal scaling * Queue-based processing ### Security * Role-based access * Secure API authentication * Audit logging * Data encryption where applicable --- # 12. Success Metrics (KPIs) ### Business * Average first response time * Site visit booking rate * Lead-to-booking conversion rate * Sales executive workload reduction * Lead response SLA compliance ### AI * Intent classification accuracy * Fallback usage rate * Low-confidence rate * Manual correction rate ### Platform * Workflow success rate * Replay consistency rate * Drift detection incidents * Event processing latency * Failed execution rate --- # 13. Product Roadmap ### Phase 1 — Foundation ✅ * Lead Intake * Conversation Engine * Workflow Engine * Execution Planner * Workflow Coordinator * Transition History * Replay Engine ### Phase 2 — Intelligence * Intent Resolution Pipeline * AI Prompt Versioning * Human Review Queue * Policy Engine Enhancements ### Phase 3 — Optimisation * Journey Analytics * Policy Simulator * A/B Testing * Campaign Engine * Advanced Reporting ### Phase 4 — Enterprise * Voice AI Integration * Multi-project Support * Multi-tenant Architecture * CRM Integrations * Developer SDK & APIs --- # Product Summary The platform is an **AI Lead Journey Operating System** purpose-built for real estate developers. Rather than functioning as a simple CRM or chatbot, it orchestrates the entire lifecycle of a lead—from capture to booking—using deterministic workflows, AI-assisted intent understanding, immutable event history, and replayable state reconstruction. This architecture ensures that every automated decision is explainable, every customer interaction is traceable, and every journey can be audited, replayed, and continuously improved over time.

Landing
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 5

AI-real-estate-lead-orchehestrator

1. Introduction

The AI-real-estate-lead-orchehestrator is a SaaS platform designed to automatically manage, nurture, track, and convert real estate enquiries into booked site visits. It provides complete auditability, deterministic workflows, and human oversight, functioning as an intelligent sales coordinator rather than just a chatbot. The platform aims to understand customer intent, decide the appropriate business action, execute follow-ups automatically, and maintain a complete history explaining every decision.

2. System Overview

The platform addresses common challenges faced by real estate developers, such as slow response times, manual follow-ups, and lack of visibility into lead conversion. It automates the customer journey from lead capture to booking, ensuring every decision is explainable, deterministic, replayable, and auditable.

2a. Source Content Inventory

  • Lead Sources: Website, Meta Ads, Google Ads, WhatsApp, Property Portals, API, Manual Entry
  • Functional Modules: Lead Intake, Conversation Engine, Intent Resolution Pipeline, Workflow Engine, Execution Planner, Workflow Coordinator, Transition History, Replay Engine, Analytics
  • Customer Journey States: NEW, ACTIVE, PAUSED, BOOKED
  • Events: Lead Captured, Engagement Started, Message Received, Site Visit Booked, Site Visit Cancelled, Pause Journey, Resume Journey, Timer Expired, Follow-up Due
Page 2 of 5

3. Functional Requirements as Story Points

  • As a Real Estate Developer, I want to automatically capture leads from multiple sources to streamline the lead intake process.
  • As a Sales Executive, I want the system to send automatic greetings and qualifying questions to engage new leads immediately.
  • As a Customer, I want to receive prompt responses to my inquiries to ensure my needs are addressed quickly.
  • As a System Administrator, I want to ensure that every decision made by the system is explainable and auditable.
  • As a Sales Executive, I want the system to classify customer intent accurately, even in multiple languages like Hindi or Hinglish.
  • As a System Administrator, I want to maintain an immutable history of all actions for audit and replay purposes.
  • As a Sales Executive, I want to receive alerts for human intervention when necessary to ensure no lead is lost.
  • As a System Administrator, I want to detect and report any database drift to maintain data integrity.
  • As a Sales Executive, I want to have a clear view of the customer journey to understand the current state of each lead.

4. User Personas

  • Real Estate Developer: Oversees the lead management process and ensures the platform aligns with business goals.
  • Sales Executive: Engages with leads and follows up on potential site visits and bookings.
  • Customer: Prospective buyer interacting with the platform to inquire about real estate properties.
  • System Administrator: Manages the platform's technical aspects, ensuring reliability and data integrity.

5. Core User Flows

  • Lead is captured from a source -> System sends an automatic greeting -> Customer responds -> Message enters Intent Resolution Pipeline -> System classifies intent -> Workflow decision is made -> Execution planner creates operations -> Operations are executed -> Journey is updated -> Site visit is booked or lead is paused for follow-up.
Page 3 of 5

6. Visuals Colors and Theme

  • primary: #1E90FF (Dodger Blue)
  • primary_light: #63B8FF (Light Dodger Blue)
  • secondary: #FFD700 (Gold)
  • accent: #FF4500 (Orange Red)
  • highlight: #32CD32 (Lime Green)
  • bg: #F5F5F5 (White Smoke)
  • surface: #FFFFFF (White)
  • text: #333333 (Dark Gray)
  • text_muted: #777777 (Gray)
  • border: #DDDDDD (Light Gray)

7. Signature Design Concept

Interactive Blueprint Experience

The homepage will feature an interactive blueprint of a real estate development. Users can click on different sections of the blueprint to explore various features and details of the properties. As users hover over different areas, the blueprint will animate with subtle transitions, highlighting key information and providing an immersive exploration experience.

  • Animations: Use motion/react for smooth transitions and hover effects.
  • Interactions: Clicking on a section will expand details with animations.
  • Color Shifts: The blueprint will subtly change colors to indicate active areas.
  • Micro-Interactions: Hovering over elements will provide tooltips with additional information.
Page 4 of 5

LANDING HERO MOTION BRIEF

The landing hero will feature a dynamic illustration of a real estate development transforming from a blueprint to a 3D model. As users scroll, the blueprint lines will animate into a detailed 3D rendering, showcasing the potential of the development. This transformation will highlight the platform's ability to turn leads into tangible outcomes.

  • Visible Layers: Blueprint lines, 3D model, interactive hotspots.
  • Continuous Loop: The transformation will loop every 10 seconds, showing the development process.
  • Responsive Behavior: The animation will adjust for different screen sizes, maintaining clarity and engagement.
  • Reduced-Motion State: For users with motion sensitivity, the animation will settle into a static 3D model.

8. Interaction Model & Motion Direction

  • Intended Interaction Model: Parallax
    • Layered depth via scroll with decorative layers translating at different speeds.
    • Real content stays in normal flow and scrolls naturally.
    • Best for marketing and storytelling, providing a visually rich first impression.

9. Non-Functional Requirements

  • Reliability: Deterministic workflow execution, idempotent event handling, transactional consistency.
  • Observability: Structured logs, replay reports, drift detection, audit history.
  • Scalability: Event-driven architecture, background workers, horizontal scaling, queue-based processing.
  • Security: Role-based access, secure API authentication, audit logging, data encryption where applicable.
Page 5 of 5

10. Tech Stack

  • Frontend: React for Web
  • Backend: Python, FastAPI
  • Database RDBMS: MySQL or MariaDB, use alembic for migrations
  • Database NoSQL: MongoDB
  • AI Models: GPT 5.4 for user-friendly response, Claude Sonnet 5 for academic or coding work, Gemini 3.1 pro for friendly response
  • AI Tools: Litellm for LLM Routing, Langchain
  • Local Orchestration: Docker, docker-compose
  • Server-side Orchestration: Kubernetes

11. Assumptions and Constraints

  • The platform will handle multilingual intent resolution to accommodate diverse customer interactions.
  • The system must maintain high availability and reliability to support real-time lead management.
  • Data privacy and security are paramount, requiring robust encryption and access controls.

12. Glossary

  • Lead: A potential customer interested in real estate properties.
  • Intent Resolution: The process of understanding and classifying customer inquiries.
  • Workflow: A sequence of processes through which a lead is managed from capture to booking.
  • Replayability: The ability to reconstruct the journey of a lead using historical data.
  • Deterministic Workflow: A workflow that produces the same outcome given the same inputs.
Landing design preview
Landing: Explore Blueprint
Landing: View Project Details
Chat: Receive Greeting
Chat: Ask Questions
Chat: Request Brochure
Chat: Receive Brochure
Chat: Reply in Hindi
Chat: Schedule Follow-up
Booking: Request Site Visit
Booking: Confirm Visit
Booking: Receive Confirmation
Chat: Cancel Visit
Landing design preview
Landing: Explore Blueprint
Landing: View Project Details
Chat: Receive Greeting
Chat: Ask Questions
Chat: Request Brochure
Chat: Receive Brochure
Chat: Reply in Hindi
Chat: Schedule Follow-up
Booking: Request Site Visit
Booking: Confirm Visit
Booking: Receive Confirmation
Chat: Cancel Visit