nBrain

Real Estate Investment AI Platform

RAG-Powered Knowledge Base, CRM & Multi-Channel Marketing Automation

Production Live Version 0.2.2 October 21, 2025

Executive Summary

Unified AI Platform for Real Estate Investment Operations

The Real Estate Investment AI Platform is an enterprise-grade system that combines Retrieval-Augmented Generation (RAG), Multi-Channel Communication, CRM, and Advanced Analytics into a unified ecosystem. Built for commercial real estate investors and operators, it automates document analysis, deal qualification, marketing campaigns, and pipeline management.

3
Microservices
15+
Core Modules
8+
API Integrations
2
PostgreSQL Databases

Platform Capabilities

KB

AI Knowledge Base

RAG system using Gemini Pro with Pinecone vector database

CM

Omnichannel Marketing

Email, SMS, voicemail campaigns with AI content generation

CR

CRM & Deal Management

Full pipeline from lead to close with automation

DS

Automated Deal Scoring

ML-based property evaluation system

AN

Advanced Analytics

Real-time dashboards and performance tracking

HR

Team Management

User permissions and activity tracking

Platform Overview

Multi-Tenant SaaS for Commercial Real Estate

Core Functions

  • Intelligent Document Analysis - Upload and query leases, contracts, financials
  • Automated Outreach - Multi-channel campaigns with AI content
  • Pipeline Management - Track deals from research through closing
  • Deal Qualification - Automated property evaluation and scoring
  • Content Generation - AI-powered email and document creation
  • Team Collaboration - User management and activity tracking

System Components

Frontend (React Static) ├─ Dashboard ├─ Knowledge Base UI ├─ CRM Interface └─ Campaign Builder │ Backend API (FastAPI/Python) ├─ RAG Engine ├─ CRM Endpoints ├─ Deal Scorer └─ AI Content Generator │ ADTV Server (Express/Node) ├─ Campaign Manager ├─ Template Builder ├─ Multi-Channel Comms └─ Inbox & Conversations │ Databases (2x PostgreSQL) ├─ Main DB └─ ADTV DB

Complete Technology Stack

Full-Stack with Dual Backend Architecture

Frontend

React 18.3.1
TypeScript 5.8.3
Vite 6.3.5
ReactFlow 11.11.4
TanStack Query 5.51.11

Backend (Python)

FastAPI Latest
SQLAlchemy ORM
LangChain Latest
Gemini Pro 1.5
Pinecone Vector DB

ADTV Server (Node)

Express 4.19.2
Prisma 5.17.0
Twilio 4.22.0
Nodemailer 7.0.6
ElevenLabs TTS

System Architecture

Microservices with Dual Database Design

┌──────────────────────────────────────────────────────┐ │ CLIENT LAYER │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │ Web │ │ Mobile │ │ External │ │ │ │ Browser │ │ (Future) │ │ APIs │ │ │ └──────────┘ └──────────┘ └──────────┘ │ └──────────────────┬───────────────────────────────────┘ │ HTTPS/REST ┌──────────────────┴───────────────────────────────────┐ │ API GATEWAY LAYER │ │ ┌──────────────────┐ ┌────────────────────┐ │ │ │ FastAPI Backend │ │ Express ADTV Server│ │ │ │ │ │ │ │ │ │ • RAG Engine │ │ • Campaign Manager │ │ │ │ • CRM Endpoints │ │ • Template Builder │ │ │ │ • Deal Scorer │ │ • Multi-Channel │ │ │ │ • AI Ideator │ │ • Inbox Management │ │ │ └────────┬─────────┘ └────────┬───────────┘ │ └───────────┼──────────────────────┼───────────────────┘ │ │ ┌──────┴──────┐ ┌─────┴──────┐ │ │ │ │ ┌────▼────┐ ┌────▼────┐ ┌▼─────┐ ┌──▼─────────┐ │Pinecone │ │Postgres │ │Postgres│ │ External │ │ Vector │ │ Main DB │ │ADTV DB │ │ APIs │ │ DB │ └─────────┘ └────────┘ │ │ │ │ │ - Twilio │ │768d │ │ - Gmail │ │Embeddings│ │ - Bonzo │ └─────────┘ └───────────┘

Core Features & Modules

15+ Integrated Modules

RAG Knowledge Base

Intelligent document analysis and Q&A using agentic RAG with query decomposition.

  • Multi-format support (PDF, DOCX, URLs)
  • Property-based filtering
  • Simple vs complex query classification
  • Agentic multi-step retrieval
  • Source citation for all responses
Production Live

CRM & Deal Pipeline

Complete pipeline management with 12 deal stages from research to closed won.

  • Contact management
  • Opportunity tracking (12 stages)
  • Activity logging (email, call, meeting)
  • Lead source attribution
  • Deal value tracking
Active

Automated Deal Scoring

ML-based property evaluation with red/yellow/green scoring and automated responses.

  • Cap rate, occupancy, traffic analysis
  • Property type-specific rules
  • LoopNet auto-scraping
  • Automated email responses
  • CRM integration
Operational

Multi-Channel Campaigns

Visual workflow builder with 13+ node types for automated marketing sequences.

  • Drag-and-drop funnel builder
  • Email, SMS, voicemail nodes
  • Wait timers & decision logic
  • Template versioning
  • Real-time analytics
Live

AI Content Generator

Bulk personalized email generation from CSV data with Gemini Pro.

  • CSV upload & processing
  • AI personalization per row
  • Tone and style control
  • Preview before generation
  • Export enhanced CSV
Active

Unified Inbox

Centralized message management across SMS and email channels with threading.

  • Multi-channel conversation view
  • Contact context sidebar
  • Quick reply functionality
  • Webhook integration (Twilio, Bonzo)
  • Status updates & search
Live

AI & RAG System

Agentic RAG with Query Decomposition

RAG Architecture

Two-tier query system for optimal performance

Simple Queries:
• Direct factual questions
• Synonym expansion
• Vector search (top_k=10)
• Concise response
Complex Queries:
• Query decomposition
• Sub-question generation
• Parallel vector searches
• Evidence synthesis
• Comprehensive analysis

AI Technologies

Gemini Pro 1.5

• Max tokens: 8,192
• Use: Chat, RAG, content generation

Gemini Embeddings

• Model: embedding-001
• Dimensions: 768
• Use: Document vectorization

ElevenLabs TTS

• Model: multilingual_v2
• Use: Voicemail generation

Deal Scoring Algorithm

Green Criteria
• Cap rate ≥6.0%
• Traffic ≥8,000/day
• Occupancy ≥90%
• Strong fit - Contact within 24h
Yellow Criteria
• Cap rate 4.5-6.0%
• Traffic 2,500-8,000/day
• Occupancy 80-90%
• Conditional interest - Follow up
Red Criteria
• Below thresholds
• Deferred maintenance
• Zoning mismatch
• Does not meet baseline

Database Architecture

Dual PostgreSQL Databases

Main Database (SQLAlchemy)

Core Tables:
  • • users - Authentication
  • • chat_sessions - RAG conversations
  • • contacts - CRM contacts
  • • opportunities - Deal pipeline
  • • activities - Interaction logs
  • • deal_submissions - Score My Deal
  • • email_campaigns - Marketing
  • • agent_ideas - AI Ideator

ADTV Database (Prisma)

Core Tables:
  • • Template - Workflow definitions
  • • Node - Workflow nodes
  • • Edge - Node connections
  • • Campaign - Active campaigns
  • • Contact - Campaign participants
  • • Conversation - Message threads
  • • Message - Individual messages
  • • ContentTemplate - Email/SMS/VM

Deal Pipeline Stages

Stage Description
ResearchInitial property identification
GatherInformation collection
Underwriting PREPreliminary analysis
Underwriting EAPDetailed underwriting
LOI SentLetter of Intent submitted
NegotiationTerms negotiation
Signed LOIAgreement reached
PSA Signed/DiligenceDue diligence period
Remove ContingenciesFirm commitment
Closed WonDeal completed
Close LostDeal failed

Security & Authentication

Multi-Layer Security

Authentication

  • ✓ JWT tokens (HS256)
  • ✓ bcrypt password hashing
  • ✓ 7-day token expiration
  • ✓ Role-based access

Input Validation

  • ✓ Pydantic (FastAPI)
  • ✓ Zod (TypeScript)
  • ✓ Email format validation
  • ✓ Phone normalization

Data Protection

  • ✓ HTTPS/TLS enforced
  • ✓ SQL injection prevention
  • ✓ CORS configuration
  • ✓ Environment variable encryption

Deployment Infrastructure

3 Microservices on Cloud Platform

Frontend (Static)

Live React SPA
Build: npm run build Output: dist/ folder CDN: Global distribution Cache: 1 year for assets Deploy: Auto on push

Backend (Python)

Live FastAPI
Runtime: Python 3.11 Framework: FastAPI/Uvicorn Build: pip install Deploy: Auto on push

ADTV Server (Node)

Live Express
Runtime: Node.js 20+ Framework: Express Build: pnpm build Deploy: Auto on push

Infrastructure Details

2
PostgreSQL Instances
Daily
Automated Backups
7 days
Point-in-Time Recovery
TLS 1.3
Encryption

Real-World Use Cases

Solving Real Estate Investment Challenges

Use Case: Property Due Diligence

Scenario: Analyzing 500-page due diligence package

Document Upload
Upload 15 PDFs (leases, financials, reports)
AI Processing
Extract text, chunk, generate embeddings
Natural Language Queries
"What is average rent per sqft?"
Complex Analysis
"Analyze lease rollover risk over 3 years"
Results
40 hours of review reduced to 4 hours
90%
Time Savings
4 hrs
vs 40 hrs Manual

Use Case: Event Marketing Campaign

Scenario: Investor seminar with 500 invitations

Campaign Flow:
✓ Day -14: Email invite (500 sent)
✓ Day -10: SMS reminder (450 sent)
✓ Day -7: Voicemail drop (400 sent)
✓ Day -3: Final email (300 sent)
✓ Day -1: Confirmation SMS (200 sent)
17.4%
Response Rate
12.4%
RSVP Rate
9.6%
Conversion Rate
48
Event Attendees

Use Case: Automated Deal Qualification

Scenario: Scoring property submissions automatically

Broker Submission
Public form with property details
Data Enhancement
Optional LoopNet scraping for metrics
Scoring Algorithm
Evaluate cap rate, occupancy, metrics
Automated Response
Generate and send HTML email
CRM Integration
Create contact & opportunity automatically
2 hrs
Time Saved Per Submission
4h → 48h
Response Time Improvement

Use Case: AI Content Generation

Scenario: Personalized emails for 200 broker contacts

Workflow:
✓ Upload CSV with contact data
✓ Select key fields for personalization
✓ Define core content & tone
✓ Preview sample generation
✓ Generate all 200 personalized emails
✓ Download enhanced CSV
✓ Import to email campaigns
10 min
With AI
6 hrs
Manual Writing

Platform Metrics

Performance & Scale

Response Times

RAG Simple Query ~2s
RAG Complex Query 5-8s
API (p95) <500ms
Campaign Execute ~5 min

Capacity

  • Documents: Unlimited
  • Vector Embeddings: Unlimited
  • Campaigns: Unlimited
  • Multi-tenant ready

Integrations

  • • Twilio (SMS)
  • • Gmail API (Email sync)
  • • ElevenLabs (TTS)
  • • Slybroadcast (Voicemail)
  • • Bonzo (SMS alt)
  • • Pinecone (Vectors)
  • • Gemini (AI)
  • • LoopNet (Scraping)

Platform Statistics

Metric Value
Microservices3 (Frontend, Python Backend, Node ADTV Server)
Databases2 PostgreSQL instances
Core Modules15+ integrated features
API Integrations8+ external platforms
AI ModelsGemini Pro 1.5 + Embeddings
Vector DBPinecone (768-dim)
LanguagesPython, TypeScript, JavaScript

Key Takeaways

What Makes This Platform Unique

Technology Highlights

  • Gemini Pro 1.5 with agentic RAG
  • Pinecone vector database (768d)
  • Microservices React + Python + Node
  • Dual databases specialized architecture
  • Multi-channel SMS, Email, Voicemail
  • Visual workflow builder with ReactFlow

Business Value

  • 90% time savings on due diligence
  • 17.4% campaign response rates
  • Automated deal qualification & scoring
  • Unified CRM with 12-stage pipeline
  • Multi-tenant SaaS architecture
  • 8+ integrations for complete automation

Platform Status

Production Live Version 0.2.2 October 21, 2025

Project Details

Platform: Real Estate Investment AI Platform
Industry: Commercial Real Estate
Type: Multi-Tenant Enterprise SaaS
Project Scope: Full-stack AI platform with RAG, CRM, and marketing automation
Deployment: 3 microservices on cloud platform
Technologies: React, Python/FastAPI, Node/Express, Gemini Pro, Pinecone, Prisma
Real Estate Investment AI Platform
Intelligent Automation for Commercial Real Estate Operations
Last Updated: October 21, 2025 | Version 0.2.2