RAIA™ Specification

Documentation

Managing property keys is typically a massive headache that relies on slow paper forms. This workflow simplifies key tracking to zero forms: estate agents simply snap a quick photo or video of keys be

← Back to Developer Hub TEXTBOOK SPECIFICATION
RAIA™ (Real estate Artificial Intelligence Agent) Specification

Managing property keys is typically a massive headache that relies on slow paper forms. This workflow simplifies key tracking to zero forms: estate agents simply snap a quick photo or video of keys be

🧩 Section A: In Plain English

Omnichannel Key Custody Workflow

Managing property keys is a massive headache with slow paper forms. This workflow replaces forms with photos and videos sent via Telegram, WhatsApp, or WeChat — RAIA (Real estate Artificial Intelligence Agent) automatically identifies who has custody of the keys.

📘 SECTION 3.22 TECHNICAL SPECIFICATION & ARCHITECTURE BLUEPRINT
🧩 In Plain English

Managing property keys is typically a massive headache that relies on slow paper forms. This workflow simplifies key tracking to zero forms: estate agents simply snap a quick photo or video of keys being checked in or out of the office cabinet, or when handing them over to a tenant or contractor, and drop it straight into Telegram, WhatsApp, or WeChat with a short message. RAIA (Real estate Artificial Intelligence Agent) automatically analyzes the media, identifies who has custody of the keys, verifies their identity using facial biometrics, and records the exact key box and hook number.

🔑 3.22 Omnichannel Key Custody & Computer Vision Tracking Workflow

Sovereign Engineering (ADR-256)

Physical key tracking is a critical operational vulnerability in property operations. Traditional property management systems (CRMs) require tedious multi-step form entry to record a key handover, leading to low staff adoption, incomplete audit logs, and locked-out contractors.

Under the **RAIA™ (Real estate Artificial Intelligence Agent) OS Sovereign Architecture**, we completely eliminate manual form entry. Staff are trained to capture rapid photo or video evidence of physical keys during transit and drop them directly into active corporate messaging channels (such as Telegram, WhatsApp, or WeChat). RAIA’s conversational AI and computer vision pipelines process these unstructured streams in real-time, extracts key references and box placements, registers handovers with facial biometrics, and updates our secure database custody ledger autonomously.

1. Media-driven Custody Ingestion Architecture

The key custody pipeline utilizes a unified omnichannel ingestion webhook that processes media payloads (images or short video clips) through a series of multi-modal analysis gates:

1. USER INGEST Telegram / WhatsApp 📸 Drop Photo or Video 2. ANALYSIS STAGE Frame Extractor + CV OCR Tag + Face Match 3. INTENT GATE Conversational Probe If missing hook / box 4. BIOMETRIC MATCH Cross-check tbl_persons 5. CUSTODY STATE tbl_keys_log + Materialized vw

2. Operational Workflow & Conversational Fallbacks

RAIA (Real estate Artificial Intelligence Agent) handles physical key lifecycle stages using three concrete channels: Checking In, Checking Out, and Handing Over.

  • 1
    Physical Key Check-In

    An agent records a brief video or photo showing the key hook/box dropped inside the cabinet. RAIA’s multi-modal core attempts to parse the key's engraved serial number or printed tag (e.g., `KE11586`) and identify the exact Cabinet Box and Key Hook numbers from spatial layout mapping.

  • 2
    Conversational Completion (Fallback Gate)

    If the video frame is blurry or fingers block the hook/box identifier during hanging, RAIA (Real estate Artificial Intelligence Agent) initiates an immediate, low-friction chat fallback in the user's current thread (e.g., "I detected check-in of key KE11586, but couldn't verify the hook. Which key box and hook number did you hang it on?"). The user replies back in natural text (e.g., "box 3 hook 14"), which RAIA (Real estate Artificial Intelligence Agent) parses to complete the database record without forms.

  • 3
    Physical Key Check-Out

    To check keys out, the user drops a video of the keys being taken from the cabinet or a photo of the keys in hand. RAIA (Real estate Artificial Intelligence Agent) reads the key reference tag, maps it to the sender's active staff ID, and shifts the key custody status to "Checked Out" in the ledger.

  • 4
    Handover Handshake & Selfie Validation

    When giving keys directly to a contractor or tenant, the user takes a video showing who they hand it to, followed by a quick photo (selfie) with them. RAIA's biometric pipeline runs facial detection on the media stream and compares the extracted face vectors against verified portraits in the system database (tbl_persons Tier1 storage). This ensures physical custody transitions are biometrically backed and fully auditable.

3. Custody Logging Database Extensions

To capture the rich visual and biometrically validated metadata of the omnichannel key workflow, we extend our canonical physical datastores (tbl_keys_log) with the following relational attributes:

tbl_keys_log (Extended Audit Attributes)

media_storage_path varchar (Supabase Storage reference)
recipient_person_id UUID (FK tbl_persons)

Repository Code

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

selfie_portrait_url varchar (Handover selfie snapshot)
verification_confidence float (Face-matching confidence index)
*Note: Database-level Tier0 security policies isolate facial biometric vector profiles and restrict read permissions exclusively to compliance auditors.

4. Red Team Delta Audit & Threat Modeling

Security Guardrail

Omnichannel media streams and autonomous AI agents present unique security risks. We implement three active mitigation frameworks to safeguard properties:

Token Cost-Efficiency

Processing high-resolution video streams through multi-modal models is cost-prohibitive. RAIA (Real estate Artificial Intelligence Agent) resolves this by executing lightweight, edge-based frame-sampling: extracting only the start-frame, end-frame, and motion transitions of the key drops. High-resolution LLM inspection is only triggered on frames containing text tags or detected facial geometries, resulting in a **94% reduction in daily input token costs**.

Replay & Spoofing Defense

An adversary could record a video of key check-ins or upload historical photos to fake custody records. RAIA (Real estate Artificial Intelligence Agent) defenses check file metadata (EXIF/GPS structures), run frame-by-frame temporal consistency checks to confirm physical motion continuity, and map transaction timestamps against actual channel delivery times. Handovers that fail temporal checks are flagged for immediate Human-In-The-Loop review.

Context Grouping & Sync Gates

Omnichannel messages often arrive out-of-order due to network latency. Rather than applying transaction states sequentially, RAIA (Real estate Artificial Intelligence Agent) batches logs using a delta-significance gate. Handovers must match a verified recipient ID and be checked out within active calendar appointment windows before the status transitions are committed to production datastores.

Repository Code

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

5. Operational References & Human Perspectives

The following Loom videos record the exact manual steps of estate agents checking keys in and out today. These recordings establish the baseline behavioral paths that RAIA (Real estate Artificial Intelligence Agent) automates:

🔧 Section C: Developer Guide

Architecture Details

Multi-channel messaging architecture that routes inbound and outbound communications through a unified triage engine. The system normalises messages from email, SMS, voice, and app channels into a common format, applies routing rules, and delivers through the appropriate outbound channel with delivery tracking.

  • Core Component: Unified messaging and triage engine
  • Data Flow: Inbound Channel → Normalisation → Triage → Routing → Outbound Channel → Delivery Tracking
  • Integration Points: Email (Gmail IMAP), SMS (Twilio), Voice (Twilio), In-app notifications

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
channel_priority string[] email, sms, voice, in_app Channel priority for outbound delivery
max_retry_count integer 3 Delivery retry attempts per message
triage_rules_version string v1 Active triage rules version
MESSAGING ARCHITECTURE — CHANNEL → TRIAGE → ROUTE 1. CHANNEL LAYER Email / SMS / Voice Inbound Normalisation 📡 Inbound Channels 2. TRIAGE ENGINE Rule Evaluation Priority Routing ⚖️ Triage 3. DELIVERY LAYER Outbound Dispatch Delivery Tracking 📤 Outbound Multi-channel messaging: inbound normalisation → triage rule evaluation → outbound delivery with fallback Channel normalisation · Priority routing · Fallback chains · Delivery tracking Inbound / Channel Layer Triage / Routing Engine Outbound / Delivery Data flow →

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

Troubleshooting

Issue Cause Resolution
Message delivery failure Channel provider outage or invalid recipient address Fallback to next channel in priority list
Triage rule mismatch Rules version outdated for current message type Update to latest triage_rules_version
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.