Skip to content
SHIVSASTRA
RG-AI2025AI Automation · Conversational WorkflowsNov 15, 2025

RealGuard

AI automation and conversational workflows for real estate. WhatsApp conversational input → Groq parameter extraction → Java business logic → RERA lookup → in-app EMI calculation → CRM persistence → broker workflow. The LLM extracts parameters while application logic handles authoritative calculations.

RealGuard
Technologies
AI AutomationTwilio WhatsApp APIGroq LLMSpring BootMySQLHibernate ORM
Engineering Deep Dive & Architecture

Overview

RealGuard is an AI automation and conversational workflow assistant that connects WhatsApp messaging to verified business logic for real estate brokers.

Architecture & Conversational Flow

The system enforces strict separation between conversational interpretation and authoritative domain calculations:

  1. WhatsApp Webhook Intake: Prospective buyers message through WhatsApp via Twilio webhooks.
  2. Conversational Parameter Extraction: Groq API (Llama 3) parses unstructured chat to extract budget, preferred locality, BHK requirements, and timeframe into structured JSON parameters.
  3. Java Business Logic Routing: Spring Boot services validate incoming parameters against application boundaries and route to specific sub-modules.
  4. RERA Registry Lookup: Queries registered project records to cross-reference developer legitimacy against official regulatory records.
  5. Deterministic EMI Calculation: Computes loan interest, tenure amortization, and monthly EMI figures strictly within deterministic application code — the LLM never performs financial calculations.
  6. CRM Persistence & Broker Notification: Stores buyer records and interaction history in MySQL via Hibernate ORM and dispatches structured lead summaries to real estate brokers.

Key Engineering Lessons

  • AI for Extraction, Code for Math: Language models interpret conversational nuance, but authoritative financial calculations and compliance rules belong strictly in verified application code.
  • Webhook Integrity: Spring Boot verifies Twilio webhook signatures before processing messages to prevent forged broker dispatch events.
  • Structured Lead Qualification: Normalizes free-form text conversations into standardized relational CRM records without requiring rigid UI forms.

Implementation Stack

Engineered with Java 17, Spring Boot, MySQL, Hibernate ORM, Twilio WhatsApp API, and Groq API.

Questions about this project?

Feel free to reach out if you'd like to talk about the tech stack, implementation, or a similar project.

Get in Touch →