RAIA™ (Real estate Artificial Intelligence Agent) OS Automation Spec (ADR-212)

1.5.2 Autonomous Conversation Automation Blueprint

How RAIA (Real estate Artificial Intelligence Agent) OS automates a fragmented 8-hour human handover process in under 10 seconds via unified database retrieval across the 6-Tier Real Estate Pyramid.

STATUS: GATED-AUTO VERSION: V1.1.0 AUDIENCE: DEVELOPERS & PRODUCT MANAGERS CHANNELS: WHATSAPP / TELEGRAM
← Back to Developer Hub TEXTBOOK SPECIFICATION
RAIA™ (Real estate Artificial Intelligence Agent) Specification

How RAIA (Real estate Artificial Intelligence Agent) OS automates a fragmented 8-hour human handover process in under 10 seconds via unified database retrieval across the 6-Tier Real Estate Pyramid.

🧩 Section A: In Plain English

Conversation Automation — 8-Hour Legacy Handover to 10-Second AI Retrieval

RAIA (Real estate Artificial Intelligence Agent) OS automates a fragmented 8-hour human handover process in under 10 seconds via unified database retrieval across the 6-Tier Real Estate Pyramid — turning scattered WhatsApp/Slack threads into instant answers.

1 The 8-Hour Legacy Handover Problem

When a property owner or compliance auditor raises a simple conversational question (e.g. *"What are my active utilities and where is my electrical safety certificate?"*), traditional estate agency operations suffer from a fragmented multi-human handover process.

The message sits in a WhatsApp inbox. An administrator forwards it to a Slack channel. A property manager searches local files and drives to locate the certificate. An operations coordinator checks active calendars for scheduled safety runs. Finally, the findings are compiled and sent back to the client. This manual sequence typically takes 8 hours of back-and-forth friction.

2 The 10-Second RAIA™ (Real estate Artificial Intelligence Agent) OS Retrieval

RAIA™ (Real estate Artificial Intelligence Agent) OS eliminates manual handovers completely. By integrating all systems into a single relational schema, the platform resolves the query in a single sweep:

Repository Code

The live codebase implementation for this specification sits within the following repository folder:

text-sm font-bold text-slate-800 mb-2">🚀 Direct SQL Consolidation

Instead of jumping between isolated spreadsheets and email chains, RAIA (Real estate Artificial Intelligence Agent) executes a multi-join database query across the entire 6-Tier schema:

SELECT a.postcode, u.water_supplier, d.file_name as eicr_file, j.contractor_name
FROM tbl_addresses a
JOIN tbl_addresses_organisations u USING (address_id)
JOIN tbl_document_links dl ON a.address_id = dl.entity_id
JOIN tbl_documents d ON dl.document_id = d.document_id
JOIN tbl_jobs j ON a.address_id = j.asset_id
WHERE a.street_name ILIKE '%Elsham%' LIMIT 1;

By querying database tables (tbl_addresses_organisations for utilities, tbl_documents for safety certificates, and tbl_jobs for scheduled contractor visits), RAIA™ (Real estate Artificial Intelligence Agent) OS compiles the answer in under 10 seconds and replies directly to the user's chat channel.

🔧 Section C: Developer Guide

Architecture Details

The security architecture implements a defence-in-depth model with perimeter authentication, internal authorisation, data encryption, and audit logging at every layer. Access is gated through a layered entry system: Tailscale identity verification at the network level, followed by role-based access control within the application.

  • Core Component: Security gate guard and RBAC enforcement
  • Data Flow: Request → Tailscale Gate → Authentication → Authorisation → Audit Log → Response
  • Integration Points: Tailscale ACLs, Supabase Row-Level Security, session tokens, and audit log sinks

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
gate_enabled boolean true Enable Tailscale gate guard for all pages
allowed_hosts string[] docs.estateaigents.com, localhost Whitelist of permitted hostnames
session_ttl_minutes integer 60 Session token time-to-live
SECURITY ARCHITECTURE — DEFENCE IN DEPTH 1. NETWORK GATE Tailscale Identity Network-level Auth 🔐 Tailscale Gate 2. APPLICATION GATE RBAC Enforcement Session Validation 🛡️ Auth Layer 3. DATA GATE RLS & Encryption Audit Logging 🔒 Data Protection Defence-in-depth: network gate → application gate → data gate with audit logging at every layer Tailscale identity · Role-based access · Row-level security · Full audit trail Network / Identity Gate Application / Auth Layer Data / Encryption Layer Data flow →

Figure 2: Security architecture — component interaction and data flow.

Troubleshooting

Issue Cause Resolution
401 Unauthorized on tailnet Tailscale not running or wrong node Verify Tailscale is connected and node is authorised
Gate guard redirect loop Hostname not in allowed_hosts list Add hostname to the gate guard whitelist
Repo Reference RAIA

This component is part of the RAIA (Real estate Artificial Intelligence Agent) platform mono-repo. Implementation details, API contracts, and integration tests are available in the repository.